@usecortex_ai/node 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +20 -24
- package/dist/Client.js +26 -34
- package/dist/api/errors/BadRequestError.d.ts +1 -2
- package/dist/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/errors/NotFoundError.d.ts +1 -2
- package/dist/api/errors/ServiceUnavailableError.d.ts +1 -2
- package/dist/api/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/api/errors/TooManyRequestsError.js +42 -0
- package/dist/api/errors/UnauthorizedError.d.ts +1 -2
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/dashboard/client/Client.d.ts +136 -0
- package/dist/api/resources/{userMemory → dashboard}/client/Client.js +191 -138
- package/dist/api/resources/dashboard/client/requests/CreateUserDashboardUserCreateUserPostRequest.d.ts +12 -0
- package/dist/api/resources/dashboard/client/requests/ListSourcesDashboardSourcesGetRequest.d.ts +16 -0
- package/dist/api/resources/dashboard/client/requests/index.d.ts +2 -0
- package/dist/api/resources/embeddings/client/Client.d.ts +40 -27
- package/dist/api/resources/embeddings/client/Client.js +68 -44
- package/dist/api/resources/embeddings/client/requests/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.d.ts +24 -0
- package/dist/api/resources/embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.d.ts +27 -0
- package/dist/api/resources/embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.d.ts +25 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsDeleteRequest.d.ts +6 -5
- package/dist/api/resources/embeddings/client/requests/index.d.ts +3 -3
- package/dist/api/resources/fetch/client/Client.d.ts +96 -7
- package/dist/api/resources/fetch/client/Client.js +288 -10
- package/dist/api/resources/{sources/client/requests/SourcesGetGraphRelationsByIdRequest.d.ts → fetch/client/requests/FetchGraphRelationsBySourceIdRequest.d.ts} +2 -3
- package/dist/api/resources/{sources/client/requests/SourcesGetAllRequest.d.ts → fetch/client/requests/FetchSourcesRequest.d.ts} +2 -3
- package/dist/api/resources/fetch/client/requests/ListSourcesByIdRequest.d.ts +18 -0
- package/dist/api/resources/{upload/client/requests/UploadUpdateTextRequest.d.ts → fetch/client/requests/SourceFetchRequest.d.ts} +9 -10
- package/dist/api/resources/fetch/client/requests/index.d.ts +4 -1
- package/dist/api/resources/index.d.ts +10 -13
- package/dist/api/resources/index.js +11 -14
- package/dist/api/resources/search/client/Client.d.ts +50 -26
- package/dist/api/resources/search/client/Client.js +65 -35
- package/dist/api/resources/search/client/requests/FullTextSearchRequest.d.ts +6 -4
- package/dist/api/resources/search/client/requests/{SearchRequest.d.ts → HybridSearchRequest.d.ts} +13 -9
- package/dist/api/resources/search/client/requests/QnASearchRequest.d.ts +39 -0
- package/dist/api/resources/search/client/requests/index.d.ts +2 -2
- package/dist/api/resources/sources/client/Client.d.ts +11 -61
- package/dist/api/resources/sources/client/Client.js +14 -191
- package/dist/api/resources/sources/client/requests/SourceDeleteRequest.d.ts +17 -0
- package/dist/api/resources/sources/client/requests/index.d.ts +1 -3
- package/dist/api/resources/tenant/client/Client.d.ts +54 -38
- package/dist/api/resources/tenant/client/Client.js +67 -114
- package/dist/api/resources/tenant/client/requests/TenantCreateRequest.d.ts +20 -0
- package/dist/api/resources/tenant/client/requests/TenantStatsRequest.d.ts +1 -4
- package/dist/api/resources/tenant/client/requests/index.d.ts +1 -2
- package/dist/api/resources/upload/client/Client.d.ts +54 -428
- package/dist/api/resources/upload/client/Client.js +97 -1417
- package/dist/api/resources/upload/client/requests/{UploadUploadMarkdownRequest.d.ts → BodyAddMemoryMemoriesAddMemoryPost.d.ts} +7 -7
- package/dist/api/resources/upload/client/requests/BodyUploadAppIngestionUploadAppPost.d.ts +31 -0
- package/dist/api/resources/upload/client/requests/BodyUploadDocumentIngestionUploadDocumentPost.d.ts +22 -0
- package/dist/api/resources/upload/client/requests/UploadDeleteMemoryRequest.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/UploadVerifyProcessingRequest.d.ts +1 -2
- package/dist/api/resources/upload/client/requests/index.d.ts +4 -16
- package/dist/api/types/AddMemoryResponse.d.ts +17 -0
- package/dist/api/types/ApiKeyInfo.d.ts +17 -0
- package/dist/api/types/AppSourcesUploadData.d.ts +10 -4
- package/dist/api/types/CollectionStats.d.ts +9 -0
- package/dist/api/types/CustomPropertyDefinition.d.ts +38 -0
- package/dist/api/types/DashboardApisResponse.d.ts +12 -0
- package/dist/api/types/DashboardSourcesResponse.d.ts +12 -0
- package/dist/api/types/DashboardTenantsResponse.d.ts +12 -0
- package/dist/api/types/DeleteResult.d.ts +14 -0
- package/dist/api/types/DeleteUserMemoryResponse.d.ts +1 -1
- package/dist/api/types/Entity.d.ts +2 -2
- package/dist/api/types/FetchMode.d.ts +12 -0
- package/dist/api/types/FetchMode.js +11 -0
- package/dist/api/types/GraphContext.d.ts +12 -0
- package/dist/api/types/Infra.d.ts +8 -0
- package/dist/api/types/InsertResult.d.ts +16 -0
- package/dist/api/types/MemoryItem.d.ts +41 -0
- package/dist/api/types/MemoryResultItem.d.ts +19 -0
- package/dist/api/types/MilvusDataType.d.ts +21 -0
- package/dist/api/types/MilvusDataType.js +20 -0
- package/dist/api/types/PathTriplet.d.ts +1 -7
- package/dist/api/types/ProcessingStatus.d.ts +16 -2
- package/dist/api/types/ProcessingStatus.js +12 -0
- package/dist/api/types/QnASearchResponse.d.ts +20 -0
- package/dist/api/types/RawEmbeddingDocument.d.ts +15 -0
- package/dist/api/types/RawEmbeddingSearchResult.d.ts +19 -0
- package/dist/api/types/RawEmbeddingVector.d.ts +12 -0
- package/dist/api/types/RelationEvidence.d.ts +13 -4
- package/dist/api/types/RetrievalResult.d.ts +11 -0
- package/dist/api/types/ScoredPathResponse.d.ts +4 -11
- package/dist/api/types/SearchMode.d.ts +11 -0
- package/dist/api/types/SearchMode.js +10 -0
- package/dist/api/types/SourceDeleteResponse.d.ts +14 -0
- package/dist/api/types/SourceDeleteResultItem.d.ts +14 -0
- package/dist/api/types/SourceFetchResponse.d.ts +26 -0
- package/dist/api/types/{GraphRelationsResponse.d.ts → SourceGraphRelationsResponse.d.ts} +2 -2
- package/dist/api/types/SourceListResponse.d.ts +11 -0
- package/dist/api/types/SourceModel.d.ts +5 -1
- package/dist/api/types/SourceStatus.d.ts +10 -0
- package/dist/api/types/SourceStatus.js +12 -0
- package/dist/api/types/SourceUploadResponse.d.ts +14 -0
- package/dist/api/types/SourceUploadResultItem.d.ts +14 -0
- package/dist/api/types/SupportedLlmProviders.d.ts +11 -0
- package/dist/api/types/SupportedLlmProviders.js +13 -0
- package/dist/api/types/TenantCreateResponse.d.ts +14 -0
- package/dist/api/types/TenantInfo.d.ts +11 -0
- package/dist/api/types/TenantMetadataSchemaInfo.d.ts +14 -0
- package/dist/api/types/TenantStatsResponse.d.ts +14 -0
- package/dist/api/types/{TripleWithEvidence.d.ts → TripletWithEvidence.d.ts} +4 -1
- package/dist/api/types/UserAssistantPair.d.ts +3 -0
- package/dist/api/types/{SearchChunk.d.ts → VectorStoreChunk.d.ts} +3 -8
- package/dist/api/types/index.d.ts +36 -33
- package/dist/api/types/index.js +36 -33
- package/package.json +30 -33
- package/dist/api/resources/document/client/Client.d.ts +0 -59
- package/dist/api/resources/document/client/Client.js +0 -132
- package/dist/api/resources/document/client/index.d.ts +0 -1
- package/dist/api/resources/embeddings/client/requests/EmbeddingsCreateCollectionRequest.d.ts +0 -13
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRequest.d.ts +0 -18
- package/dist/api/resources/embeddings/client/requests/GetEmbeddingsBasedOnChunkIdsRequest.d.ts +0 -18
- package/dist/api/resources/fetch/client/requests/FetchContentRequest.d.ts +0 -18
- package/dist/api/resources/search/client/requests/QnARequest.d.ts +0 -47
- package/dist/api/resources/sources/client/requests/SourceBodyParams.d.ts +0 -18
- package/dist/api/resources/tenant/client/requests/TenantDeleteSubTenantRequest.d.ts +0 -14
- package/dist/api/resources/tenant/client/requests/TenantGetSubTenantIdsRequest.d.ts +0 -12
- package/dist/api/resources/upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/BodyBatchUploadUploadBatchUploadPost.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/BodyUpdateFileUploadUpdateDocumentPatch.d.ts +0 -38
- package/dist/api/resources/upload/client/requests/BodyUploadFilesUploadUploadDocumentPost.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/EmbeddingsUpdateRequest.d.ts +0 -18
- package/dist/api/resources/upload/client/requests/EmbeddingsUploadRequest.d.ts +0 -21
- package/dist/api/resources/upload/client/requests/UploadBatchScrapeWebpageRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadBatchUploadMarkdownRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadBatchUploadTextRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadScrapeWebpageRequest.d.ts +0 -25
- package/dist/api/resources/upload/client/requests/UploadUpdateMarkdownRequest.d.ts +0 -24
- package/dist/api/resources/upload/client/requests/UploadUpdateWebpageRequest.d.ts +0 -25
- package/dist/api/resources/upload/client/requests/UploadUploadAppSourcesRequest.d.ts +0 -20
- package/dist/api/resources/upload/client/requests/UploadUploadTextRequest.d.ts +0 -21
- package/dist/api/resources/user/client/Client.d.ts +0 -60
- package/dist/api/resources/user/client/Client.js +0 -152
- package/dist/api/resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.d.ts +0 -15
- package/dist/api/resources/user/client/requests/index.d.ts +0 -1
- package/dist/api/resources/user/client/requests/index.js +0 -2
- package/dist/api/resources/user/index.d.ts +0 -1
- package/dist/api/resources/user/index.js +0 -17
- package/dist/api/resources/userMemory/client/Client.d.ts +0 -150
- package/dist/api/resources/userMemory/client/index.d.ts +0 -2
- package/dist/api/resources/userMemory/client/index.js +0 -17
- package/dist/api/resources/userMemory/client/requests/AddUserMemoryRequest.d.ts +0 -27
- package/dist/api/resources/userMemory/client/requests/RetrieveUserMemoryRequest.d.ts +0 -24
- package/dist/api/resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.d.ts +0 -19
- package/dist/api/resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.d.ts +0 -16
- package/dist/api/resources/userMemory/client/requests/index.d.ts +0 -4
- package/dist/api/resources/userMemory/client/requests/index.js +0 -2
- package/dist/api/resources/userMemory/index.d.ts +0 -1
- package/dist/api/resources/userMemory/index.js +0 -17
- package/dist/api/types/AddUserMemoryResponse.d.ts +0 -16
- package/dist/api/types/BatchUploadData.d.ts +0 -11
- package/dist/api/types/BodyScrapeWebpageUploadScrapeWebpagePost.d.ts +0 -5
- package/dist/api/types/BodyUpdateScrapeJobUploadUpdateWebpagePatch.d.ts +0 -5
- package/dist/api/types/ChunkGraphRelationsResponse.d.ts +0 -13
- package/dist/api/types/DeleteMemoryRequest.d.ts +0 -11
- package/dist/api/types/DeleteSources.d.ts +0 -7
- package/dist/api/types/DeleteSubTenantData.d.ts +0 -15
- package/dist/api/types/EmbeddingsCreateCollectionData.d.ts +0 -13
- package/dist/api/types/EmbeddingsDeleteData.d.ts +0 -13
- package/dist/api/types/EmbeddingsGetData.d.ts +0 -13
- package/dist/api/types/EmbeddingsSearchData.d.ts +0 -13
- package/dist/api/types/ExtendedContext.d.ts +0 -5
- package/dist/api/types/FetchContentData.d.ts +0 -13
- package/dist/api/types/FileUploadResult.d.ts +0 -9
- package/dist/api/types/ListSourcesResponse.d.ts +0 -12
- package/dist/api/types/ListSourcesResponse.js +0 -5
- package/dist/api/types/ListUserMemoriesResponse.d.ts +0 -13
- package/dist/api/types/ListUserMemoriesResponse.js +0 -5
- package/dist/api/types/MarkdownUploadRequest.d.ts +0 -22
- package/dist/api/types/MarkdownUploadRequest.js +0 -5
- package/dist/api/types/RelatedChunk.d.ts +0 -9
- package/dist/api/types/RelatedChunk.js +0 -5
- package/dist/api/types/Relations.d.ts +0 -9
- package/dist/api/types/Relations.js +0 -5
- package/dist/api/types/RetrieveResponse.d.ts +0 -12
- package/dist/api/types/RetrieveResponse.js +0 -5
- package/dist/api/types/RetrieveUserMemoryResponse.d.ts +0 -15
- package/dist/api/types/RetrieveUserMemoryResponse.js +0 -5
- package/dist/api/types/ScoredTripletResponse.d.ts +0 -17
- package/dist/api/types/ScoredTripletResponse.js +0 -5
- package/dist/api/types/SearchChunk.js +0 -5
- package/dist/api/types/SingleUploadData.d.ts +0 -10
- package/dist/api/types/SingleUploadData.js +0 -5
- package/dist/api/types/Source.d.ts +0 -19
- package/dist/api/types/Source.js +0 -5
- package/dist/api/types/SubTenantIdsData.d.ts +0 -17
- package/dist/api/types/SubTenantIdsData.js +0 -5
- package/dist/api/types/TenantCreateData.d.ts +0 -13
- package/dist/api/types/TenantCreateData.js +0 -5
- package/dist/api/types/TenantStats.d.ts +0 -15
- package/dist/api/types/TenantStats.js +0 -5
- package/dist/api/types/TripleWithEvidence.js +0 -5
- package/dist/api/types/UserMemory.d.ts +0 -12
- package/dist/api/types/UserMemory.js +0 -5
- package/dist/api/types/WebpageScrapeRequest.d.ts +0 -9
- package/dist/api/types/WebpageScrapeRequest.js +0 -5
- /package/dist/api/resources/{user → dashboard}/client/index.d.ts +0 -0
- /package/dist/api/resources/{user → dashboard}/client/index.js +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsCreateCollectionRequest.js → dashboard/client/requests/CreateUserDashboardUserCreateUserPostRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRequest.js → dashboard/client/requests/ListSourcesDashboardSourcesGetRequest.js} +0 -0
- /package/dist/api/resources/{document/client → dashboard/client/requests}/index.js +0 -0
- /package/dist/api/resources/{document → dashboard}/index.d.ts +0 -0
- /package/dist/api/resources/{document → dashboard}/index.js +0 -0
- /package/dist/api/resources/embeddings/client/requests/{GetEmbeddingsBasedOnChunkIdsRequest.js → BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{fetch/client/requests/FetchContentRequest.js → embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{search/client/requests/QnARequest.js → embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{search/client/requests/SearchRequest.js → fetch/client/requests/FetchGraphRelationsBySourceIdRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourceBodyParams.js → fetch/client/requests/FetchSourcesRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourcesGetAllRequest.js → fetch/client/requests/ListSourcesByIdRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourcesGetGraphRelationsByIdRequest.js → fetch/client/requests/SourceFetchRequest.js} +0 -0
- /package/dist/api/resources/{tenant/client/requests/TenantDeleteSubTenantRequest.js → search/client/requests/HybridSearchRequest.js} +0 -0
- /package/dist/api/resources/{tenant/client/requests/TenantGetSubTenantIdsRequest.js → search/client/requests/QnASearchRequest.js} +0 -0
- /package/dist/api/resources/{upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.js → sources/client/requests/SourceDeleteRequest.js} +0 -0
- /package/dist/api/resources/{upload/client/requests/BodyBatchUploadUploadBatchUploadPost.js → tenant/client/requests/TenantCreateRequest.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{BodyUpdateFileUploadUpdateDocumentPatch.js → BodyAddMemoryMemoriesAddMemoryPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{BodyUploadFilesUploadUploadDocumentPost.js → BodyUploadAppIngestionUploadAppPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{EmbeddingsUpdateRequest.js → BodyUploadDocumentIngestionUploadDocumentPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{EmbeddingsUploadRequest.js → UploadDeleteMemoryRequest.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchScrapeWebpageRequest.js → types/AddMemoryResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchUploadMarkdownRequest.js → types/ApiKeyInfo.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchUploadTextRequest.js → types/CollectionStats.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadScrapeWebpageRequest.js → types/CustomPropertyDefinition.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateMarkdownRequest.js → types/DashboardApisResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateTextRequest.js → types/DashboardSourcesResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateWebpageRequest.js → types/DashboardTenantsResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadAppSourcesRequest.js → types/DeleteResult.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadMarkdownRequest.js → types/GraphContext.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadTextRequest.js → types/Infra.js} +0 -0
- /package/dist/api/{resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.js → types/InsertResult.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/AddUserMemoryRequest.js → types/MemoryItem.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/RetrieveUserMemoryRequest.js → types/MemoryResultItem.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.js → types/QnASearchResponse.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.js → types/RawEmbeddingDocument.js} +0 -0
- /package/dist/api/types/{AddUserMemoryResponse.js → RawEmbeddingSearchResult.js} +0 -0
- /package/dist/api/types/{BatchUploadData.js → RawEmbeddingVector.js} +0 -0
- /package/dist/api/types/{BodyScrapeWebpageUploadScrapeWebpagePost.js → RetrievalResult.js} +0 -0
- /package/dist/api/types/{BodyUpdateScrapeJobUploadUpdateWebpagePatch.js → SourceDeleteResponse.js} +0 -0
- /package/dist/api/types/{ChunkGraphRelationsResponse.js → SourceDeleteResultItem.js} +0 -0
- /package/dist/api/types/{DeleteMemoryRequest.js → SourceFetchResponse.js} +0 -0
- /package/dist/api/types/{DeleteSources.js → SourceGraphRelationsResponse.js} +0 -0
- /package/dist/api/types/{DeleteSubTenantData.js → SourceListResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsCreateCollectionData.js → SourceUploadResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsDeleteData.js → SourceUploadResultItem.js} +0 -0
- /package/dist/api/types/{EmbeddingsGetData.js → TenantCreateResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsSearchData.js → TenantInfo.js} +0 -0
- /package/dist/api/types/{ExtendedContext.js → TenantMetadataSchemaInfo.js} +0 -0
- /package/dist/api/types/{FetchContentData.js → TenantStatsResponse.js} +0 -0
- /package/dist/api/types/{FileUploadResult.js → TripletWithEvidence.js} +0 -0
- /package/dist/api/types/{GraphRelationsResponse.js → VectorStoreChunk.js} +0 -0
|
@@ -37,9 +37,20 @@ class Search {
|
|
|
37
37
|
this._options = _options;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Search for relevant content within your indexed sources or user memories.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* Results are ranked by relevance and can be customized with parameters like
|
|
43
|
+
* result limits, alpha weighting, and recency preferences.
|
|
44
|
+
*
|
|
45
|
+
* Use `search_mode` to specify what to search:
|
|
46
|
+
* - "sources" (default): Search over indexed documents
|
|
47
|
+
* - "memories": Search over user memories (uses inferred content)
|
|
48
|
+
*
|
|
49
|
+
* Use `mode` to control retrieval quality:
|
|
50
|
+
* - "fast" (default): Single query, faster response
|
|
51
|
+
* - "accurate": Multi-query generation with reranking, higher quality
|
|
52
|
+
*
|
|
53
|
+
* @param {CortexAI.HybridSearchRequest} request
|
|
43
54
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
55
|
*
|
|
45
56
|
* @throws {@link CortexAI.BadRequestError}
|
|
@@ -47,24 +58,24 @@ class Search {
|
|
|
47
58
|
* @throws {@link CortexAI.ForbiddenError}
|
|
48
59
|
* @throws {@link CortexAI.NotFoundError}
|
|
49
60
|
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
61
|
+
* @throws {@link CortexAI.TooManyRequestsError}
|
|
50
62
|
* @throws {@link CortexAI.InternalServerError}
|
|
51
63
|
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
52
64
|
*
|
|
53
65
|
* @example
|
|
54
|
-
* await client.search.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* tenant_id: "tenant_1234"
|
|
66
|
+
* await client.search.retrieve({
|
|
67
|
+
* tenant_id: "tenant_id",
|
|
68
|
+
* query: "query"
|
|
58
69
|
* })
|
|
59
70
|
*/
|
|
60
|
-
|
|
61
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
71
|
+
retrieve(request, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(request, requestOptions));
|
|
62
73
|
}
|
|
63
|
-
async
|
|
74
|
+
async __retrieve(request, requestOptions) {
|
|
64
75
|
var _a, _b, _c;
|
|
65
76
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: await this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
66
77
|
const _response = await core.fetcher({
|
|
67
|
-
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/
|
|
78
|
+
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/hybrid-search"),
|
|
68
79
|
method: "POST",
|
|
69
80
|
headers: _headers,
|
|
70
81
|
contentType: "application/json",
|
|
@@ -90,6 +101,8 @@ class Search {
|
|
|
90
101
|
throw new CortexAI.NotFoundError(_response.error.body, _response.rawResponse);
|
|
91
102
|
case 422:
|
|
92
103
|
throw new CortexAI.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 429:
|
|
105
|
+
throw new CortexAI.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
93
106
|
case 500:
|
|
94
107
|
throw new CortexAI.InternalServerError(_response.error.body, _response.rawResponse);
|
|
95
108
|
case 503:
|
|
@@ -110,7 +123,7 @@ class Search {
|
|
|
110
123
|
rawResponse: _response.rawResponse,
|
|
111
124
|
});
|
|
112
125
|
case "timeout":
|
|
113
|
-
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/
|
|
126
|
+
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/hybrid-search.");
|
|
114
127
|
case "unknown":
|
|
115
128
|
throw new errors.CortexAIError({
|
|
116
129
|
message: _response.error.errorMessage,
|
|
@@ -119,12 +132,15 @@ class Search {
|
|
|
119
132
|
}
|
|
120
133
|
}
|
|
121
134
|
/**
|
|
122
|
-
*
|
|
135
|
+
* Perform full text search for exact matches within your indexed sources or memories.
|
|
136
|
+
* Choose between 'OR' and 'AND' operators to control how search terms are combined
|
|
137
|
+
* for precise text matching.
|
|
123
138
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
139
|
+
* Use `search_mode` to specify what to search:
|
|
140
|
+
* - "sources" (default): Search over indexed documents
|
|
141
|
+
* - "memories": Search over user memories
|
|
126
142
|
*
|
|
127
|
-
* @param {CortexAI.
|
|
143
|
+
* @param {CortexAI.FullTextSearchRequest} request
|
|
128
144
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
145
|
*
|
|
130
146
|
* @throws {@link CortexAI.BadRequestError}
|
|
@@ -132,23 +148,24 @@ class Search {
|
|
|
132
148
|
* @throws {@link CortexAI.ForbiddenError}
|
|
133
149
|
* @throws {@link CortexAI.NotFoundError}
|
|
134
150
|
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
151
|
+
* @throws {@link CortexAI.TooManyRequestsError}
|
|
135
152
|
* @throws {@link CortexAI.InternalServerError}
|
|
136
153
|
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
137
154
|
*
|
|
138
155
|
* @example
|
|
139
|
-
* await client.search.
|
|
140
|
-
*
|
|
141
|
-
*
|
|
156
|
+
* await client.search.fullTextSearch({
|
|
157
|
+
* tenant_id: "tenant_id",
|
|
158
|
+
* query: "query"
|
|
142
159
|
* })
|
|
143
160
|
*/
|
|
144
|
-
|
|
145
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
161
|
+
fullTextSearch(request, requestOptions) {
|
|
162
|
+
return core.HttpResponsePromise.fromPromise(this.__fullTextSearch(request, requestOptions));
|
|
146
163
|
}
|
|
147
|
-
async
|
|
164
|
+
async __fullTextSearch(request, requestOptions) {
|
|
148
165
|
var _a, _b, _c;
|
|
149
166
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: await this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
150
167
|
const _response = await core.fetcher({
|
|
151
|
-
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/
|
|
168
|
+
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/full-text-search"),
|
|
152
169
|
method: "POST",
|
|
153
170
|
headers: _headers,
|
|
154
171
|
contentType: "application/json",
|
|
@@ -174,6 +191,8 @@ class Search {
|
|
|
174
191
|
throw new CortexAI.NotFoundError(_response.error.body, _response.rawResponse);
|
|
175
192
|
case 422:
|
|
176
193
|
throw new CortexAI.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 429:
|
|
195
|
+
throw new CortexAI.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
177
196
|
case 500:
|
|
178
197
|
throw new CortexAI.InternalServerError(_response.error.body, _response.rawResponse);
|
|
179
198
|
case 503:
|
|
@@ -194,7 +213,7 @@ class Search {
|
|
|
194
213
|
rawResponse: _response.rawResponse,
|
|
195
214
|
});
|
|
196
215
|
case "timeout":
|
|
197
|
-
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/
|
|
216
|
+
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/full-text-search.");
|
|
198
217
|
case "unknown":
|
|
199
218
|
throw new errors.CortexAIError({
|
|
200
219
|
message: _response.error.errorMessage,
|
|
@@ -203,12 +222,20 @@ class Search {
|
|
|
203
222
|
}
|
|
204
223
|
}
|
|
205
224
|
/**
|
|
206
|
-
*
|
|
225
|
+
* Ask a question and get an AI-generated answer based on your indexed sources or memories.
|
|
207
226
|
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
227
|
+
* The response includes both the AI answer and the source chunks used to generate it,
|
|
228
|
+
* enabling full transparency and citation capabilities.
|
|
210
229
|
*
|
|
211
|
-
*
|
|
230
|
+
* Use `search_mode` to specify what to search:
|
|
231
|
+
* - "sources" (default): Search over indexed documents
|
|
232
|
+
* - "memories": Search over user memories
|
|
233
|
+
*
|
|
234
|
+
* Use `mode` to control retrieval quality:
|
|
235
|
+
* - "fast" (default): Single query, faster response
|
|
236
|
+
* - "accurate": Multi-query generation with reranking, higher quality
|
|
237
|
+
*
|
|
238
|
+
* @param {CortexAI.QnASearchRequest} request
|
|
212
239
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
240
|
*
|
|
214
241
|
* @throws {@link CortexAI.BadRequestError}
|
|
@@ -216,23 +243,24 @@ class Search {
|
|
|
216
243
|
* @throws {@link CortexAI.ForbiddenError}
|
|
217
244
|
* @throws {@link CortexAI.NotFoundError}
|
|
218
245
|
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
246
|
+
* @throws {@link CortexAI.TooManyRequestsError}
|
|
219
247
|
* @throws {@link CortexAI.InternalServerError}
|
|
220
248
|
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
221
249
|
*
|
|
222
250
|
* @example
|
|
223
|
-
* await client.search.
|
|
224
|
-
*
|
|
225
|
-
*
|
|
251
|
+
* await client.search.qna({
|
|
252
|
+
* tenant_id: "tenant_id",
|
|
253
|
+
* question: "question"
|
|
226
254
|
* })
|
|
227
255
|
*/
|
|
228
|
-
|
|
229
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
256
|
+
qna(request, requestOptions) {
|
|
257
|
+
return core.HttpResponsePromise.fromPromise(this.__qna(request, requestOptions));
|
|
230
258
|
}
|
|
231
|
-
async
|
|
259
|
+
async __qna(request, requestOptions) {
|
|
232
260
|
var _a, _b, _c;
|
|
233
261
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: await this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
234
262
|
const _response = await core.fetcher({
|
|
235
|
-
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/
|
|
263
|
+
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "search/qna"),
|
|
236
264
|
method: "POST",
|
|
237
265
|
headers: _headers,
|
|
238
266
|
contentType: "application/json",
|
|
@@ -258,6 +286,8 @@ class Search {
|
|
|
258
286
|
throw new CortexAI.NotFoundError(_response.error.body, _response.rawResponse);
|
|
259
287
|
case 422:
|
|
260
288
|
throw new CortexAI.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 429:
|
|
290
|
+
throw new CortexAI.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
261
291
|
case 500:
|
|
262
292
|
throw new CortexAI.InternalServerError(_response.error.body, _response.rawResponse);
|
|
263
293
|
case 503:
|
|
@@ -278,7 +308,7 @@ class Search {
|
|
|
278
308
|
rawResponse: _response.rawResponse,
|
|
279
309
|
});
|
|
280
310
|
case "timeout":
|
|
281
|
-
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/
|
|
311
|
+
throw new errors.CortexAITimeoutError("Timeout exceeded when calling POST /search/qna.");
|
|
282
312
|
case "unknown":
|
|
283
313
|
throw new errors.CortexAIError({
|
|
284
314
|
message: _response.error.errorMessage,
|
|
@@ -5,19 +5,21 @@ import * as CortexAI from "../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* tenant_id: "tenant_id",
|
|
9
|
+
* query: "query"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface FullTextSearchRequest {
|
|
13
|
-
/** Search terms to find in your content */
|
|
14
|
-
query: string;
|
|
15
13
|
/** Unique identifier for the tenant/organization */
|
|
16
14
|
tenant_id: string;
|
|
17
15
|
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
18
16
|
sub_tenant_id?: string;
|
|
17
|
+
/** Search terms to find in your content */
|
|
18
|
+
query: string;
|
|
19
19
|
/** How to combine search terms (OR or AND) */
|
|
20
20
|
operator?: CortexAI.Bm25OperatorType;
|
|
21
21
|
/** Maximum number of results to return */
|
|
22
22
|
max_chunks?: number;
|
|
23
|
+
/** What to search: 'sources' for documents or 'memories' for user memories */
|
|
24
|
+
search_mode?: CortexAI.SearchMode;
|
|
23
25
|
}
|
package/dist/api/resources/search/client/requests/{SearchRequest.d.ts → HybridSearchRequest.d.ts}
RENAMED
|
@@ -5,35 +5,39 @@ import * as CortexAI from "../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* tenant_id: "tenant_id",
|
|
9
|
+
* query: "query"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
13
|
-
/** Search terms to find relevant content */
|
|
14
|
-
query: string;
|
|
12
|
+
export interface HybridSearchRequest {
|
|
15
13
|
/** Unique identifier for the tenant/organization */
|
|
16
14
|
tenant_id: string;
|
|
17
15
|
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
18
16
|
sub_tenant_id?: string;
|
|
17
|
+
/** Search terms to find relevant content */
|
|
18
|
+
query: string;
|
|
19
19
|
/** Maximum number of results to return */
|
|
20
20
|
max_chunks?: number;
|
|
21
21
|
/** Retrieval mode to use ('fast' or 'accurate') */
|
|
22
22
|
mode?: CortexAI.RetrieveMode;
|
|
23
23
|
/** Search ranking algorithm parameter (0.0-1.0 or 'auto') */
|
|
24
|
-
alpha?:
|
|
25
|
-
/** Preference for newer content (0.0 = no bias, 1.0 =
|
|
24
|
+
alpha?: HybridSearchRequest.Alpha;
|
|
25
|
+
/** Preference for newer content (0.0 = no bias, 1.0 = strong recency preference) */
|
|
26
26
|
recency_bias?: number;
|
|
27
|
+
/** Number of related content chunks to include */
|
|
28
|
+
num_related_chunks?: number;
|
|
27
29
|
/** Enable personalized search results based on user preferences */
|
|
28
30
|
personalise_search?: boolean;
|
|
29
31
|
/** Enable graph context for search results */
|
|
30
32
|
graph_context?: boolean;
|
|
31
33
|
/** Additional context provided by the user to guide retrieval */
|
|
32
34
|
extra_context?: string;
|
|
35
|
+
/** What to search: 'sources' for documents or 'memories' for user memories */
|
|
36
|
+
search_mode?: CortexAI.SearchMode;
|
|
33
37
|
}
|
|
34
|
-
export declare namespace
|
|
38
|
+
export declare namespace HybridSearchRequest {
|
|
35
39
|
/**
|
|
36
40
|
* Search ranking algorithm parameter (0.0-1.0 or 'auto')
|
|
37
41
|
*/
|
|
38
|
-
type Alpha =
|
|
42
|
+
type Alpha = string | number;
|
|
39
43
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* tenant_id: "tenant_id",
|
|
9
|
+
* question: "question"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface QnASearchRequest {
|
|
13
|
+
/** Unique identifier for the tenant/organization */
|
|
14
|
+
tenant_id: string;
|
|
15
|
+
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
16
|
+
sub_tenant_id?: string;
|
|
17
|
+
/** The question to answer based on indexed sources */
|
|
18
|
+
question: string;
|
|
19
|
+
/** Maximum number of context chunks to retrieve */
|
|
20
|
+
max_chunks?: number;
|
|
21
|
+
/** Retrieval mode: 'fast' for single query, 'accurate' for multi-query with reranking */
|
|
22
|
+
mode?: CortexAI.RetrieveMode;
|
|
23
|
+
/** Hybrid search alpha (0.0 = sparse/keyword, 1.0 = dense/semantic) */
|
|
24
|
+
alpha?: number;
|
|
25
|
+
/** What to search: 'sources' for documents or 'memories' for user memories */
|
|
26
|
+
search_mode?: CortexAI.SearchMode;
|
|
27
|
+
/** Whether to include knowledge graph context for enhanced answers */
|
|
28
|
+
include_graph_context?: boolean;
|
|
29
|
+
/** Additional context to guide retrieval and answer generation */
|
|
30
|
+
extra_context?: string;
|
|
31
|
+
/** LLM provider for answer generation */
|
|
32
|
+
llm_provider?: CortexAI.SupportedLlmProviders;
|
|
33
|
+
/** Specific model to use (defaults to provider's default model) */
|
|
34
|
+
model?: string;
|
|
35
|
+
/** LLM temperature for answer generation (lower = more focused) */
|
|
36
|
+
temperature?: number;
|
|
37
|
+
/** Maximum tokens for the generated answer */
|
|
38
|
+
max_tokens?: number;
|
|
39
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type SearchRequest } from "./SearchRequest.js";
|
|
1
|
+
export { type HybridSearchRequest } from "./HybridSearchRequest.js";
|
|
3
2
|
export { type FullTextSearchRequest } from "./FullTextSearchRequest.js";
|
|
3
|
+
export { type QnASearchRequest } from "./QnASearchRequest.js";
|
|
@@ -30,13 +30,14 @@ export declare class Sources {
|
|
|
30
30
|
protected readonly _options: Sources.Options;
|
|
31
31
|
constructor(_options?: Sources.Options);
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Remove documents and content from your knowledge base.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* This endpoint permanently deletes the specified sources from your knowledge base.
|
|
36
|
+
* Once deleted, the content will no longer be available for search or retrieval.
|
|
36
37
|
*
|
|
37
|
-
*
|
|
38
|
+
* Use this carefully as the action cannot be undone. The system will confirm successful deletion of each source ID you specify.
|
|
38
39
|
*
|
|
39
|
-
* @param {CortexAI.
|
|
40
|
+
* @param {CortexAI.SourceDeleteRequest} request
|
|
40
41
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
42
|
*
|
|
42
43
|
* @throws {@link CortexAI.BadRequestError}
|
|
@@ -48,64 +49,13 @@ export declare class Sources {
|
|
|
48
49
|
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
49
50
|
*
|
|
50
51
|
* @example
|
|
51
|
-
* await client.sources.
|
|
52
|
-
* tenant_id: "
|
|
53
|
-
* sub_tenant_id: "
|
|
52
|
+
* await client.sources.delete({
|
|
53
|
+
* tenant_id: "tenant_id",
|
|
54
|
+
* sub_tenant_id: "sub_tenant_id",
|
|
55
|
+
* source_ids: ["source_ids"]
|
|
54
56
|
* })
|
|
55
57
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
58
|
-
/**
|
|
59
|
-
* Retrieve specific sources by their IDs.
|
|
60
|
-
*
|
|
61
|
-
* Use this endpoint to fetch one or more sources by providing their unique identifiers. This is useful when you need detailed information about specific documents or content you've previously uploaded.
|
|
62
|
-
*
|
|
63
|
-
* Provide the source IDs in the request body along with your tenant information to get the exact sources you need.
|
|
64
|
-
*
|
|
65
|
-
* @param {CortexAI.SourceBodyParams} request
|
|
66
|
-
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @throws {@link CortexAI.BadRequestError}
|
|
69
|
-
* @throws {@link CortexAI.UnauthorizedError}
|
|
70
|
-
* @throws {@link CortexAI.ForbiddenError}
|
|
71
|
-
* @throws {@link CortexAI.NotFoundError}
|
|
72
|
-
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
73
|
-
* @throws {@link CortexAI.InternalServerError}
|
|
74
|
-
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* await client.sources.getByIds({
|
|
78
|
-
* tenant_id: "tenant_1234",
|
|
79
|
-
* source_ids: ["CortexDoc1234", "CortexDoc4567"]
|
|
80
|
-
* })
|
|
81
|
-
*/
|
|
82
|
-
getByIds(request: CortexAI.SourceBodyParams, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<CortexAI.ListSourcesResponse>;
|
|
83
|
-
private __getByIds;
|
|
84
|
-
/**
|
|
85
|
-
* Retrieve relations for a specific source.
|
|
86
|
-
*
|
|
87
|
-
* Use this endpoint to fetch all relations associated with a specific source. This is useful when you need to understand the relationships between entities within a source.
|
|
88
|
-
*
|
|
89
|
-
* Provide the source ID in the request body along with your tenant information to get the relations for that source.
|
|
90
|
-
*
|
|
91
|
-
* @param {CortexAI.SourcesGetGraphRelationsByIdRequest} request
|
|
92
|
-
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
-
*
|
|
94
|
-
* @throws {@link CortexAI.BadRequestError}
|
|
95
|
-
* @throws {@link CortexAI.UnauthorizedError}
|
|
96
|
-
* @throws {@link CortexAI.ForbiddenError}
|
|
97
|
-
* @throws {@link CortexAI.NotFoundError}
|
|
98
|
-
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
99
|
-
* @throws {@link CortexAI.InternalServerError}
|
|
100
|
-
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* await client.sources.getGraphRelationsById({
|
|
104
|
-
* source_id: "CortexDoc1234",
|
|
105
|
-
* tenant_id: "tenant_1234"
|
|
106
|
-
* })
|
|
107
|
-
*/
|
|
108
|
-
getGraphRelationsById(request: CortexAI.SourcesGetGraphRelationsByIdRequest, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<CortexAI.GraphRelationsResponse>;
|
|
109
|
-
private __getGraphRelationsById;
|
|
58
|
+
delete(request: CortexAI.SourceDeleteRequest, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<CortexAI.SourceDeleteResponse>;
|
|
59
|
+
private __delete;
|
|
110
60
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
111
61
|
}
|