-
Notifications
You must be signed in to change notification settings - Fork 0
RAG Workflows
Retrieval-Augmented Generation (RAG) in ADEPT enables agents to answer questions grounded in your uploaded documents. The platform uses a ChromaDB/pgvector hybrid vector store with visibility-scoped collections to control access.
The RAG pipeline follows three stages:
- Upload -- Files are ingested into session-scoped storage.
- Process -- Documents are chunked, embedded, and indexed into a vector collection.
- Query -- The agent retrieves relevant chunks and uses an LLM to synthesize an answer.
curl -X POST https://your-adept-server.example.com/v1/files \
-H "Authorization: Bearer $TOKEN" \
-F "file=@dataset.csv" \
-F "purpose=assistants"Supported file types include CSV, PDF, and plain text files.
| Processing Type | Description | Use Case |
|---|---|---|
auto |
Automatic detection based on file extension | General-purpose ingestion |
rag |
Full RAG pipeline (chunk, embed, index) | Document Q&A |
sql |
Convert to SQL-queryable tables | Structured data analysis |
dataframe |
Load as pandas DataFrame | Statistical operations |
text |
Raw text extraction | Simple text retrieval |
Use create_rag_index_from_folder to index multiple files at once:
Agent, create a RAG index from my uploaded folder with user-level visibility.
The tool accepts a timeout_seconds parameter for large batch operations and a visibility parameter to control who can access the resulting collection.
Agent, what are the key findings in my uploaded research paper?
The LLM synthesizes answers grounded in retrieved context, citing relevant passages when possible.
Collections are scoped using a naming convention that controls access:
| Scope | Collection Naming | Access |
|---|---|---|
| Session (default) | s_{session_id[:12]}_{name} |
Current MCP session only |
| User | u_{owner_id[:12]}_{name} |
Persists across sessions for the owning user |
| World | w_{name} |
Accessible to any authenticated user |
Choosing Visibility: Use
sessionfor ephemeral exploration,userfor personal knowledge bases that persist across conversations, andworldfor shared organizational resources.
Processes multiple files in parallel with configurable concurrency. Uses per-session locking to prevent concurrent metadata corruption.
Creates a unified RAG index from all files in a session folder with support for visibility and timeout_seconds parameters.
ADEPT uses ChromaDB as the primary vector store:
-
Production:
HttpClientconnecting to a dedicated ChromaDB service -
Fallback:
PersistentClientfor local development without a ChromaDB server -
Embeddings: Configurable via
EMBEDDING_DEFAULT_MODELenvironment variable
The BackendFactory selects the appropriate backend based on the backend_type configuration parameter.
Getting Started
Architecture
- Overview
- MCP Tool System
- Slurm HPC Integration
- Multi-Agent Orchestration
- A2A Federation
- Security Model
Deployment
User Guides
Developer Tools
CI/CD
Testing
Contributing
Reference