Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / ToolSearchEmbedder
Interface: ToolSearchEmbedder
Defined in: packages/tools/src/registry/types.ts:103
Pluggable embedder hook used by the semantic stage of ToolRegistry.searchDeferred. The agent runtime supplies an implementation backed by the configured embedder (default per the memory subsystem); the registry falls through to the BM25 stage if the hook is undefined OR returns null for a given query.
Stable
Methods
dim()
dim(): number;Defined in: packages/tools/src/registry/types.ts:107
Output dimensionality.
Returns
number
embed()
embed(texts, signal?): Promise<readonly Float32Array<ArrayBufferLike>[]>;Defined in: packages/tools/src/registry/types.ts:109
Embed a batch of strings.
Parameters
| Parameter | Type |
|---|---|
texts | readonly string[] |
signal? | AbortSignal |
Returns
Promise<readonly Float32Array<ArrayBufferLike>[]>
id()
id(): string;Defined in: packages/tools/src/registry/types.ts:105
Stable identifier surfaced through the cache key.
Returns
string