cohere-reference-architecture

Featured

Implement Cohere reference architecture with layered project layout for RAG and agents. Use when designing new Cohere integrations, reviewing project structure, or establishing architecture standards for Cohere API v2 applications. Trigger with phrases like "cohere architecture", "cohere project structure", "cohere layout", "organize cohere app", "cohere design pattern".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Reference Architecture ## Overview Production-ready architecture for Cohere API v2 applications covering RAG pipelines, tool-use agents, and multi-model orchestration. ## Prerequisites - Understanding of layered architecture - `cohere-ai` SDK v7+ - TypeScript project with vitest ## Project Structure ``` my-cohere-app/ ├── src/ │ ├── cohere/ │ │ ├── client.ts # CohereClientV2 singleton │ │ ├── models.ts # Model selection logic │ │ ├── types.ts # Cohere-specific types │ │ └── errors.ts # Error classification │ ├── services/ │ │ ├── chat.ts # Chat completions + streaming │ │ ├── rag.ts # RAG pipeline (embed → rerank → chat) │ │ ├── agents.ts # Tool-use agent loops │ │ ├── embed.ts # Batch embedding + caching │ │ ├── rerank.ts # Document reranking │ │ └── classify.ts # Few-shot classification │ ├── tools/ # Tool definitions for agents │ │ ├── registry.ts # Tool name → executor mapping │ │ ├── search.ts │ │ └── calculator.ts │ ├── api/ │ │ ├── chat.ts # POST /api/chat (streaming) │ │ ├── embed.ts # POST /api/embed │ │ └── health.ts # GET /api/health │ └── cache/ │ └── embeddings.ts # LRU cache for embeddings ├── tests/ │ ├── unit/ │ │ ├── chat.test.ts │ │ ├── rag.test.ts │ │ └── fixtures/ # Mocked AP...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category