Skip to main content

MongoDB + RAG + Splunk Agent Observability overview

MongoDB Atlas Vector Search lets you keep your knowledge base inside MongoDB while enjoying hybrid search and AI-ready workloads. In this guide you’ll:
  1. Embed and store vectors in Atlas
  2. Setup Splunk Agent Observability
  3. Stream LangGraph traces to Splunk Agent Observability for end-to-end observability

Set up MongoDB

Sign up to MongoDB Atlas and set up your credentials. You can setup the vector store as follows:

Use Splunk Agent Observability for logging

Install python-dotenv if it is not already available:
Create a .env file for your deployment.
.env
Add the project and Agent Stream to the same .env file:
.env
Once the callback is created we can add it to the agent.
Find the full notebook in Google Colab.