Skip to main content Switch to mobile version beru-ai 0.1.0 Official Python client for Beru: cited answers and per-user memory from your documents.
pip install beru-ai==0.1.0 Copy PIP instructions
The official Python client for Beru: answers rooted in your documents, with citations and per-user memory.
pip install beru-ai # imported as `beru` from beru import Beru beru = Beru() # reads BERU_API_KEY; create a key in the Beru console under API keys with open("handbook.pdf", "rb") as f: document = beru.documents.upload(f, filename="handbook.pdf") beru.documents.wait_until_ready(document["id"]) answer = beru.answer("How many days of annual leave do I get?", end_user_id="user_123") print(answer["answer"]) for citation in answer["citations"]: print(citation["number"], citation["document_title"], citation["page_from"]) # A follow-up in the same conversation follow_up = beru.answer( "And part-time staff?", end_user_id="user_123", conversation_id=answer["conversation_id"], ) Stream an answer as it's written:
for event in beru.answer_stream("Is parking free?"): if event.type == "delta": print(event.text, end="", flush=True) else: print("\nSources:", event.answer["citations"]) AsyncBeru has the same methods, awaited:
from beru import AsyncBeru async with AsyncBeru() as beru: answer = await beru.answer("Is parking free?") What's included
Responses are typed dictionaries (beru.types) generated from Beru's OpenAPI file.
Every error is a BeruError with code (for example plan_limit_exceeded), status, message and request_id. Rate limits (429) are retried, honouring Retry-After; reads and uploads are also retried after timeouts and temporary outages. Uploads carry an Idempotency-Key, so a retry never uploads twice. Set max_retries=0 to turn retries off.
Docs: docs.airesearchlabs.si · Support: support@airesearchlabs.si
MIT View SPDX License List
beru citations memory rag retrieval
Programming Language Python :: 3
Release files for beru-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 51.9 kB
Release files / beru_ai-0.1.0.tar.gz
Release files / beru_ai-0.1.0-py3-none-any.whl
Security for beru-ai 0.1.0
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.
None of the files in this release were uploaded with provenance metadata.
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.
Release history Release notifications | RSS feed
Nov 26, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




