Files
Jordan Ritter ac66995bf8 fix: bump all 15.x examples to Next 15.5.15 (security patches)
24 examples bumped from various 15.0-15.4 versions to 15.5.15.
chat-with-your-data bumped from 15.6.0-canary to 16.1.7.
next-openai: moved OpenAI client init into handlers (15.5 evaluates
edge routes at build time).

Remaining on 14.x: next-pages-router(v1), state-machine, travel,
banking, enterprise-brex, presentation, todo — require major rewrite.
2026-04-28 10:33:06 -07:00
..

CopilotKit OpenAI MongoDB Atlas Vector Search Demo Example

🛠️ Getting Started

Prerequisites

  • Node.js 18+
  • Yarn package manager
  • OpenAI API key
  • MongoDB Atlas account

Installation Steps

  1. Clone the repository:
git clone https://github.com/CopilotKit/CopilotKit.git

  • /examples/copilot-openai-mongodb-atlas-vector-search
  1. Install dependencies:
pnpm install
  1. Set up MongoDB Atlas:
  1. Configure environment variables: Create a .env file with:
OPENAI_API_KEY="your_openai_key"
MONGODB_ATLAS_CONNECTION_URI="your_mongodb_connection_uri"
NEXT_PUBLIC_API_BASE_URL="http://localhost:3000"
  1. Start the development server:
pnpm run dev
  1. Open http://localhost:3000 in your browser

📚 Additional Resources

For a complete guide on building this project, check out our detailed tutorial: OpenAI & MongoDB Atlas Vector Search Article URL....