Embedchain
ActiveDescription
Embedchain is a universal memory layer for AI agents, enabling quick integration of diverse data sources into LLMs for context-aware AI applications.
Key Features
- Universal memory layer — quickly integrates diverse data sources (web, PDFs, YouTube, Notion) into LLMs for context
- Vectorized storage — auto-chunks, embeds, and stores data in vector databases with semantic retrieval support
- Multi-LLM backend support — compatible with OpenAI, Cohere, Ollama and other LLM and embedding models
- Simple API — three lines of code to complete data loading, indexing, and querying end-to-end
- Multi-database adapters — supports Chroma, Pinecone, Qdrant, Weaviate and other mainstream vector databases
- Streaming responses — supports streaming LLM output for improved user experience
Use Cases
Tags
Categories
Quick Start
# Install Embedchain
pip install embedchain
# Quick start: 3 steps to build a RAG app
from embedchain import App
# Create app and load data
app = App.from_config(config={
"llm": {"provider": "openai", "config": {"model": "gpt-4o-mini"}},
"vectordb": {"provider": "chroma"}
})
app.add("https://www.example.com/docs") # Load web data
answer = app.query("What is the main content of this document?") # Query
print(answer)