Skip to content
Back to skills

Rag Implementation

ASecurity

Build retrieval augmented generation with embeddings and vector DB

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill rag-implementation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rag Implementation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rag Implementation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-rag-implementation/badge)](https://www.skillsdirectory.com/skills/loopyluci-rag-implementation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rag-implementation
description: "Build retrieval augmented generation with embeddings and vector DB"
---

# RAG Implementation

## Pipeline
1. Chunk documents
2. Generate embeddings
3. Store in vector DB
4. Query: embed question + search + context + LLM

## Minimal RAG
```python
from sentence_transformers import SentenceTransformer
import chromadb

model = SentenceTransformer("all-MiniLM-L6-v2")
client = chromadb.Client()
collection = client.create_collection("docs")

# Index
collection.add(documents=["doc1 text", "doc2 text"], ids=["1", "2"])

# Query
results = collection.query(query_texts=["user question"], n_results=3)
context = "
".join(results["documents"][0])
prompt = f"Context: {context}
Question: ..."
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.