@almadar/workspace 0.11.9 → 0.11.11
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.
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Real-bge calibration eval for Phase B `retrieveOrbitalsForPrompt`.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* Drives `createDefaultEmbedder()`'s real `@almadar/llm` EmbeddingClient
|
|
4
|
+
* (bge-base-en-v1.5, 768-d) and prints per-prompt ranking diagnostics so
|
|
5
|
+
* the data informs the threshold / scoring tuning conversation. Skip
|
|
6
|
+
* condition follows whichever provider `resolveDefaultEmbeddingProvider()`
|
|
7
|
+
* actually resolves to in this environment (`openrouter` by default, or
|
|
8
|
+
* `lmstudio` when `EMBEDDING_PROVIDER=lmstudio` is set) — asserting
|
|
9
|
+
* readiness of a provider the code isn't even using would be a false
|
|
10
|
+
* gate either direction.
|
|
7
11
|
*/
|
|
8
12
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { execFile } from 'child_process';
|
|
|
4
4
|
import dugite from 'dugite';
|
|
5
5
|
import { randomBytes, createHash } from 'crypto';
|
|
6
6
|
import { ledgerResolveName, mintId, ledgerRename, ledgerCurName, IdentityLedgerSchema } from '@almadar/core';
|
|
7
|
-
import { EmbeddingClient } from '@almadar/llm';
|
|
7
|
+
import { EmbeddingClient, resolveDefaultEmbeddingProvider } from '@almadar/llm';
|
|
8
8
|
import os from 'os';
|
|
9
9
|
|
|
10
10
|
// src/open-workspace.ts
|
|
@@ -2492,7 +2492,7 @@ async function removeTree(backend, dir) {
|
|
|
2492
2492
|
function createDefaultEmbedder() {
|
|
2493
2493
|
let client = null;
|
|
2494
2494
|
function get() {
|
|
2495
|
-
if (client === null) client = new EmbeddingClient({ provider:
|
|
2495
|
+
if (client === null) client = new EmbeddingClient({ provider: resolveDefaultEmbeddingProvider() });
|
|
2496
2496
|
return client;
|
|
2497
2497
|
}
|
|
2498
2498
|
return {
|