Overview
KnowledgeBase enables you to build Retrieval-Augmented Generation (RAG) systems by automatically processing documents, creating embeddings, and storing them in vector databases. It integrates seamlessly with Agent and Task to provide relevant context for AI-powered queries.Key Features
- Automatic Processing: Loads documents, chunks text, creates embeddings, and stores in vector databases
- Multiple Formats: Supports PDFs, Markdown, DOCX, CSV, JSON, HTML, and more
- Intelligent Chunking: Auto-detects optimal text splitting strategies
- Flexible Storage: Works with Chroma, Milvus, Qdrant, Pinecone, Weaviate, FAISS, and PGVector
- Hybrid Search: Combines dense vector search with full-text search for better results
RAG InstallationThese install Upsonic with RAG dependencies:
[vectordb]- Vector database clients (Chroma, Milvus, Qdrant, Pinecone, Weaviate, FAISS, PGVector)[loaders]- Document loaders for PDFs, Markdown, DOCX, CSV, JSON, HTML, and more[embeddings]- Embedding providers for creating vector representations
Example
Create a KnowledgeBase from documents and use it with an Agent:Navigation
- Attributes - Configuration options for KnowledgeBase
- Putting Files - How to add documents to your knowledge base
- Storage Providers - Vector database providers
- Embedding Providers - Embedding model providers
- Splitters - Text chunking strategies
- Loaders - Document loading strategies

