Chroma Vector Database
Orchestra-Research/AI-Research-SKILLs
Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.
RAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers.
$ npx skills add llama-farm/llamafarm --skill rag-skills -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install llama-farm/llamafarm rag-skills --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/rag-skills .claude/skills/rag-skills && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .claude/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add llama-farm/llamafarm --skill rag-skills -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install llama-farm/llamafarm rag-skills --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/rag-skills .agents/skills/rag-skills && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .agents/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add llama-farm/llamafarm --skill rag-skills -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install llama-farm/llamafarm rag-skills --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/rag-skills .cursor/skills/rag-skills && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .cursor/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/llama-farm/llamafarm.git --path .claude/skills/rag-skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add llama-farm/llamafarm --skill rag-skills -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install llama-farm/llamafarm rag-skills --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/rag-skills .gemini/skills/rag-skills && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .gemini/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install llama-farm/llamafarm rag-skillsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add llama-farm/llamafarm --skill rag-skills -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/rag-skills .github/skills/rag-skills && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .github/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add llama-farm/llamafarm --skill rag-skills -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install llama-farm/llamafarm rag-skills --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/rag-skills .opencode/skills/rag-skills && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rag-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/rag-skills into .opencode/skills/rag-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rag-skills", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rag-skillsRAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers.
RAG Skills is an agent skill from llama-farm/llamafarm. RAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers. Covers ingestion, retrieval, embeddings, and performance.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `celery.md`, `chromadb.md` and `llamaindex.md`).
It sits in AI & LLM Engineering, covering Retrieval-augmented generation, Background jobs and Embeddings. It works with LlamaIndex, Chroma and Python. The repository describes itself as: Deploy any AI model, agent, database, RAG, and pipeline locally or remotely in minutes. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6244d46. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGrepGlobFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
RAG Skills loads about 1.3k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 168 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from llama-farm/llamafarm at commit 6244d46, republished under its Apache-2.0 licence (© llama-farm). 168 words, ~1,284 tokens.
.claude/skills/rag-skills/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Framework-specific patterns and code review checklists for the RAG component.
Extends: python-skills - All Python best practices apply here.
| Aspect | Technology | Version |
|---|---|---|
| Python | Python | 3.11+ |
| Document Processing | LlamaIndex | 0.13+ |
| Vector Storage | ChromaDB | 1.0+ |
| Task Queue | Celery | 5.5+ |
| Embeddings | Universal/Ollama/OpenAI | Multiple |
rag/
├── api.py # Search and database APIs
├── celery_app.py # Celery configuration
├── main.py # Entry point
├── core/
│ ├── base.py # Document, Component, Pipeline ABCs
│ ├── factories.py # Component factories
│ ├── ingest_handler.py # File ingestion with safety checks
│ ├── blob_processor.py # Binary file processing
│ ├── settings.py # Pydantic settings
│ └── logging.py # RAGStructLogger
├── components/
│ ├── embedders/ # Embedding providers
│ ├── extractors/ # Metadata extractors
│ ├── parsers/ # Document parsers (LlamaIndex)
│ ├── retrievers/ # Retrieval strategies
│ └── stores/ # Vector stores (ChromaDB, FAISS)
├── tasks/ # Celery tasks
│ ├── ingest_tasks.py # File ingestion
│ ├── search_tasks.py # Database search
│ ├── query_tasks.py # Complex queries
│ ├── health_tasks.py # Health checks
│ └── stats_tasks.py # Statistics
└── utils/
└── embedding_safety.py # Circuit breaker, validation| Topic | File | Key Points |
|---|---|---|
| LlamaIndex | llamaindex.md | Document parsing, chunking, node conversion |
| ChromaDB | chromadb.md | Collections, embeddings, distance metrics |
| Celery | celery.md | Task routing, error handling, worker config |
| Performance | performance.md | Batching, caching, deduplication |
from dataclasses import dataclass, field
from typing import Any
@dataclass
class Document:
content: str
metadata: dict[str, Any] = field(default_factory=dict)
id: str = field(default_factory=lambda: str(uuid.uuid4()))
source: str | None = None
embeddings: list[float] | None = Nonefrom abc import ABC, abstractmethod
class Component(ABC):
def __init__(
self,
name: str | None = None,
config: dict[str, Any] | None = None,
project_dir: Path | None = None,
):
self.name = name or self.__class__.__name__
self.config = config or {}
self.logger = RAGStructLogger(__name__).bind(name=self.name)
self.project_dir = project_dir
@abstractmethod
def process(self, documents: list[Document]) -> ProcessingResult:
passclass RetrievalStrategy(Component, ABC):
@abstractmethod
def retrieve(
self,
query_embedding: list[float],
vector_store,
top_k: int = 5,
**kwargs
) -> RetrievalResult:
pass
@abstractmethod
def supports_vector_store(self, vector_store_type: str) -> bool:
passclass Embedder(Component):
DEFAULT_FAILURE_THRESHOLD = 5
DEFAULT_RESET_TIMEOUT = 60.0
def __init__(self, ...):
super().__init__(...)
self._circuit_breaker = CircuitBreaker(
failure_threshold=config.get("failure_threshold", 5),
reset_timeout=config.get("reset_timeout", 60.0),
)
self._fail_fast = config.get("fail_fast", True)
def embed_text(self, text: str) -> list[float]:
self.check_circuit_breaker()
try:
embedding = self._call_embedding_api(text)
self.record_success()
return embedding
except Exception as e:
self.record_failure(e)
if self._fail_fast:
raise EmbedderUnavailableError(str(e)) from e
return [0.0] * self.get_embedding_dimension()When reviewing RAG code:
LlamaIndex (Medium priority)
ChromaDB (High priority)
Celery (High priority)
Performance (Medium priority)
See individual topic files for detailed checklists with grep patterns.
© llama-farm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in .claude/skills/rag-skills of llama-farm/llamafarm.
Open the folder on GitHubat commit 6244d46
RAG Skills next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| RAG Skills this skillllama-farm/llamafarm | 836 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Chroma Vector DatabaseOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Sentence Transformers EmbeddingsOrchestra-Research/AI-Research-SKILLs | 13k | 2 repos | ~1.6k | Automated safety check: Pass | MIT | |
| FAISS Similarity SearchOrchestra-Research/AI-Research-SKILLs | 13k | 6 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Retail Product Search Agentgoogle/adk-recipes | 10k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Llama Index Wikichujianyun/skills | 742 | — | ~480 | Automated safety check: Pass | Custom licence |
Orchestra-Research/AI-Research-SKILLs
Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.
Orchestra-Research/AI-Research-SKILLs
Generates text embeddings locally with the sentence-transformers library for RAG, semantic search, clustering and similarity, with model picks for general, multilingual and legal text.
Orchestra-Research/AI-Research-SKILLs
Sets up FAISS for fast nearest-neighbor search over large collections of dense vectors, choosing between Flat, IVF, HNSW and product quantization indexes.
google/adk-recipes
Builds a retail product search agent on Google Cloud, from catalog ingestion into BigQuery and Vector Search to ADK scaffolding, evaluation and Cloud Run deployment.
chujianyun/skills
LlamaIndex 官方用户文档离线知识库,用于检索并回答 LlamaIndex Python 框架的安装、RAG、数据加载、索引、检索与查询、Agent、Workflow、模型、Embedding、向量库、评估、可观测性、部署、LlamaCloud 和 LlamaParse 等问题,也可生成有文档依据的示例代码与排障建议。当用户提到…
langchain-ai/langchain-skills
INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system.
llama-farm/llamafarm
Analyze the current session and propose improvements to skills.
llama-farm/llamafarm
Guidelines for creating temporary files in system temp directory.
llama-farm/llamafarm
CLI best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.
llama-farm/llamafarm
Comprehensive code review for diffs. An agent skill from llama-farm/llamafarm.
llama-farm/llamafarm
Commit changes, push to GitHub, and open a PR. An agent skill from llama-farm/llamafarm.
llama-farm/llamafarm
Best practices for the Common utilities package in LlamaFarm.
Works with
Categories
RAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers. RAG Skills is an agent skill from llama-farm/llamafarm. RAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers.
RAG Skills fits situations like: tasks that involve Retrieval-augmented generation; tasks that involve Background jobs; tasks that involve Embeddings.
Run `npx skills add llama-farm/llamafarm --skill rag-skills -a claude-code`. Or copy the skill folder (.claude/skills/rag-skills in llama-farm/llamafarm) into .claude/skills/rag-skills in your project. Claude Code loads it when a task matches its description.
Run `npx skills add llama-farm/llamafarm --skill rag-skills -a codex`. Or copy the skill folder (.claude/skills/rag-skills in llama-farm/llamafarm) into .agents/skills/rag-skills in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add llama-farm/llamafarm --skill rag-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rag-skills, .gemini/skills/rag-skills, .github/skills/rag-skills and .opencode/skills/rag-skills in your project.
SKILL.md names no scripts, command-line tools or credentials: RAG Skills is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Grep, Glob.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
RAG Skills is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with RAG Skills: Chroma Vector Database (Orchestra-Research/AI-Research-SKILLs, 13k stars), Sentence Transformers Embeddings (Orchestra-Research/AI-Research-SKILLs, 13k stars), FAISS Similarity Search (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Retail Product Search Agent (google/adk-recipes, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
llama-farm (a GitHub organization) maintains it in llama-farm/llamafarm, which has 836 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 10, 2026.
Source: llama-farm/llamafarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.