postKnowledgeSearchWithHttpInfo method

Future<Response> postKnowledgeSearchWithHttpInfo(
  1. SearchIn searchIn
)

Runs a semantic search over the caller org's own knowledge — its wiki pages, its agent memories and everything its connectors have synced — and returns the matching passages.

Runs a semantic search over the caller org's own knowledge — its wiki pages, its agent memories and everything its connectors have synced — and returns the matching passages. This is the RAG entry point: an agent asks "what does this org know about X" and the org's OWN vector namespace answers. The org comes from the validated principal, and both the collection and the payload filter are pinned to it, so cross-tenant retrieval is impossible. An unreachable index returns an honest empty result set with degraded=true, never a 5xx.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postKnowledgeSearchWithHttpInfo(SearchIn searchIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/knowledge/search';

  // ignore: prefer_final_locals
  Object? postBody = searchIn;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}