MongoDB Search Playground Chatbot Demo Builder for RAG Applications

mongodb · Tech · 2024 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: RAG prototyping and vector-search developer experience

Developers want to understand and prototype RAG chatbots over their own data, but setting up Atlas accounts, clusters, collections, embeddings, vector indexes, chunking, and query inspection can slow early experimentation before teams know whether MongoDB Vector Search fits their use case.

Constraints:

Architecture

MongoDB's Chatbot Demo Builder is a hosted Search Playground tool for trying RAG with MongoDB Vector Search. A user uploads a PDF, pastes text, or loads sample data, configures chunking and an embedding model, and then asks independent questions over the generated vector index. The backend uses Voyage AI embedding models, a preconfigured vector search index, and a MongoDB aggregation pipeline with $vectorSearch and $project. The UI exposes the generated search query, retrieved/scored documents, numCandidates, retrieval limit, data source, index definition, search query, LLM and prompt, snapshot sharing, and starter code.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  UI["Search Playground UI"] --> Import["Data import"]
  Import --> Chunking["Chunking configuration"]
  Chunking --> Embeddings["Embedding generation"]
  Embeddings --> Index["Vector search index"]
  UI --> Questions["Question interface"]
  Questions --> Pipeline["Aggregation pipeline"]
  Pipeline --> Index
  Pipeline --> LLM["LLM and prompt"]
  LLM --> Panels["Inspection panels"]
  Index --> Panels
  UI --> Panels
  UI --> Snapshot["Snapshot and starter code"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Search Playground UI Browser-based interface where developers import data, configure retrieval, ask questions, inspect outputs, and share snapshots. Data import, Chunking configuration, Question interface, Inspection panels, Snapshot and starter code
Data import PDF upload, copy-paste text, or sample data input that becomes the knowledge source for the demo. Search Playground UI, Chunking configuration
Chunking configuration Recursive or fixed-token chunking controls with configurable chunk size and overlap. Data import, Embedding generation
Embedding generation Voyage AI embedding model selection used to convert imported text chunks into vector embeddings. Chunking configuration, Vector search index
Vector search index Preconfigured MongoDB Vector Search index over generated embeddings. Embedding generation, Aggregation pipeline, Inspection panels
Question interface Chat-style input where users ask independent questions over the imported data. Search Playground UI, Aggregation pipeline
Aggregation pipeline MongoDB query path using $vectorSearch for retrieval and $project for result formatting. Question interface, Vector search index, LLM and prompt
LLM and prompt Generation layer shown in the UI that uses retrieved context to produce chatbot answers. Aggregation pipeline, Inspection panels
Inspection panels Query, documents, scores, data source, index definition, search query, LLM, prompt, numCandidates, and limit controls exposed for learning and tuning. Search Playground UI, Vector search index, LLM and prompt
Snapshot and starter code Share URL and GitHub starter-code path for persisting demo configuration or building a similar chatbot. Search Playground UI

Data flow

The user imports a PDF, pasted text, or sample data into the Chatbot Demo Builder. The tool treats that import as one knowledge source, chunks text using recursive chunking or fixed token count with overlap, generates embeddings using a selected Voyage AI model, and stores searchable vector embeddings behind a preconfigured index. For each independent user question, the builder generates a MongoDB Vector Search query, runs $vectorSearch, projects the results, shows retrieved documents and scores, and sends context to an LLM and prompt for answer generation. Users can inspect settings and export a snapshot URL or starter code.

3 supporting quotes
“allows you to bring your own data, try different chunking strategies, generate embeddings using Voyage AI embedding models, and ask questions about the data”article, stated
“The Chatbot Demo Builder uses two aggregation pipeline stages, $vectorSearch and [$project.”article, stated
“Each question and answer pair is independent, with no reliance on previous interactions.”article, stated

Why this architecture

MongoDB chooses a constrained playground architecture to lower RAG experimentation friction. Developers can use their own documents without creating an Atlas account or cluster, inspect the generated vector-search machinery, and try core retrieval settings quickly. The tradeoff is intentional: the environment is limited, non-persistent, and not equivalent to production performance, but it exposes enough of the production-shaped pipeline to teach chunking, embeddings, retrieval, scoring, prompts, and starter-code paths.

3 supporting quotes
“ask questions about the data without an Atlas account, cluster, or collection”article, stated
“View the MongoDB Vector Search query syntax used for the most recent question and answer.”article, stated
“The Chatbot Demo Builder performance might differ from production performance.”article, stated

Models used: voyage-3-large · voyage-finance-2 · voyage-law-2 · Large Language Model shown in LLM & Prompt panel · MongoDB Vector Search

Scale

Alternatives considered (roads not taken)

Require an Atlas account, cluster, and collection before trying RAG

Rejected because: The demo explicitly removes that setup requirement so users can ask questions over their own data immediately.

“ask questions about the data without an Atlas account, cluster, or collection”article, stated

Let users edit the generated vector-search query directly

Rejected because: The builder generates the query from retrieval settings and does not allow direct code-editor edits in the demo environment.

“The query is generated based on the specified retrieval settings and cannot be directly edited using the code editor.”article, stated

Persist full demo environments and chat history by default

Rejected because: The playground is non-persistent; only data configuration and retrieval settings can be shared through a temporary snapshot.

“The Chatbot Demo Builder environment does not persist. To save an environment, use the Share button to generate a snapshot URL that persists for 30 days.”article, stated
“Question and answer history is neither saved nor can be shared.”article, stated

Support multimodal PDF understanding

Rejected because: The builder only supports text-based embeddings and cannot process images inside PDFs.

“The Chatbot Demo Builder only supports text-based embeddings. If your PDF file contains images, the chatbot will not be able to process”article, stated

Patterns

rag-retrieval (retrieval)

The builder demonstrates RAG by chunking imported data, generating embeddings, retrieving documents with MongoDB Vector Search, and using retrieved context to answer questions.

“chatbot that answers questions on your data with vector search”article, stated
“View the documents retrieved from running the search query and how the results are scored.”article, stated

context-engineering (retrieval)

The playground exposes chunking strategy, chunk size, overlap, retrieval limit, and numCandidates so developers can tune what context reaches the model.

“Customize your chunking settings and embedding model.”article, stated
“Adjust the number of documents (chunks) returned.”article, stated

safety-policy-enforcement (safety)

The public demo constrains data, model customization, persistence, and sensitive-data use to keep the sandbox bounded.

“This is a generative AI chatbot. All information should be verified prior to use. Do not upload sensitive data.”article, stated
“You cannot bring your own vector embeddings or API credentials for embedding solutions.”article, stated

Tradeoffs

Offer a no-infrastructure demo environment.

Chose Search Playground without Atlas account, cluster, or collection over Requiring full production setup before experimentation.

Rationale: The no-account path reduces initial RAG experimentation friction but necessarily limits persistence and customization.

“ask questions about the data without an Atlas account, cluster, or collection”article, stated
“The Chatbot Demo Builder environment does not persist.”article, stated

Use preconfigured embeddings and index settings.

Chose Voyage AI model options and a non-editable vector search index over Bring-your-own embeddings, API credentials, and fully editable index/query code.

Rationale: Preconfiguration makes the playground easier to use, while limiting production-like customization.

“To modify these options after creating embeddings, use the side panel DATA SETTINGS. Changing the settings clears previous chat history.”article, stated
“uses a pre-configured vector search index that is not editable”article, stated

Expose both recursive and fixed-token chunking.

Chose User-configurable chunking strategy, size, and overlap over A single hidden chunking policy.

Rationale: Different documents need different tradeoffs between natural structure preservation and predictable chunk sizes.

“Recursive Chunking: Splits text by paragraph and sentence boundaries, then recursively merges content up to the chunk size.”article, stated
“Fixed Token Count with Overlap: Splits text into chunks with a fixed number of tokens, with overlap between adjacent chunks.”article, stated

Keep Q&A independent rather than conversationally stateful.

Chose Independent question-answer pairs over Persistent chat history and shared conversations.

Rationale: The demo keeps sharing and evaluation centered on retrieval configuration rather than chat memory.

“Each question and answer pair is independent, with no reliance on previous interactions.”article, stated
“Question and answer history is neither saved nor can be shared.”article, stated

Gotchas (what bit them)

The demo is not suitable for sensitive data.

Root cause: It is a public demo and MongoDB logs workload data for monitoring and troubleshooting.

Resolution: Warn users not to upload sensitive data and verify generated answers before use.

“All information should be verified prior to use. Do not upload sensitive data. MongoDB logs your workload data for monitoring the system health”article, stated

The playground cannot model multi-collection RAG systems.

Root cause: Imported PDF or pasted text is processed as one unified knowledge source.

Resolution: Use the builder for initial exploration, then move to a production implementation when separate collections are needed.

“processes the imported PDF file or copy-pasted text as a single, unified knowledge source. You cannot define or combine separate data collections”article, stated

The demo does not persist a full working environment or chat history.

Root cause: The playground is designed for temporary demonstrations, not durable production workspaces.

Resolution: Use the Share button to persist data configuration and retrieval settings for 30 days, and use starter code for durable implementations.

“The Chatbot Demo Builder environment does not persist. To save an environment, use the Share button to generate a snapshot URL that persists for 30 days.”article, stated
“Use the Get Code button to access a GitHub repository with starter code on how to build a similar chatbot yourself.”article, stated

Image-heavy PDFs will produce incomplete answers.

Root cause: Only text-based embeddings are supported and images inside PDFs are ignored.

Resolution: Use text-only documents in the builder or implement a production multimodal pipeline outside the demo.

“If your PDF file contains images, the chatbot will not be able to process or answer questions about the content within those images.”article, stated

Evaluation

The builder exposes retrieval settings and outputs so users can manually inspect query syntax, retrieved documents, scores, numCandidates, retrieval limit, index definition, prompt, and LLM. It does not present a formal automated benchmark.

Metrics: Number of candidate matches reviewed · Number of chunks returned · Retrieved document scores · Generated Vector Search query syntax · Chunk size and overlap · Production-performance caveat

4 supporting quotes
“View the documents retrieved from running the search query and how the results are scored.”article, stated
“Adjust the number of potential matches the system reviews to select the best result.”article, stated
“Adjust the number of documents (chunks) returned.”article, stated
“The Chatbot Demo Builder performance might differ from production performance.”article, stated

Outcomes

This is a developer demo environment rather than a production deployment. It supports 100 MB PDFs, 100,000 characters, chunk sizes from 40 to 1,500 tokens, overlap from 0 to 750 tokens, and 30-day snapshots.

3 supporting quotes
“chatbot that answers questions on your data with vector search.”article, stated
“You can also share a link to a snapshot of your MongoDB Search Playground with others.”article, stated
“Use the Get Code button to access a GitHub repository with starter code on how to build a similar chatbot yourself.”article, stated