@babav/knowledge-core-client 0.12.0 → 0.13.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/index.d.ts +4 -5
- package/package.json +1 -1
- package/src/index.ts +7 -8
package/dist/index.d.ts
CHANGED
|
@@ -88,8 +88,11 @@ export interface Citation {
|
|
|
88
88
|
source_url: string | null;
|
|
89
89
|
}
|
|
90
90
|
export interface GroundednessSentence {
|
|
91
|
-
/** Char span
|
|
91
|
+
/** Char span into the RAW answer (concatenated tokens / `final.answer`). */
|
|
92
92
|
text_span: [number, number];
|
|
93
|
+
/** The exact sentence text — highlight by matching this in the rendered output
|
|
94
|
+
* (robust to markdown rendering + inserted citation markers) rather than offsets. */
|
|
95
|
+
text: string;
|
|
93
96
|
score: number;
|
|
94
97
|
passed: boolean | null;
|
|
95
98
|
}
|
|
@@ -199,12 +202,8 @@ export interface Tenant {
|
|
|
199
202
|
id: UUID;
|
|
200
203
|
name: string;
|
|
201
204
|
external_ref: string | null;
|
|
202
|
-
vector_index: string | null;
|
|
203
205
|
source_bucket: string | null;
|
|
204
206
|
artifacts_bucket: string | null;
|
|
205
|
-
query_endpoint: string | null;
|
|
206
|
-
query_public_domain: string | null;
|
|
207
|
-
query_deployed_index_id: string | null;
|
|
208
207
|
}
|
|
209
208
|
export interface ApiKeyCreated {
|
|
210
209
|
id: UUID;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface QueryOverrides {
|
|
|
65
65
|
rerank_instruction?: string;
|
|
66
66
|
max_hops?: number;
|
|
67
67
|
groundedness_threshold?: number;
|
|
68
|
-
grounding_enabled?: boolean; //
|
|
68
|
+
grounding_enabled?: boolean; // groundedness score (default off)
|
|
69
69
|
citations_enabled?: boolean; // source attribution (default on)
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -103,8 +103,11 @@ export interface Citation {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export interface GroundednessSentence {
|
|
106
|
-
/** Char span
|
|
106
|
+
/** Char span into the RAW answer (concatenated tokens / `final.answer`). */
|
|
107
107
|
text_span: [number, number];
|
|
108
|
+
/** The exact sentence text — highlight by matching this in the rendered output
|
|
109
|
+
* (robust to markdown rendering + inserted citation markers) rather than offsets. */
|
|
110
|
+
text: string;
|
|
108
111
|
score: number;
|
|
109
112
|
passed: boolean | null;
|
|
110
113
|
}
|
|
@@ -212,12 +215,8 @@ export interface Tenant {
|
|
|
212
215
|
id: UUID;
|
|
213
216
|
name: string;
|
|
214
217
|
external_ref: string | null;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
artifacts_bucket: string | null;
|
|
218
|
-
query_endpoint: string | null;
|
|
219
|
-
query_public_domain: string | null;
|
|
220
|
-
query_deployed_index_id: string | null;
|
|
218
|
+
source_bucket: string | null; // GCS source files
|
|
219
|
+
artifacts_bucket: string | null; // GCS parsed artifacts
|
|
221
220
|
}
|
|
222
221
|
export interface ApiKeyCreated {
|
|
223
222
|
id: UUID;
|