@ontos-ai/knowhere-sdk 2.4.0 → 2.4.1
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 +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -311,8 +311,8 @@ 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.evidence); //
|
|
315
|
-
console.log(response.evidenceText); //
|
|
314
|
+
console.log(response.evidence); // grouped [E n] parts (text/HTML and inline images)
|
|
315
|
+
console.log(response.evidenceText); // deprecated; always empty. Use evidence.
|
|
316
316
|
console.log(response.stopReason); // agentic termination reason, when returned
|
|
317
317
|
console.log(response.failureReason); // no-answer reason, when returned
|
|
318
318
|
|
package/dist/index.d.mts
CHANGED
|
@@ -949,7 +949,7 @@ interface RetrievalReferencedChunk {
|
|
|
949
949
|
*
|
|
950
950
|
* Downstream agents consume:
|
|
951
951
|
* - `evidence`: composed parts (text/HTML and inline images)
|
|
952
|
-
* - `evidenceText`:
|
|
952
|
+
* - `evidenceText`: deprecated; always empty. Use `evidence`.
|
|
953
953
|
* - `results`: raw path chunks for debug
|
|
954
954
|
* - `decisionTrace`: per-step navigation decisions (includes stop/failure)
|
|
955
955
|
* - `referencedChunks`: structured chunk citations for follow-up queries
|
|
@@ -967,7 +967,7 @@ interface RetrievalQueryResponse {
|
|
|
967
967
|
answerText: string | null;
|
|
968
968
|
/** Cited evidence chunks with asset URLs when available */
|
|
969
969
|
referencedChunks: RetrievalReferencedChunk[];
|
|
970
|
-
/**
|
|
970
|
+
/** Deprecated. Always empty. Use evidence. */
|
|
971
971
|
evidenceText?: string | null;
|
|
972
972
|
/** Reason why the agentic run stopped (e.g. answer_done, not_found) */
|
|
973
973
|
stopReason?: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -949,7 +949,7 @@ interface RetrievalReferencedChunk {
|
|
|
949
949
|
*
|
|
950
950
|
* Downstream agents consume:
|
|
951
951
|
* - `evidence`: composed parts (text/HTML and inline images)
|
|
952
|
-
* - `evidenceText`:
|
|
952
|
+
* - `evidenceText`: deprecated; always empty. Use `evidence`.
|
|
953
953
|
* - `results`: raw path chunks for debug
|
|
954
954
|
* - `decisionTrace`: per-step navigation decisions (includes stop/failure)
|
|
955
955
|
* - `referencedChunks`: structured chunk citations for follow-up queries
|
|
@@ -967,7 +967,7 @@ interface RetrievalQueryResponse {
|
|
|
967
967
|
answerText: string | null;
|
|
968
968
|
/** Cited evidence chunks with asset URLs when available */
|
|
969
969
|
referencedChunks: RetrievalReferencedChunk[];
|
|
970
|
-
/**
|
|
970
|
+
/** Deprecated. Always empty. Use evidence. */
|
|
971
971
|
evidenceText?: string | null;
|
|
972
972
|
/** Reason why the agentic run stopped (e.g. answer_done, not_found) */
|
|
973
973
|
stopReason?: string | null;
|