@ontos-ai/knowhere-sdk 2.2.0 → 2.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/README.md +9 -3
- package/dist/index.d.mts +28 -6
- package/dist/index.d.ts +28 -6
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -311,12 +311,13 @@ const response = await client.retrieval.query({
|
|
|
311
311
|
|
|
312
312
|
console.log(response.answerText); // LLM-generated answer
|
|
313
313
|
console.log(response.referencedChunks); // cited evidence chunks
|
|
314
|
-
console.log(response.
|
|
314
|
+
console.log(response.evidence); // composed parts to consume (text/HTML and inline images)
|
|
315
|
+
console.log(response.evidenceText); // text projection of those parts
|
|
315
316
|
console.log(response.stopReason); // agentic termination reason, when returned
|
|
316
317
|
console.log(response.failureReason); // no-answer reason, when returned
|
|
317
318
|
|
|
318
319
|
for (const result of response.results) {
|
|
319
|
-
console.log(result.content);
|
|
320
|
+
console.log(result.content); // raw path chunk for debug
|
|
320
321
|
console.log(result.contentSource);
|
|
321
322
|
console.log(result.score);
|
|
322
323
|
console.log(result.metadata?.pageNums);
|
|
@@ -515,12 +516,17 @@ without creating SDK local-disk cache state. Use `syncParsedDocument(...)` to
|
|
|
515
516
|
explicitly resume or retry parsed-storage sync for an existing `documentId`,
|
|
516
517
|
`jobId`, or local parsed result.
|
|
517
518
|
|
|
518
|
-
|
|
519
|
+
Retrieval queries can limit documents and exclude documents or sections for one request.
|
|
520
|
+
`includeDocumentIds?: string[]` restricts retrieval to the supplied document IDs.
|
|
521
|
+
Omitting it leaves documents unrestricted by inclusion; passing `[]` matches no
|
|
522
|
+
documents. Exclusions take precedence over inclusions, including when a document
|
|
523
|
+
ID appears in both `includeDocumentIds` and `excludeDocumentIds`.
|
|
519
524
|
|
|
520
525
|
```typescript
|
|
521
526
|
const followUp = await client.retrieval.query({
|
|
522
527
|
namespace: 'support-center',
|
|
523
528
|
query: 'battery charging',
|
|
529
|
+
includeDocumentIds: ['doc_123', 'doc_old'],
|
|
524
530
|
excludeDocumentIds: ['doc_old'],
|
|
525
531
|
excludeSections: [{ documentId: 'doc_123', sectionPath: 'Appendix / Legal' }],
|
|
526
532
|
});
|
package/dist/index.d.mts
CHANGED
|
@@ -859,7 +859,13 @@ interface RetrievalQueryParams {
|
|
|
859
859
|
threshold?: number;
|
|
860
860
|
/** Override the internal per-channel recall count */
|
|
861
861
|
internalRecallK?: number;
|
|
862
|
-
/**
|
|
862
|
+
/**
|
|
863
|
+
* Limit retrieval to these documents for this request only.
|
|
864
|
+
* Omitted means no document inclusion restriction; [] matches no documents.
|
|
865
|
+
* Exclusions take precedence over inclusions.
|
|
866
|
+
*/
|
|
867
|
+
includeDocumentIds?: string[];
|
|
868
|
+
/** Documents to exclude for this request only, even when included in includeDocumentIds. */
|
|
863
869
|
excludeDocumentIds?: string[];
|
|
864
870
|
/** Document sections to exclude for this request only */
|
|
865
871
|
excludeSections?: RetrievalSectionExclusion[];
|
|
@@ -877,13 +883,24 @@ interface RetrievalSource {
|
|
|
877
883
|
/** Human-readable section path */
|
|
878
884
|
sectionPath?: string | null;
|
|
879
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* One composed evidence part. Tables stay in text as HTML; images are inline bytes.
|
|
888
|
+
*/
|
|
889
|
+
type RetrievalEvidencePart = {
|
|
890
|
+
type: 'text';
|
|
891
|
+
text: string;
|
|
892
|
+
} | {
|
|
893
|
+
type: 'image';
|
|
894
|
+
mediaType: string;
|
|
895
|
+
data: string;
|
|
896
|
+
};
|
|
880
897
|
/**
|
|
881
898
|
* Canonical chunk result returned by retrieval query.
|
|
882
899
|
*/
|
|
883
900
|
interface RetrievalResult {
|
|
884
901
|
/** Parser-provided chunk identifier when included by the API */
|
|
885
902
|
chunkId?: string;
|
|
886
|
-
/**
|
|
903
|
+
/** Raw chunk body for debug. Placeholders stay intact. */
|
|
887
904
|
content: string;
|
|
888
905
|
/** Chunk type, for example text, image, table, or page */
|
|
889
906
|
chunkType: string;
|
|
@@ -930,8 +947,10 @@ interface RetrievalReferencedChunk {
|
|
|
930
947
|
/**
|
|
931
948
|
* Response from POST /v2/retrieval/query.
|
|
932
949
|
*
|
|
933
|
-
*
|
|
934
|
-
* - `
|
|
950
|
+
* Downstream agents consume:
|
|
951
|
+
* - `evidence`: composed parts (text/HTML and inline images)
|
|
952
|
+
* - `evidenceText`: text projection of those parts
|
|
953
|
+
* - `results`: raw path chunks for debug
|
|
935
954
|
* - `decisionTrace`: per-step navigation decisions (includes stop/failure)
|
|
936
955
|
* - `referencedChunks`: structured chunk citations for follow-up queries
|
|
937
956
|
*/
|
|
@@ -942,11 +961,13 @@ interface RetrievalQueryResponse {
|
|
|
942
961
|
query: string;
|
|
943
962
|
/** Retrieval router path used by the API for this query */
|
|
944
963
|
routerUsed: string;
|
|
964
|
+
/** Composed evidence parts in result order */
|
|
965
|
+
evidence?: RetrievalEvidencePart[];
|
|
945
966
|
/** LLM-generated natural-language answer, or null when no answer was produced */
|
|
946
967
|
answerText: string | null;
|
|
947
968
|
/** Cited evidence chunks with asset URLs when available */
|
|
948
969
|
referencedChunks: RetrievalReferencedChunk[];
|
|
949
|
-
/**
|
|
970
|
+
/** Text projection of evidence. Tables stay as HTML; images are data URLs. */
|
|
950
971
|
evidenceText?: string | null;
|
|
951
972
|
/** Reason why the agentic run stopped (e.g. answer_done, not_found) */
|
|
952
973
|
stopReason?: string | null;
|
|
@@ -1383,6 +1404,7 @@ interface KnowledgeSearchReference {
|
|
|
1383
1404
|
interface KnowledgeSearchResponse {
|
|
1384
1405
|
namespace?: string;
|
|
1385
1406
|
query: string;
|
|
1407
|
+
evidence?: RetrievalEvidencePart[];
|
|
1386
1408
|
evidenceText?: string | null;
|
|
1387
1409
|
references: KnowledgeSearchReference[];
|
|
1388
1410
|
results: KnowledgeSearchResult[];
|
|
@@ -1722,4 +1744,4 @@ declare class JobFailedError extends KnowhereError {
|
|
|
1722
1744
|
constructor(message: string, code: string, jobResult: JobResult);
|
|
1723
1745
|
}
|
|
1724
1746
|
|
|
1725
|
-
export { APIError, type AuthTokenProvider, AuthenticationError, BadRequestError, type BaseChunk, ChecksumError, type Chunk, ConflictError, type CreateJobParams, DiskParsedDocumentStorage, type DocType, type Document, type DocumentChunk, type DocumentChunkGetParams, type DocumentChunkListParams, type DocumentChunkListResponse, type DocumentChunkPagination, type DocumentChunkResponse, type DocumentChunkType, type DocumentListPagination, type DocumentListParams, type DocumentListResponse, type DocumentMetadata, type DocumentPageCitationSource, Documents, type FileIndex, GatewayTimeoutError, type ImageChunk, InternalServerError, InvalidStateError, type Job, type JobError, JobFailedError, type JobResult, type JobStatus, Jobs, Knowhere, type KnowhereAssetStorageAdapter, type KnowhereAssetStorageBody, type KnowhereAssetStorageHead, type KnowhereAssetStorageObject, type KnowhereAssetStorageOptions, type KnowhereAssetStorageResult, type KnowhereAssetStorageWriteResult, KnowhereError, type KnowhereOptions, Knowledge, type KnowledgeAsyncJobStatusResponse, type KnowledgeAsyncParseParams, type KnowledgeAsyncParseResponse, type KnowledgeCacheDocumentParams, type KnowledgeCacheJobResultParams, type KnowledgeChunkType, type KnowledgeDocumentReference, type KnowledgeGrepMatch, type KnowledgeGrepParams, type KnowledgeGrepResponse, type KnowledgeImportJobResultParams, type KnowledgeJobResultResponse, type KnowledgeLoadJobResultParams, type KnowledgeOutline, type KnowledgeParseParams, type KnowledgeParsedStorageOptions, type KnowledgeReadChunk, type KnowledgeReadParams, type KnowledgeReadResponse, type KnowledgeSearchParams, type KnowledgeSearchReference, type KnowledgeSearchResponse, type KnowledgeSearchResult, type KnowledgeSection, type KnowledgeStartupRecoveryResponse, type KnowledgeSyncParsedDocumentParams, type KnowledgeSyncParsedDocumentResponse, type LlmConfig, type LlmModelsConfig, type LlmProviderConfig, type LoadOptions, type LocalKnowledgeDocument, type LocalKnowledgeParseResponse, LocalKnowledgeStore, type Manifest, NODE_SDK_DOCUMENT_METADATA_DEFAULTS, NetworkError, NotFoundError, type PageChunk, type PageCitationAsset, type PageCitationAssetContentType, type PageCitationAssetSource, type ParseParams, type ParseResult, type ParsedDocumentCommit, type ParsedDocumentCommitSource, type ParsedDocumentObject, type ParsedDocumentObjectHead, type ParsedDocumentObjectParams, type ParsedDocumentRevisionParams, type ParsedDocumentStorage, type ParsedDocumentStorageConfig, type ParsedDocumentStorageDocument, type ParsedDocumentStorageLimits, type ParsedDocumentSyncProgress, type ParsedDocumentSyncScheduler, type ParsedDocumentWriteObjectParams, type ParsedDocumentWriteObjectResult, type ParsingModel, type ParsingParams, PaymentRequiredError, PermissionDeniedError, type PollProgress, PollingTimeoutError, RateLimitError, Retrieval, type RetrievalChannel, type RetrievalChunkType, type RetrievalFilterMode, type RetrievalQueryParams, type RetrievalQueryResponse, type RetrievalReferencedChunk, type RetrievalResult, type RetrievalSectionExclusion, type RetrievalSource, ServiceUnavailableError, type Statistics, type TableChunk, type TextChunk, TimeoutError, type UploadParams, type UploadProgress, VERSION, ValidationError, type WaitOptions, type WebhookConfig, Knowhere as default, mergeDocumentMetadataDefaults, storeParseResultAssets, syncParseResultToParsedDocumentStorage };
|
|
1747
|
+
export { APIError, type AuthTokenProvider, AuthenticationError, BadRequestError, type BaseChunk, ChecksumError, type Chunk, ConflictError, type CreateJobParams, DiskParsedDocumentStorage, type DocType, type Document, type DocumentChunk, type DocumentChunkGetParams, type DocumentChunkListParams, type DocumentChunkListResponse, type DocumentChunkPagination, type DocumentChunkResponse, type DocumentChunkType, type DocumentListPagination, type DocumentListParams, type DocumentListResponse, type DocumentMetadata, type DocumentPageCitationSource, Documents, type FileIndex, GatewayTimeoutError, type ImageChunk, InternalServerError, InvalidStateError, type Job, type JobError, JobFailedError, type JobResult, type JobStatus, Jobs, Knowhere, type KnowhereAssetStorageAdapter, type KnowhereAssetStorageBody, type KnowhereAssetStorageHead, type KnowhereAssetStorageObject, type KnowhereAssetStorageOptions, type KnowhereAssetStorageResult, type KnowhereAssetStorageWriteResult, KnowhereError, type KnowhereOptions, Knowledge, type KnowledgeAsyncJobStatusResponse, type KnowledgeAsyncParseParams, type KnowledgeAsyncParseResponse, type KnowledgeCacheDocumentParams, type KnowledgeCacheJobResultParams, type KnowledgeChunkType, type KnowledgeDocumentReference, type KnowledgeGrepMatch, type KnowledgeGrepParams, type KnowledgeGrepResponse, type KnowledgeImportJobResultParams, type KnowledgeJobResultResponse, type KnowledgeLoadJobResultParams, type KnowledgeOutline, type KnowledgeParseParams, type KnowledgeParsedStorageOptions, type KnowledgeReadChunk, type KnowledgeReadParams, type KnowledgeReadResponse, type KnowledgeSearchParams, type KnowledgeSearchReference, type KnowledgeSearchResponse, type KnowledgeSearchResult, type KnowledgeSection, type KnowledgeStartupRecoveryResponse, type KnowledgeSyncParsedDocumentParams, type KnowledgeSyncParsedDocumentResponse, type LlmConfig, type LlmModelsConfig, type LlmProviderConfig, type LoadOptions, type LocalKnowledgeDocument, type LocalKnowledgeParseResponse, LocalKnowledgeStore, type Manifest, NODE_SDK_DOCUMENT_METADATA_DEFAULTS, NetworkError, NotFoundError, type PageChunk, type PageCitationAsset, type PageCitationAssetContentType, type PageCitationAssetSource, type ParseParams, type ParseResult, type ParsedDocumentCommit, type ParsedDocumentCommitSource, type ParsedDocumentObject, type ParsedDocumentObjectHead, type ParsedDocumentObjectParams, type ParsedDocumentRevisionParams, type ParsedDocumentStorage, type ParsedDocumentStorageConfig, type ParsedDocumentStorageDocument, type ParsedDocumentStorageLimits, type ParsedDocumentSyncProgress, type ParsedDocumentSyncScheduler, type ParsedDocumentWriteObjectParams, type ParsedDocumentWriteObjectResult, type ParsingModel, type ParsingParams, PaymentRequiredError, PermissionDeniedError, type PollProgress, PollingTimeoutError, RateLimitError, Retrieval, type RetrievalChannel, type RetrievalChunkType, type RetrievalEvidencePart, type RetrievalFilterMode, type RetrievalQueryParams, type RetrievalQueryResponse, type RetrievalReferencedChunk, type RetrievalResult, type RetrievalSectionExclusion, type RetrievalSource, ServiceUnavailableError, type Statistics, type TableChunk, type TextChunk, TimeoutError, type UploadParams, type UploadProgress, VERSION, ValidationError, type WaitOptions, type WebhookConfig, Knowhere as default, mergeDocumentMetadataDefaults, storeParseResultAssets, syncParseResultToParsedDocumentStorage };
|
package/dist/index.d.ts
CHANGED
|
@@ -859,7 +859,13 @@ interface RetrievalQueryParams {
|
|
|
859
859
|
threshold?: number;
|
|
860
860
|
/** Override the internal per-channel recall count */
|
|
861
861
|
internalRecallK?: number;
|
|
862
|
-
/**
|
|
862
|
+
/**
|
|
863
|
+
* Limit retrieval to these documents for this request only.
|
|
864
|
+
* Omitted means no document inclusion restriction; [] matches no documents.
|
|
865
|
+
* Exclusions take precedence over inclusions.
|
|
866
|
+
*/
|
|
867
|
+
includeDocumentIds?: string[];
|
|
868
|
+
/** Documents to exclude for this request only, even when included in includeDocumentIds. */
|
|
863
869
|
excludeDocumentIds?: string[];
|
|
864
870
|
/** Document sections to exclude for this request only */
|
|
865
871
|
excludeSections?: RetrievalSectionExclusion[];
|
|
@@ -877,13 +883,24 @@ interface RetrievalSource {
|
|
|
877
883
|
/** Human-readable section path */
|
|
878
884
|
sectionPath?: string | null;
|
|
879
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* One composed evidence part. Tables stay in text as HTML; images are inline bytes.
|
|
888
|
+
*/
|
|
889
|
+
type RetrievalEvidencePart = {
|
|
890
|
+
type: 'text';
|
|
891
|
+
text: string;
|
|
892
|
+
} | {
|
|
893
|
+
type: 'image';
|
|
894
|
+
mediaType: string;
|
|
895
|
+
data: string;
|
|
896
|
+
};
|
|
880
897
|
/**
|
|
881
898
|
* Canonical chunk result returned by retrieval query.
|
|
882
899
|
*/
|
|
883
900
|
interface RetrievalResult {
|
|
884
901
|
/** Parser-provided chunk identifier when included by the API */
|
|
885
902
|
chunkId?: string;
|
|
886
|
-
/**
|
|
903
|
+
/** Raw chunk body for debug. Placeholders stay intact. */
|
|
887
904
|
content: string;
|
|
888
905
|
/** Chunk type, for example text, image, table, or page */
|
|
889
906
|
chunkType: string;
|
|
@@ -930,8 +947,10 @@ interface RetrievalReferencedChunk {
|
|
|
930
947
|
/**
|
|
931
948
|
* Response from POST /v2/retrieval/query.
|
|
932
949
|
*
|
|
933
|
-
*
|
|
934
|
-
* - `
|
|
950
|
+
* Downstream agents consume:
|
|
951
|
+
* - `evidence`: composed parts (text/HTML and inline images)
|
|
952
|
+
* - `evidenceText`: text projection of those parts
|
|
953
|
+
* - `results`: raw path chunks for debug
|
|
935
954
|
* - `decisionTrace`: per-step navigation decisions (includes stop/failure)
|
|
936
955
|
* - `referencedChunks`: structured chunk citations for follow-up queries
|
|
937
956
|
*/
|
|
@@ -942,11 +961,13 @@ interface RetrievalQueryResponse {
|
|
|
942
961
|
query: string;
|
|
943
962
|
/** Retrieval router path used by the API for this query */
|
|
944
963
|
routerUsed: string;
|
|
964
|
+
/** Composed evidence parts in result order */
|
|
965
|
+
evidence?: RetrievalEvidencePart[];
|
|
945
966
|
/** LLM-generated natural-language answer, or null when no answer was produced */
|
|
946
967
|
answerText: string | null;
|
|
947
968
|
/** Cited evidence chunks with asset URLs when available */
|
|
948
969
|
referencedChunks: RetrievalReferencedChunk[];
|
|
949
|
-
/**
|
|
970
|
+
/** Text projection of evidence. Tables stay as HTML; images are data URLs. */
|
|
950
971
|
evidenceText?: string | null;
|
|
951
972
|
/** Reason why the agentic run stopped (e.g. answer_done, not_found) */
|
|
952
973
|
stopReason?: string | null;
|
|
@@ -1383,6 +1404,7 @@ interface KnowledgeSearchReference {
|
|
|
1383
1404
|
interface KnowledgeSearchResponse {
|
|
1384
1405
|
namespace?: string;
|
|
1385
1406
|
query: string;
|
|
1407
|
+
evidence?: RetrievalEvidencePart[];
|
|
1386
1408
|
evidenceText?: string | null;
|
|
1387
1409
|
references: KnowledgeSearchReference[];
|
|
1388
1410
|
results: KnowledgeSearchResult[];
|
|
@@ -1722,4 +1744,4 @@ declare class JobFailedError extends KnowhereError {
|
|
|
1722
1744
|
constructor(message: string, code: string, jobResult: JobResult);
|
|
1723
1745
|
}
|
|
1724
1746
|
|
|
1725
|
-
export { APIError, type AuthTokenProvider, AuthenticationError, BadRequestError, type BaseChunk, ChecksumError, type Chunk, ConflictError, type CreateJobParams, DiskParsedDocumentStorage, type DocType, type Document, type DocumentChunk, type DocumentChunkGetParams, type DocumentChunkListParams, type DocumentChunkListResponse, type DocumentChunkPagination, type DocumentChunkResponse, type DocumentChunkType, type DocumentListPagination, type DocumentListParams, type DocumentListResponse, type DocumentMetadata, type DocumentPageCitationSource, Documents, type FileIndex, GatewayTimeoutError, type ImageChunk, InternalServerError, InvalidStateError, type Job, type JobError, JobFailedError, type JobResult, type JobStatus, Jobs, Knowhere, type KnowhereAssetStorageAdapter, type KnowhereAssetStorageBody, type KnowhereAssetStorageHead, type KnowhereAssetStorageObject, type KnowhereAssetStorageOptions, type KnowhereAssetStorageResult, type KnowhereAssetStorageWriteResult, KnowhereError, type KnowhereOptions, Knowledge, type KnowledgeAsyncJobStatusResponse, type KnowledgeAsyncParseParams, type KnowledgeAsyncParseResponse, type KnowledgeCacheDocumentParams, type KnowledgeCacheJobResultParams, type KnowledgeChunkType, type KnowledgeDocumentReference, type KnowledgeGrepMatch, type KnowledgeGrepParams, type KnowledgeGrepResponse, type KnowledgeImportJobResultParams, type KnowledgeJobResultResponse, type KnowledgeLoadJobResultParams, type KnowledgeOutline, type KnowledgeParseParams, type KnowledgeParsedStorageOptions, type KnowledgeReadChunk, type KnowledgeReadParams, type KnowledgeReadResponse, type KnowledgeSearchParams, type KnowledgeSearchReference, type KnowledgeSearchResponse, type KnowledgeSearchResult, type KnowledgeSection, type KnowledgeStartupRecoveryResponse, type KnowledgeSyncParsedDocumentParams, type KnowledgeSyncParsedDocumentResponse, type LlmConfig, type LlmModelsConfig, type LlmProviderConfig, type LoadOptions, type LocalKnowledgeDocument, type LocalKnowledgeParseResponse, LocalKnowledgeStore, type Manifest, NODE_SDK_DOCUMENT_METADATA_DEFAULTS, NetworkError, NotFoundError, type PageChunk, type PageCitationAsset, type PageCitationAssetContentType, type PageCitationAssetSource, type ParseParams, type ParseResult, type ParsedDocumentCommit, type ParsedDocumentCommitSource, type ParsedDocumentObject, type ParsedDocumentObjectHead, type ParsedDocumentObjectParams, type ParsedDocumentRevisionParams, type ParsedDocumentStorage, type ParsedDocumentStorageConfig, type ParsedDocumentStorageDocument, type ParsedDocumentStorageLimits, type ParsedDocumentSyncProgress, type ParsedDocumentSyncScheduler, type ParsedDocumentWriteObjectParams, type ParsedDocumentWriteObjectResult, type ParsingModel, type ParsingParams, PaymentRequiredError, PermissionDeniedError, type PollProgress, PollingTimeoutError, RateLimitError, Retrieval, type RetrievalChannel, type RetrievalChunkType, type RetrievalFilterMode, type RetrievalQueryParams, type RetrievalQueryResponse, type RetrievalReferencedChunk, type RetrievalResult, type RetrievalSectionExclusion, type RetrievalSource, ServiceUnavailableError, type Statistics, type TableChunk, type TextChunk, TimeoutError, type UploadParams, type UploadProgress, VERSION, ValidationError, type WaitOptions, type WebhookConfig, Knowhere as default, mergeDocumentMetadataDefaults, storeParseResultAssets, syncParseResultToParsedDocumentStorage };
|
|
1747
|
+
export { APIError, type AuthTokenProvider, AuthenticationError, BadRequestError, type BaseChunk, ChecksumError, type Chunk, ConflictError, type CreateJobParams, DiskParsedDocumentStorage, type DocType, type Document, type DocumentChunk, type DocumentChunkGetParams, type DocumentChunkListParams, type DocumentChunkListResponse, type DocumentChunkPagination, type DocumentChunkResponse, type DocumentChunkType, type DocumentListPagination, type DocumentListParams, type DocumentListResponse, type DocumentMetadata, type DocumentPageCitationSource, Documents, type FileIndex, GatewayTimeoutError, type ImageChunk, InternalServerError, InvalidStateError, type Job, type JobError, JobFailedError, type JobResult, type JobStatus, Jobs, Knowhere, type KnowhereAssetStorageAdapter, type KnowhereAssetStorageBody, type KnowhereAssetStorageHead, type KnowhereAssetStorageObject, type KnowhereAssetStorageOptions, type KnowhereAssetStorageResult, type KnowhereAssetStorageWriteResult, KnowhereError, type KnowhereOptions, Knowledge, type KnowledgeAsyncJobStatusResponse, type KnowledgeAsyncParseParams, type KnowledgeAsyncParseResponse, type KnowledgeCacheDocumentParams, type KnowledgeCacheJobResultParams, type KnowledgeChunkType, type KnowledgeDocumentReference, type KnowledgeGrepMatch, type KnowledgeGrepParams, type KnowledgeGrepResponse, type KnowledgeImportJobResultParams, type KnowledgeJobResultResponse, type KnowledgeLoadJobResultParams, type KnowledgeOutline, type KnowledgeParseParams, type KnowledgeParsedStorageOptions, type KnowledgeReadChunk, type KnowledgeReadParams, type KnowledgeReadResponse, type KnowledgeSearchParams, type KnowledgeSearchReference, type KnowledgeSearchResponse, type KnowledgeSearchResult, type KnowledgeSection, type KnowledgeStartupRecoveryResponse, type KnowledgeSyncParsedDocumentParams, type KnowledgeSyncParsedDocumentResponse, type LlmConfig, type LlmModelsConfig, type LlmProviderConfig, type LoadOptions, type LocalKnowledgeDocument, type LocalKnowledgeParseResponse, LocalKnowledgeStore, type Manifest, NODE_SDK_DOCUMENT_METADATA_DEFAULTS, NetworkError, NotFoundError, type PageChunk, type PageCitationAsset, type PageCitationAssetContentType, type PageCitationAssetSource, type ParseParams, type ParseResult, type ParsedDocumentCommit, type ParsedDocumentCommitSource, type ParsedDocumentObject, type ParsedDocumentObjectHead, type ParsedDocumentObjectParams, type ParsedDocumentRevisionParams, type ParsedDocumentStorage, type ParsedDocumentStorageConfig, type ParsedDocumentStorageDocument, type ParsedDocumentStorageLimits, type ParsedDocumentSyncProgress, type ParsedDocumentSyncScheduler, type ParsedDocumentWriteObjectParams, type ParsedDocumentWriteObjectResult, type ParsingModel, type ParsingParams, PaymentRequiredError, PermissionDeniedError, type PollProgress, PollingTimeoutError, RateLimitError, Retrieval, type RetrievalChannel, type RetrievalChunkType, type RetrievalEvidencePart, type RetrievalFilterMode, type RetrievalQueryParams, type RetrievalQueryResponse, type RetrievalReferencedChunk, type RetrievalResult, type RetrievalSectionExclusion, type RetrievalSource, ServiceUnavailableError, type Statistics, type TableChunk, type TextChunk, TimeoutError, type UploadParams, type UploadProgress, VERSION, ValidationError, type WaitOptions, type WebhookConfig, Knowhere as default, mergeDocumentMetadataDefaults, storeParseResultAssets, syncParseResultToParsedDocumentStorage };
|
package/dist/index.js
CHANGED
|
@@ -2637,6 +2637,7 @@ var Knowledge = class _Knowledge {
|
|
|
2637
2637
|
return {
|
|
2638
2638
|
namespace: rawResponse.namespace,
|
|
2639
2639
|
query: rawResponse.query,
|
|
2640
|
+
evidence: rawResponse.evidence ?? [],
|
|
2640
2641
|
evidenceText: rawResponse.evidenceText,
|
|
2641
2642
|
references: [
|
|
2642
2643
|
...rawResponse.referencedChunks.map(
|
package/dist/index.mjs
CHANGED
|
@@ -2572,6 +2572,7 @@ var Knowledge = class _Knowledge {
|
|
|
2572
2572
|
return {
|
|
2573
2573
|
namespace: rawResponse.namespace,
|
|
2574
2574
|
query: rawResponse.query,
|
|
2575
|
+
evidence: rawResponse.evidence ?? [],
|
|
2575
2576
|
evidenceText: rawResponse.evidenceText,
|
|
2576
2577
|
references: [
|
|
2577
2578
|
...rawResponse.referencedChunks.map(
|