Embed text using any HuggingFace Sentence Transformer model locally — no API key needed. See the API reference for all parameters.Documentation Index
Fetch the complete documentation index at: https://lancedb-bcbb4faf-docs-namespace-typescript-examples.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Embeddings
Compare a lightweight and a high-quality model side by side:GPU acceleration
Sentence Transformer models can run on CPU or GPU. Smaller models likeall-MiniLM-L6-v2
work well on CPU, but larger models like bge-large-en-v1.5 benefit significantly from GPU
acceleration. Use the num_gpus parameter to request GPU resources for a worker:
num_gpus to a fractional value (e.g., 0.5) tells the
Ray scheduler
to co-locate multiple workers on the same physical GPU. For example, two UDFs with
num_gpus=0.5 will be scheduled on a single GPU. Note that Ray does not enforce GPU memory
limits — it is your responsibility to ensure the combined models fit in GPU memory.
API Reference
- Embeddings —
sentence_transformer_udf()— all parameters includingcolumn,model,num_gpus,normalize, andbatch_size