Files
Alem Tuzlak ff2093102c chore(lint): add new oxlint rules and auto-fix violations
Enable stricter oxlint rules for better code health:
- typescript/consistent-type-imports: enforce `import type` for type-only imports
- typescript/no-import-type-side-effects: prefer top-level type imports
- import/consistent-type-specifier-style: consistent type specifier placement
- typescript/no-unnecessary-type-assertion: bump to error
- react/self-closing-comp: enforce self-closing JSX components
- unicorn/prefer-optional-catch-binding: drop unused catch params
- eslint/no-useless-computed-key: simplify object keys
- unicorn/prefer-string-slice: prefer .slice() over .substring()
- unicorn/prefer-array-flat-map: prefer .flatMap() over .map().flat()

All existing violations auto-fixed via oxlint --fix.
2026-04-10 19:29:32 +02:00
..
…

Copilot Anthropic Pinecone Demo Example

🛠️ Getting Started

Prerequisites

  • Node.js 18+
  • yarn
  • Anthropic API key
  • Pinecone account and API key

Installation Steps

  1. Clone the repository:
git clone https://github.com/CopilotKit/CopilotKit.git
  • /examples/copilot-anthropic-pinecone
  1. Install dependencies:
pnpm i
  1. Set up Pinecone and Anthropic Acc:
  • Create a Pinecone and Anthropic accounts
  • Note your API keys
  1. Configure environment variables: Create a .env file with:
ANTHROPIC_API_KEY="your_anthropic_key"
PINECONE_API_KEY="your_pinecone_key"
NEXT_PUBLIC_API_BASE_URL="app_base_URK"
  1. Start the development server:
pnpm dev
  1. Open http://localhost:3000 in your browser

📚 Additional Resources

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