Du-RAG: Durable RAG — persistent memory for AI agents
Project description
Du-RAG
Durable RAG — a persistent memory layer for AI agents built on retrieval-augmented generation.
pip install durag
from durag import Memory
m = Memory()
m.add("Alice loves Python and open source", user_id="alice")
m.add("Alice built Du-RAG", user_id="alice")
history = m.get_all(filters={"user_id": "alice"})
print(history)
API Keys
Du-RAG requires a provider API key. Set the env var for your preferred provider before first use:
| Provider | Env Var | Used For |
|---|---|---|
| OpenAI (default) | OPENAI_API_KEY |
Embeddings + LLM |
| Anthropic | ANTHROPIC_API_KEY |
LLM |
| Google Gemini | GOOGLE_API_KEY |
Embeddings + LLM |
| DeepSeek | DEEPSEEK_API_KEY |
LLM |
| Together AI | TOGETHER_API_KEY |
Embeddings + LLM |
| Groq | GROQ_API_KEY |
LLM |
| MiniMax | MINIMAX_API_KEY |
LLM |
| Sarvam AI | SARVAM_API_KEY |
LLM |
| vLLM | VLLM_API_KEY |
LLM |
export OPENAI_API_KEY="sk-..."
Features
- Persistent memory across conversations — agents remember what they learn
- Semantic search via vector embeddings — find the right context fast
- Multiple backends — OpenAI, Anthropic, Gemini, DeepSeek, Ollama, vLLM, and more
- Vector stores — Qdrant (default), Chroma, FAISS, Pinecone, Weaviate, and others
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
durag-2.0.7.tar.gz
(194.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
durag-2.0.7-py3-none-any.whl
(280.3 kB
view details)
File details
Details for the file durag-2.0.7.tar.gz.
File metadata
- Download URL: durag-2.0.7.tar.gz
- Upload date:
- Size: 194.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b61b27b1b10eb5ee7090b6c6a3dce7f53a767d41ccce6d05cb7d32efa2af3ac
|
|
| MD5 |
97324bc6f26bf86b88cba3bc9fa884b0
|
|
| BLAKE2b-256 |
77b4af6f074263b2bbe2673b9d6b803dadb047f74796d8b68ef0093a7c314276
|
File details
Details for the file durag-2.0.7-py3-none-any.whl.
File metadata
- Download URL: durag-2.0.7-py3-none-any.whl
- Upload date:
- Size: 280.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed24d194862c0903aa760bf8d4c67a28bd31258b69f0bc14cffd24ebee50563b
|
|
| MD5 |
e5c067b487e74072df98765fc3dbda87
|
|
| BLAKE2b-256 |
a41bbdce0df3ca97cf3851ed66571808212d6897a2181f0f7d894a4e8948cdb5
|