cohere-core-workflow-a

Featured

Build a complete RAG pipeline with Cohere Chat, Embed, and Rerank. Use when implementing retrieval-augmented generation, building grounded Q&A systems, or combining search with LLM generation. Trigger with phrases like "cohere RAG", "cohere retrieval", "cohere grounded generation", "cohere search and answer".

AI & Automation 2,266 stars 315 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 RAG Pipeline (Core Workflow A) ## Overview End-to-end Retrieval-Augmented Generation using Cohere's three core endpoints: Embed (vectorize), Rerank (sort by relevance), Chat (generate grounded answer with citations). ## Prerequisites - Completed `cohere-install-auth` setup - `cohere-ai` package installed - Understanding of vector similarity search ## Instructions ### Step 1: Embed Your Documents ```typescript import { CohereClientV2 } from 'cohere-ai'; const cohere = new CohereClientV2(); // Your knowledge base const documents = [ { id: 'doc1', text: 'Cohere Command A has 256K context and supports tool use.' }, { id: 'doc2', text: 'Embed v4 generates 1024-dim vectors with 128K token context.' }, { id: 'doc3', text: 'Rerank v3.5 scores relevance from 0 to 1 across 100+ languages.' }, { id: 'doc4', text: 'The Chat API v2 requires model as a mandatory parameter.' }, { id: 'doc5', text: 'Cohere supports structured JSON output via response_format.' }, ]; // Embed documents for storage const docEmbeddings = await cohere.embed({ model: 'embed-v4.0', texts: documents.map(d => d.text), inputType: 'search_document', embeddingTypes: ['float'], }); // Store vectors alongside document text in your vector DB const vectors = docEmbeddings.embeddings.float; console.log(`Embedded ${vectors.length} docs, ${vectors[0].length} dimensions each`); ``` ### Step 2: Search — Embed the Query ```typescript async function searchDocuments(query: string, topK = 10) { ...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

cohere-hello-world

Create a minimal working Cohere example with Chat, Embed, and Rerank. Use when starting a new Cohere integration, testing your setup, or learning basic Cohere API v2 patterns. Trigger with phrases like "cohere hello world", "cohere example", "cohere quick start", "simple cohere code".

2,266 Updated today
jeremylongshore
AI & Automation Listed

rag-architecture

Build retrieval-augmented generation systems that ground LLMs in your data.

0 Updated yesterday
fabioc-aloha
AI & Automation Featured

cohere-performance-tuning

Optimize Cohere API performance with caching, batching, model selection, and streaming. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Cohere Chat, Embed, and Rerank. Trigger with phrases like "cohere performance", "optimize cohere", "cohere latency", "cohere caching", "cohere slow", "cohere batch".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-reference-architecture

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".

2,266 Updated today
jeremylongshore
AI & Automation Solid

rag

Implements document chunking, embedding generation, vector storage, and retrieval pipelines for Retrieval-Augmented Generation systems. Use when building RAG applications, creating document Q&A systems, or integrating AI with knowledge bases.

261 Updated 1 weeks ago
giuseppe-trisciuoglio