Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 57
  • 4 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-infrastructure

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install rag-infrastructure in Claude Code

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

A

No 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 →

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.

rag-infrastructure Install

Add to stack

Loading.