MongoDB Atlas
Create MongoDB MongoDB Atlas Cluster
MongoDB Atlas is a developer data platform providing a suite of cloud database and data services that accelerate and simplify how you build with data.
MongoDB offers a forever free Atlas cluster in the public cloud which can be done upon creating an account here. You can also follow the quickstart here to get your free Atlas cluster!
Get your Patronus AI API Key
You can create and get an API Key on the API Keys Page:
Install Patronus and LlamaIndex
We will be using the Patronus SDK in addition to LLamaIndex. LlamaIndex is a data framework that provides an interface for ingesting and indexing datasets, which integrates well with MongoDB’s Atlas data store.
Configure the Document Store
RAG System
Below is an overview of an example system:
Query the Retrieval System
We will have to first load a vector store:
Now we can get responses:
Patronus Evaluators
Now let's use the SOTA Lynx hallucination detection evaluator from Patronus:
Now you have a functional RAG system! 🚀