- Node.js 18+
- yarn
- Anthropic API key
- Pinecone account and API key
- Clone the repository:
git clone https://github.com/CopilotKit/CopilotKit.git- /examples/copilot-anthropic-pinecone
- Install dependencies:
pnpm i- Set up Pinecone and Anthropic Acc:
- Create a Pinecone and Anthropic accounts
- Note your API keys
- Configure environment variables:
Create a
.envfile with:
ANTHROPIC_API_KEY="your_anthropic_key"
PINECONE_API_KEY="your_pinecone_key"
NEXT_PUBLIC_API_BASE_URL="app_base_URK"- Start the development server:
pnpm dev- Open http://localhost:3000 in your browser
For a complete guide on building this project, check out our detailed tutorial: Build a RAG Copilot on Your Own Knowledge Base with CopilotKit, Pinecone & Anthropic