Skip to main content

Du-RAG: Durable RAG — persistent memory for AI agents

Project description

Du-RAG

Du-RAG

Durable RAG — a persistent memory layer for AI agents built on retrieval-augmented generation.

License Stars Repo Size


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), FAISS, Chroma, Pinecone, Weaviate, and others

License

Apache 2.0

Project details


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.1.10.tar.gz (195.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

durag-2.1.10-py3-none-any.whl (280.7 kB view details)

Uploaded Python 3

File details

Details for the file durag-2.1.10.tar.gz.

File metadata

  • Download URL: durag-2.1.10.tar.gz
  • Upload date:
  • Size: 195.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for durag-2.1.10.tar.gz
Algorithm Hash digest
SHA256 4e6790ded61de91369e8a9805d99aeca90a44fcebf333697fdf7df3e6b83388d
MD5 ab5ff8478a614e631c96ff58c0511507
BLAKE2b-256 b7ebda65774ea71638aaa243c89c0c80ff1dbe97492c160ec84c0eaf2dd9a53b

See more details on using hashes here.

File details

Details for the file durag-2.1.10-py3-none-any.whl.

File metadata

  • Download URL: durag-2.1.10-py3-none-any.whl
  • Upload date:
  • Size: 280.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for durag-2.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 00731281a6ef2dd3119e589303f497d3bbe3821b53908bfb1f201f4d7eb7c144
MD5 4a74e47ee0e69bb1e74831979c0d6629
BLAKE2b-256 0395d40b00afccf5a324de89bb1691fed23d10b2257f16e1ac54b8fc7d290a45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page