Skip to content

Embeddings

Embeddings are dense numerical vector representations of data, such as text, images, or audio, that capture semantic meaning and relationships in a high-dimensional space.

Understanding Embeddings

When a machine learning model processes text, it needs to work with numbers, not words. Embeddings solve this by mapping words, sentences, or documents into lists of floating-point numbers, typically 768 to 4096 dimensions. The key property of embeddings is that semantically similar content ends up numerically close together in this vector space. 'Dog' and 'puppy' have embeddings close to each other. 'Schedule a meeting' and 'book a call' are near neighbors.

This geometric property makes embeddings useful for semantic search, recommendation systems, clustering, and classification. By comparing the distance between embeddings, AI systems can find related content, identify duplicates, and understand conceptual relationships without explicit rules.

Embedding models are trained separately from generation models. Popular embedding models include OpenAI's text-embedding-3-large, Cohere's embed-v3, and source-available models like nomic-embed-text. They produce fixed-size vectors regardless of input length, enabling efficient storage and retrieval in vector databases.

In RAG systems, embeddings are the bridge between user queries and stored knowledge. The query is embedded, and the vector database finds the stored embeddings closest to it, retrieving relevant context for the LLM to use in its response.

How GAIA Uses Embeddings

GAIA generates embeddings for every email, task, calendar event, and document stored in your connected tools, then indexes them in ChromaDB. When you search for information or when GAIA needs context for a task, it embeds the query and retrieves the most semantically relevant stored content.

Related Concepts

Frequently Asked Questions

The terms are largely interchangeable. 'Vector embeddings' emphasizes that the embedding is stored as a numerical vector. Both refer to the dense numerical representations of data used for semantic search and similarity comparison.

Tools That Use Embeddings

Explore More

Stop doing everything yourself

Join thousands of professionals who gave their grunt work to GAIA.