Skip to content

@lancedb/lancedb β€’ Docs


@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

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