Skip to content

Commit e9d1ea3

Browse files
committed
add blog
1 parent 7d6c64b commit e9d1ea3

File tree

4 files changed

+131
-0
lines changed

4 files changed

+131
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
title: "Introducing MongoDB-RAG.com"
3+
author: Michael Lynn
4+
author_title: Developer Advocate @ MongoDB
5+
author_url: https://github.com/mrlynn
6+
author_image_url: https://avatars.githubusercontent.com/u/192552?v=4
7+
tags: [mongodb, vector-search, rag, ai, workshop, tutorial]
8+
---
9+
10+
We're thrilled to announce the launch of [MongoDB-RAG.com](http://mongodb-rag.com/), a comprehensive marketing landing page showcasing the power and flexibility of our MongoDB-RAG npm library. This new site not only provides detailed information about the library's capabilities but also features an interactive demonstration that lets visitors experience Retrieval Augmented Generation (RAG) with MongoDB Vector Search firsthand.
11+
12+
<Screenshot url="https://mongodb-rag.com" src={"img/screenshots/mongodb-rag-com.png"} alt="Landing Page" />
13+
14+
## What's New on MongoDB-RAG.com
15+
16+
The new landing page serves as a central hub for everything related to the MongoDB-RAG library, with several exciting features:
17+
18+
### Enhanced Documentation and Resources
19+
20+
The site provides clear, concise information about the MongoDB-RAG library, including its core features:
21+
22+
- Vector Search capabilities for efficient retrieval of semantically similar documents
23+
- Dynamic database and collection selection for flexible data organization
24+
- Batch processing with built-in retry mechanisms
25+
- Index management to ensure optimal performance
26+
- Caching for frequently accessed data
27+
- Advanced chunking strategies (sliding window, semantic, and recursive)
28+
29+
### Meet the New Owlbert Chatbot
30+
31+
We've introduced an enhanced version of Owlbert, our friendly assistant chatbot. This new iteration showcases the practical applications of RAG technology in creating responsive, knowledgeable AI assistants. Owlbert can answer questions about MongoDB-RAG and demonstrate how effectively the library can power conversational AI experiences.
32+
33+
### Interactive Live Demo
34+
35+
The centerpiece of MongoDB-RAG.com is our innovative, real-time demonstration of RAG with MongoDB. This interactive feature includes:
36+
37+
1. **Documentation Window**: Browse through a selection of MongoDB documentation right on the page, giving you immediate access to reference materials.
38+
2. **Ingestion Controls**: Configure and observe the document ingestion process with customizable parameters such as:
39+
- Chunking strategy (sliding window, semantic, or recursive)
40+
- Chunk size and overlap settings
41+
- Vector dimensions
42+
- Embedding provider selection
43+
3. **Search Interface**: Experience the power of vector search firsthand with a user-friendly search bar that returns semantically relevant results from the ingested documentation.
44+
45+
The demo allows visitors to see the entire RAG pipeline in action—from document ingestion to embedding generation to semantic search—all without leaving the browser.
46+
47+
## Why We Built It
48+
49+
We created MongoDB-RAG.com with several goals in mind:
50+
51+
1. **Demystify RAG Technology**: By providing a hands-on demonstration, we're making the concepts of vector embeddings and semantic search more accessible and understandable.
52+
2. **Showcase Integration Ease**: The site demonstrates how seamlessly MongoDB-RAG integrates with MongoDB Atlas Vector Search and various embedding providers like OpenAI and Ollama.
53+
3. **Support Developers**: Through comprehensive documentation and interactive examples, we're helping developers implement RAG solutions in their own applications.
54+
4. **Highlight Flexibility**: The demo showcases the library's ability to work with different chunking strategies, embedding models, and search configurations to meet diverse use cases.
55+
56+
## Getting Started with MongoDB-RAG
57+
58+
If the demo inspires you to incorporate MongoDB-RAG into your projects, getting started is simple:
59+
60+
```bash
61+
npm install mongodb-rag dotenv
62+
```
63+
Then initialize your MongoDB-RAG instance:
64+
65+
```javascript
66+
import { MongoRAG } from 'mongodb-rag';
67+
import dotenv from 'dotenv';
68+
dotenv.config();
69+
70+
const rag = new MongoRAG({
71+
mongoUrl: process.env.MONGODB_URI,
72+
database: 'my_rag_db',
73+
collection: 'documents',
74+
embedding: {
75+
provider: process.env.EMBEDDING_PROVIDER,
76+
apiKey: process.env.EMBEDDING_API_KEY,
77+
model: process.env.EMBEDDING_MODEL,
78+
dimensions: 1536
79+
}
80+
});
81+
```
82+
## Visit Today!
83+
84+
We invite you to explore [MongoDB-RAG.com](http://mongodb-rag.com/) and experience firsthand the capabilities of our library. Whether you're building a chatbot, implementing semantic search, or exploring innovative AI applications, MongoDB-RAG provides the tools you need to harness the power of vector search with MongoDB.
85+
86+
Stay tuned for more updates as we continue to enhance both the website and the library with new features and improvements!

mongodb-rag-docs/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@
2222
"@docusaurus/plugin-google-gtag": "3.7.0",
2323
"@docusaurus/preset-classic": "3.7.0",
2424
"@docusaurus/theme-mermaid": "^3.7.0",
25+
"@emotion/react": "^11.14.0",
26+
"@emotion/styled": "^11.14.0",
2527
"@mdx-js/react": "^3.0.1",
28+
"@mui/material": "^6.4.5",
2629
"clsx": "^1.2.1",
2730
"docusaurus-lunr-search": "3.6.0",
2831
"docusaurus-search-local": "^0.0.0",
2932
"framer-motion": "^12.4.7",
3033
"prism-react-renderer": "^2.1.0",
3134
"react": "19.0.0",
3235
"react-dom": "19.0.0",
36+
"react-live": "^4.1.8",
3337
"react-markdown": "^10.0.0",
3438
"react-mermaid": "^0.1.3",
3539
"react-modal": "^3.16.3",
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// src/components/LiveCodeEditor.js
2+
import React from "react";
3+
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live";
4+
import { Box, Button, Typography } from "@mui/material";
5+
// import { MongoRAG } from "mongodb-rag"; // ✅ Import at the top (outside LiveProvider)
6+
7+
const initialCode = `
8+
const rag = new MongoRAG({
9+
mongoUrl: 'mongodb+srv://your_user:your_password@your-cluster.mongodb.net/',
10+
database: 'test_db',
11+
collection: 'documents',
12+
embedding: {
13+
provider: 'openai',
14+
apiKey: 'your-openai-key',
15+
model: 'text-embedding-3-small',
16+
dimensions: 1536
17+
}
18+
});
19+
20+
console.log("✅ MongoRAG instance created!");
21+
render(<p>✅ MongoRAG instance created! Check console for details.</p>);
22+
`;
23+
24+
export default function LiveCodeEditor() {
25+
return (
26+
<LiveProvider code={initialCode} scope={{ MongoRAG, console }} noInline={true}>
27+
<Box sx={{ display: "flex", flexDirection: "column", gap: 2, mt: 2 }}>
28+
<Typography variant="h6">Live MongoDB-RAG Playground</Typography>
29+
<LiveEditor style={{ border: "1px solid #ccc", borderRadius: 5, padding: 10 }} />
30+
<Button variant="contained" color="primary" onClick={() => console.log("Running Code")}>
31+
Run Code
32+
</Button>
33+
<Box sx={{ background: "#f5f5f5", padding: 2, borderRadius: 5 }}>
34+
<Typography variant="subtitle1">Output:</Typography>
35+
<LiveError />
36+
<LivePreview />
37+
</Box>
38+
</Box>
39+
</LiveProvider>
40+
);
41+
}
98.7 KB
Loading

0 commit comments

Comments
 (0)