rag-infrastructure
Skill by ibrdot
Guides building Retrieval-Augmented Generation infrastructure with vector stores, embedding pipelines and hybrid search. Covers chunking, reranking, a RAG query pipeline and a Docker Compose stack. Aimed at teams building grounded LLM question answering over documents.
Install rag-infrastructure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ibrdot/swe-re-expert /tmp/swe-re-expert && mkdir -p ~/.claude/skills && cp -r /tmp/swe-re-expert/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/ibrdot/swe-re-expert /tmp/swe-re-expert && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/swe-re-expert/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
RAG Infrastructure is a docs-only agent skill that explains how to build and operate Retrieval-Augmented Generation systems. It covers ingesting documents, generating embeddings, storing them in a vector database, and serving grounded LLM answers. The examples use Qdrant, sentence-transformers, FastEmbed sparse vectors, Cohere reranking and a local CrossEncoder option.
The skill walks through dense and sparse hybrid search with reciprocal rank fusion, chunking strategies, a retrieve, rerank and generate query pipeline, and a Docker Compose stack. It is aimed at developers building knowledge base question answering or semantic search over internal documents. Its best practices include reranking before generation and storing source metadata for citations. Helper scripts and templates are not bundled.
Written from the project's SKILL.md and checked against it.
What it can do
- Embedding pipelineChunks documents, generates embeddings and upserts them into a Qdrant collection.
- Chunking strategiesShows 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 limited to the provided context.
- Docker Compose stackDefines Qdrant, Redis, an ingestion worker and a RAG API service.
- Common issuesLists troubleshooting fixes for poor retrieval, slow ingestion and stale documents.
- Evaluation guidanceSuggests RAGAS metrics for faithfulness, answer relevancy and context precision.
What you need
- Python 3.10+ with pip
- A vector database such as Qdrant, Weaviate, Pinecone or pgvector
- An embedding model from OpenAI, Cohere or local sentence-transformers
- An LLM endpoint (OpenAI API or self-hosted vLLM)
- Docker
Try asking
- Set up a Qdrant collection and embedding pipeline for my internal docs
- Add hybrid dense and sparse search to my knowledge base
- Show me how to rerank retrieved chunks before sending them to the LLM
Good to know
- Infrastructure commands can disrupt services, so confirm scope and keep backups.
- Docs-only import; helper scripts and templates are not bundled.
- Requires privileged access where noted in the source.
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
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
Which vector databases does this skill cover?
The prerequisites list Qdrant, Weaviate, Pinecone and pgvector. The code examples use Qdrant.
Can the embedding and reranking models run locally?
Yes. The source shows local embeddings through sentence-transformers and a local CrossEncoder reranker, with no API cost.
Does the skill include ready-to-run scripts?
No. The source says it is docs-only and that helper scripts and templates are not bundled.
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 57 of 100. Grades: maintenance B, licence A, quality C. 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.
