Files
lancedb/docs/src/js/namespaces/embedding/functions/getRegistry.md
Will Jones db125013fc docs: better formatting for Node API docs (#1892)
* Sets `"useCodeBlocks": true`
* Adds a post-processing script `nodejs/typedoc_post_process.js` that
puts the parameter description on the same line as the parameter name,
like it is in our Python docs. This makes the text hierarchy clearer in
those sections and also makes the sections shorter.
2024-12-09 17:04:09 -08:00

541 B

@lancedb/lancedbDocs


@lancedb/lancedb / embedding / getRegistry

Function: getRegistry()

function getRegistry(): EmbeddingFunctionRegistry

Utility function to get the global instance of the registry

Returns

EmbeddingFunctionRegistry

EmbeddingFunctionRegistry The global instance of the registry

Example

const registry = getRegistry();
const openai = registry.get("openai").create();