Skip to main content
Pre-release

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

Examples

Runnable scripts in examples/:

  • examples/local_memory.py — zero-service, local adapters
  • examples/openai_memory.py — OpenAI embedder + in-memory store
  • examples/ollama_memory.py — Ollama embedder + in-memory store
  • examples/openai_firestore.py — OpenAI embedder + Firestore store
  • examples/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)

Source distribution for ezrag 0.2.0b1
File Size Uploaded Provenance
ezrag-0.2.0b1.tar.gz 163.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ezrag 0.2.0b1
File Interpreter ABI Platform
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page