mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
79ce60c580
Replace eslint and prettier with oxlint and oxfmt for faster linting and formatting across the monorepo. Remove all eslint and prettier configs, dependencies, and related packages. Add .oxlintrc.json and .oxfmtrc.json for the new tooling. Update CI workflows and lefthook hooks accordingly. Reformat codebase with oxfmt. https://claude.ai/code/session_01GMkSf29p78HuMR1mbXn8He
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
- Clone the repository:
git clone https://github.com/CopilotKit/CopilotKit.git
- /examples/copilot-openai-mongodb-atlas-vector-search
- Install dependencies:
pnpm install
- Set up MongoDB Atlas:
- Create a MongoDB Atlas account at https://www.mongodb.com/cloud/atlas
- Set up a new cluster
- Enable Atlas Vector Search
- Get your connection URI
- Configure environment variables:
Create a
.envfile with:
OPENAI_API_KEY="your_openai_key"
MONGODB_ATLAS_CONNECTION_URI="your_mongodb_connection_uri"
NEXT_PUBLIC_API_BASE_URL="http://localhost:3000"
- Start the development server:
pnpm run dev
- 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....