mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
ff2093102c
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.
Copilot Anthropic Pinecone Demo Example
🛠️ Getting Started
Prerequisites
- Node.js 18+
- yarn
- Anthropic API key
- Pinecone account and API key
Installation Steps
- 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
📚 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