
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
mongodb-ai-playground
Advanced tools
MongoDB AI Playground is a set of interactive widgets to explore, test, and visualize MongoDB-powered AI capabilities, including Retrieval-Augmented Generation (RAG) and GraphRAG workflows, using modern LLM and vector search integrations.
The MongoDB AI Playground provides interactive widgets for experimenting with advanced AI capabilities on MongoDB, including:
Built as a set of AnyWidget Jupyter widgets, this playground is designed for rapid prototyping, learning, and demonstration of GenAI + MongoDB workflows.
embedding
.pip install mongodb-ai-playground
The mongodb-ai-playground depends on the following Python libraries: anywidget
, ipywidgets
, langchain
, langchain-mongodb
, and pymongo
.
Full examples
from mongodb_ai_playground import MongoDBRAGPlayground
# Example: Pass your own loader, embedding model, LLM, and MongoDB collection
widget = MongoDBRAGPlayground(
loader=..., # LangChain loader
embedding_model=..., # LangChain embedding model
llm=..., # LangChain Chat Model (LLM) for answering questions (OpenAI, Claude, DeepSeek, etc.)
mongo_collection=..., # PyMongo collection for storing vectors
index_name=... # Name of your Atlas Vector Search index, you need to create if you don't have one, with the correct dimension (field containing the embedding is 'embedding')
)
widget # Display the playground widget
mongodb_ai_playground/
├── rag_widget.py # RAG playground widget (chunking, embedding, RAG)
├── graphrag_widget.py # Graph RAG playground widget (graph ingest, QA)
├── index.js # JS frontend for RAG widget
├── graphrag.js # JS frontend for Graph RAG widget
├── index.css # Shared widget styles
├── __init__.py # Exports widgets
...
This project is licensed under the MIT License.
FAQs
A playground for building RAG applications with MongoDB and Langchain
We found that mongodb-ai-playground demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.