This release is a pre-release and may not be stable for production use.
ezrag
A modular, hexagonal-architecture RAG SDK for Python.
Install
pip install ezrag
# optional extras
pip install "ezrag[openai]" # OpenAI embeddings + generation
pip install "ezrag[ollama]" # Ollama (local LLM) support
pip install "ezrag[firestore]" # Firestore vector store
Quickstart
import asyncio
from ezrag import rag, Document
from ezrag.embeddings import OpenAIEmbedder
from ezrag.stores import InMemoryVectorStore
from ezrag.generators import OpenAIGenerator
async def main() -> None:
sdk = rag(
embedder=OpenAIEmbedder(api_key="..."),
store=InMemoryVectorStore(),
generator=OpenAIGenerator(api_key="..."),
)
await sdk.ingest([Document(content="RAG combines retrieval with generation.")])
result = await sdk.query("What is RAG?")
answer = await sdk.generate("Explain RAG simply")
print(result.results)
print(answer.answer)
asyncio.run(main())
Documentation
- docs/quickstart.md — install and first local RAG flow
- docs/extras.md — optional dependencies matrix
- docs/adapters.md — public adapter namespaces
- docs/stores.md — in-memory vs Firestore
- docs/chunkers.md — chunker selection guide
- docs/operations.md — ingest / query / generate / generate_stream
- docs/environments.md — local, OpenAI, Ollama, Firestore setup
- docs/limitations.md — beta constraints
Examples
Runnable scripts in examples/:
examples/local_memory.py— zero-service, local adaptersexamples/openai_memory.py— OpenAI embedder + in-memory storeexamples/ollama_memory.py— Ollama embedder + in-memory storeexamples/openai_firestore.py— OpenAI embedder + Firestore storeexamples/openai_pgvector.py— OpenAI embedder + PgVectorStore
Metadata
Release files for ezrag 0.2.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ezrag-0.2.0b1.tar.gz | 163.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezrag-0.2.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 207.1 kB
Release files / ezrag-0.2.0b1.tar.gz
| Download URL | ezrag-0.2.0b1.tar.gz |
|---|---|
| Size | 163.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7786ce7e542bf62528a8809701c6db3fb6c98d5286241acf8e83fca4e1bc559
|
|
BLAKE2b-256 checksum How to use checksums |
81a778ac259ac64a340e498a250cf49a0d03b6c6f95c12187f8cdfb96ebd594c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logRelease files / ezrag-0.2.0b1-py3-none-any.whl
| Download URL | ezrag-0.2.0b1-py3-none-any.whl |
|---|---|
| Size | 43.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbcd30547f43b46deb720cec8532f734a7cb4da438205b18662fd15d9a5064f4
|
|
BLAKE2b-256 checksum How to use checksums |
4c249458d5ba73a27ec26057a054af583908821822cb303979ddc35010b27f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logSecurity for ezrag 0.2.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ezrag-0.2.0b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.