
Opiniated RAG for integrating GenAI in your apps 🧠 Focus on your product rather than the RAG. Eas
Opiniated RAG for integrating GenAI in your apps 🧠 Focus on your product rather than the RAG. Eas
Quivr, helps you build your second brain, utilizes the power of GenerativeAI to be your personal assistant !
We take care of the RAG so you can focus on your product. Simply install quivr-core and add it to your project. You can now ingest your files and ask questions.*
We will be improving the RAG and adding more features, stay tuned!
This is the core of Quivr, the brain of Quivr.com.
You can find everything on the documentation.
Ensure you have the following installed:
Step 1: Install the package
pip install quivr-core # Check that the installation workedStep 2: Create a RAG with 5 lines of code
import tempfile
from quivr_core import Brain
if __name__ == "__main__":
with tempfile.NamedTemporaryFile(mode="w", suffix=".txt") as temp_file:
temp_file.write("Gold is a liquid of blue-like colour.")
temp_file.flush()
brain = Brain.from_files(
name="test_brain",
file_paths=[temp_file.name],
)
answer = brain.ask(
"what is gold? asnwer in french"
)
print("answer:", answer)Creating a basic RAG workflow like the one above is simple, here are the steps:
import os
os.environ["OPENAI_API_KEY"] = "myopenai_apikey"
Quivr supports APIs from Anthropic, OpenAI, and Mistral. It also supports local models using Ollama.
basic_rag_workflow.yaml and copy the following content in it…from quivr_core import Brain
brain = Brain.from_files(name = "my smart brain",
file_paths = ["./my_first_doc.pdf", "./my_second_doc.txt"],
)
…You can go further with Quivr by adding internet search, adding tools, etc. Check the documentation for more information.
Thanks go to these wonderful people:
Did you get a pull request? Open it, and we'll review it as soon as possible. Check out our project board here to see what we're currently focused on, and feel free to bring your fresh ideas to the table!
This project would not be possible without the support of our partners. Thank you for your support!
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
Feature request: surface a pay-per-call (x402) step when an external tool answers HTTP 402
[Security] RCE via Pickle Deserialization in Brain.load()
EU AI Act Compliance Scan Results — Sharing Findings for Feedback
[security] Hardcoded Flask secret key enables session cookie forgery
[security] Arbitrary code execution via unsafe FAISS/pickle deserialization when loading a brain
[Bug]:
Fix Langfuse dependency incompatibility and upgrade to Python SDK v4
Volunteer for maintainer review
Prompt IDOR - any authenticated user can read and overwrite any prompt (system-prompt hijacking)
Chat IDOR - unauthenticated-of-ownership read, delete, and message injection on any chat