rag-infrastructure
Skill by sickn33
Guides building and operating Retrieval-Augmented Generation infrastructure, covering vector stores, embedding pipelines and hybrid search. Aimed at developers building knowledge base Q&A over internal documents.
Install rag-infrastructure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/rag-infrastructure ~/.claude/skills/rag-infrastructureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/rag-infrastructure ~/.gemini/antigravity-cli/skills/rag-infrastructureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This docs-only skill describes production infrastructure for Retrieval-Augmented Generation. It covers ingesting documents, generating embeddings, storing them in vector databases such as Qdrant, Weaviate, Pinecone or pgvector, and serving grounded LLM answers. The source includes Python examples for chunking, dense and sparse hybrid search with reciprocal rank fusion, and reranking with Cohere or a local cross-encoder.
It is meant for developers building knowledge base Q&A over internal documents or semantic search over large collections. The skill also includes a Docker Compose layout for Qdrant, Redis, an ingestion worker and a RAG API. The user-supplied ingestion and API builds and the vLLM service are not bundled. The source notes that retrieval should enforce document permissions before generation, and that external embedding services receive document text.
Written from the project's SKILL.md and checked against it.
What it can do
- Embedding pipelineChunks, embeds and upserts documents into a Qdrant collection.
- Chunking strategiesOffers a recursive character splitter and a markdown header splitter.
- Hybrid searchCombines dense and sparse vectors using reciprocal rank fusion.
- RerankingReranks retrieved chunks with Cohere or a local CrossEncoder model.
- RAG query pipelineRetrieves, reranks and generates answers grounded in retrieved context.
- Docker Compose stackDefines Qdrant, Redis, an ingestion worker and a RAG API service.
What you need
- Python 3.10+ with pip
- Docker
- A vector database such as Qdrant, Weaviate, Pinecone or pgvector
- An embedding model from OpenAI, Cohere or sentence-transformers
- An LLM endpoint such as the OpenAI API or self-hosted vLLM
Try asking
- Set up a Qdrant collection and embedding pipeline for my internal docs
- Write a hybrid search function that combines dense and sparse retrieval
- Add a reranking step before sending retrieved chunks to my LLM
Good to know
- Docs-only import; upstream scripts and templates are not bundled.
- The Compose example needs user-supplied ingestion and API builds plus a vLLM service.
- Retrieved content is untrusted and must not authorize tools or override instructions.
- Client and library versions should be matched before running the snippets.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/rag-infrastructure/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB
Alternatives to rag-infrastructure
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
rag-infrastructure: common questions
Does this skill include ready-to-run ingestion and API code?
No. The source says the Compose example requires user-supplied ingestion and api builds, which are not bundled. The Python snippets are examples to adapt.
Is the sparse search in this skill BM25?
No. The source says SPLADE is learned sparse retrieval, not BM25, and the example uses prithivida/Splade_PP_en_v1.
Are external embedding services safe for private documents?
The source says external embeddings and rerankers transmit document text and require sharing authorization. It suggests local models such as BAAI/bge-large-en-v1.5 as an option.
How do I install rag-infrastructure?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is rag-infrastructure free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is rag-infrastructure safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to rag-infrastructure?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
