Search Tutorials
--Ads--Embeddings
Choosing, tuning and running embedding models for retrieval.
- 1How Text Embeddings Work: Word, Sentence, Document and Query EmbeddingsFrom word vectors to sentence and document embeddings, and why queries and documents are embedded differently.
- 2Generating Embeddings with OpenAI, Ollama and Hugging FaceCreate embeddings with the OpenAI API, local Ollama models and Hugging Face sentence-transformers.
- 3Choosing an Embedding ModelProprietary vs open-source models and how to read the MTEB leaderboard.
- 4Embedding Dimensions, Matryoshka and QuantizationShrink vectors with Matryoshka truncation and int8 or binary quantization.
- 5Dense, Sparse and Multi-Vector EmbeddingsHow dense embeddings, BM25/SPLADE sparse vectors and ColBERT late interaction differ.
- 6Multilingual and Domain-Specific EmbeddingsRetrieval across languages and in specialised domains such as law, medicine and code.
- 7Fine-Tuning an Embedding ModelTrain an embedding model on your own question-passage pairs with sentence-transformers.
- 8Embedding Cost, Latency and BatchingBatch, cache and parallelise embedding work for large document collections.
- 9Storing and Managing EmbeddingsStore, version and migrate embeddings safely: formats, metadata, model changes and re-embedding.