Back to skills
SKILL.md
Rag Implementation
ASecurityBuild retrieval augmented generation with embeddings and vector DB
- 2 stars
- 0 votes
- 0 copies
- 2 views
- Added September 10, 2026
Works with
Security analysis
100/100npx -y skills add LoopyLuci/Skills --skill rag-implementation --agent claude-codeAre you the author of Rag Implementation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-rag-implementation)---
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
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.