@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 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); // composed parts to consume (text/HTML and inline images)
315
- console.log(response.evidenceText); // text projection of those parts
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`: text projection of those parts
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
- /** Text projection of evidence. Tables stay as HTML; images are data URLs. */
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`: text projection of those parts
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
- /** Text projection of evidence. Tables stay as HTML; images are data URLs. */
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ontos-ai/knowhere-sdk",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Official Node.js SDK for Knowhere document parsing API",
5
5
  "keywords": [
6
6
  "knowhere",