@babav/knowledge-core-client 0.47.0 → 0.48.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 +11 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -1067,6 +1067,17 @@ export declare class KnowledgeCoreClient extends HttpBase {
|
|
|
1067
1067
|
category?: BenchmarkCategory;
|
|
1068
1068
|
limit?: number;
|
|
1069
1069
|
}) => Promise<Leaderboard>;
|
|
1070
|
+
/** Kick the NSGA-II sweep as the BENCHMARK TENANT (this client's own key — no admin key). The
|
|
1071
|
+
* benchmark tenant owns the bench corpora + eval-set; the sweep exercises candidate configs and
|
|
1072
|
+
* populates the leaderboards. Runs in the background — returns 202 immediately. */
|
|
1073
|
+
sweep: (b?: {
|
|
1074
|
+
scale?: "full" | "scoped";
|
|
1075
|
+
concurrency?: number;
|
|
1076
|
+
}) => Promise<{
|
|
1077
|
+
status: string;
|
|
1078
|
+
scale: string;
|
|
1079
|
+
concurrency: number | null;
|
|
1080
|
+
}>;
|
|
1070
1081
|
};
|
|
1071
1082
|
/** Ingestion profiles — the build-side config object (counterpart to query profiles): a tenant-owned,
|
|
1072
1083
|
* named bundle of pipeline config (chunking + embedding + sparse + quant). Unlike a query profile
|
package/dist/index.js
CHANGED
|
@@ -482,6 +482,10 @@ export class KnowledgeCoreClient extends HttpBase {
|
|
|
482
482
|
* Tenant-anonymous (keyed by config hash); never a customer config. */
|
|
483
483
|
benchmark = {
|
|
484
484
|
leaderboard: (q) => this.request("GET", "/v1/benchmark/leaderboard", { query: q }),
|
|
485
|
+
/** Kick the NSGA-II sweep as the BENCHMARK TENANT (this client's own key — no admin key). The
|
|
486
|
+
* benchmark tenant owns the bench corpora + eval-set; the sweep exercises candidate configs and
|
|
487
|
+
* populates the leaderboards. Runs in the background — returns 202 immediately. */
|
|
488
|
+
sweep: (b) => this.request("POST", "/v1/benchmark/sweep", { query: b }),
|
|
485
489
|
};
|
|
486
490
|
/** Ingestion profiles — the build-side config object (counterpart to query profiles): a tenant-owned,
|
|
487
491
|
* named bundle of pipeline config (chunking + embedding + sparse + quant). Unlike a query profile
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babav/knowledge-core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps). Includes the babav.visual grammar TYPES at the ./visual subpath (types only; all visual rendering is server-side).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/index.ts
CHANGED
|
@@ -1199,6 +1199,12 @@ export class KnowledgeCoreClient extends HttpBase {
|
|
|
1199
1199
|
benchmark = {
|
|
1200
1200
|
leaderboard: (q?: { eval_version?: string; tier?: BenchmarkTier; category?: BenchmarkCategory; limit?: number }) =>
|
|
1201
1201
|
this.request<Leaderboard>("GET", "/v1/benchmark/leaderboard", { query: q }),
|
|
1202
|
+
/** Kick the NSGA-II sweep as the BENCHMARK TENANT (this client's own key — no admin key). The
|
|
1203
|
+
* benchmark tenant owns the bench corpora + eval-set; the sweep exercises candidate configs and
|
|
1204
|
+
* populates the leaderboards. Runs in the background — returns 202 immediately. */
|
|
1205
|
+
sweep: (b?: { scale?: "full" | "scoped"; concurrency?: number }) =>
|
|
1206
|
+
this.request<{ status: string; scale: string; concurrency: number | null }>(
|
|
1207
|
+
"POST", "/v1/benchmark/sweep", { query: b }),
|
|
1202
1208
|
};
|
|
1203
1209
|
|
|
1204
1210
|
/** Ingestion profiles — the build-side config object (counterpart to query profiles): a tenant-owned,
|