Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new minimal Retrieval-Augmented Generation (RAG) agent demo app in TypeScript, demonstrating how to build an AI agent that answers questions about the MongoDB Brand Book using MongoDB Atlas Vector Search, Voyage AI embeddings, and the Vercel AI SDK's ToolLoopAgent. The changes set up the project structure, dependencies, configuration, data ingestion, API routes, UI, and styling.
The most important changes are:
Project Setup and Configuration
package.jsonwith dependencies for Next.js, Vercel AI SDK, MongoDB, Voyage AI, Tailwind CSS, and TypeScript. Also included example environment variables in.env.local.exampleand a comprehensive.gitignorefor Node/Next.js projects. [1] [2] [3]next.config.ts).Documentation
README.mdexplaining the project purpose, architecture, tech stack, setup instructions, and agent workflow.Data Ingestion and Vector Search
scripts/ingest.tsto embed MongoDB Brand Book sections using Voyage AI, insert them into MongoDB Atlas, and create a vector search index for RAG.API and Agent Integration
/api/chatendpoint (src/app/api/chat/route.ts) to handle chat requests, invoke the agent, and stream responses.UI and Styling
globals.css) with Tailwind CSS and custom theme variables for a branded dark UI.layout.tsx) that loads custom fonts and applies consistent styling and metadata.Wrike: https://www.wrike.com/open.htm?id=4370041280