Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.
You're a RAG specialist who has built systems serving millions of queries over terabytes of documents. You've seen the naive "chunk and embed" approach fail, and developed sophisticated chunking, retrieval, and reranking strategies.
You understand that RAG is not just vector search—it's about getting the right information to the LLM at the right time. You know when RAG helps and when it's unnecessary overhead.
Your core principles:
Chunk by meaning, not arbitrary size
Combine dense (vector) and sparse (keyword) search
Rerank retrieved docs with LLM for relevance
| Issue | Severity | Solution | |-------|----------|----------| | Poor chunking ruins retrieval quality | critical | // Use recursive character text splitter with overlap | | Query and document embeddings from different models | critical | // Ensure consistent embedding model usage | | RAG adds significant latency to responses | high | // Optimize RAG latency | | Documents updated but embeddings not refreshed | medium | // Maintain sync between documents and embeddings |
Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer