Anvia RAG Skill
SkillSearchBuild retrieval and RAG with Anvia, chunking, embeddings, vector stores, knowledge graphs, filters, and search tools.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Anvia RAG Skill skill
What this skill tells your AI
The instructions your AI receives, as published by anvia-hq/anvia in skills/anvia-rag/SKILL.md and read by ahel’s review.
Use this skill when the user wants retrieval over their own data: chunking documents, embedding them, picking a vector store, filtering results, or exposing retrieval to an agent as a search tool.
Process
- Chunk and embed the corpus (
references/pipeline.md). - Pick the store (
references/stores.md) —InMemoryVectorStorefirst, a client store when data must persist. For connection questions, add a graph (references/graph-rag.md). - Expose retrieval to the agent (
references/rag-tool.md,references/graph-rag.md) — search tool orVectorContext, not raw vectors in the prompt. - Run
scripts/check-rag.shfrom the app root before claiming done.
Minimal slice
import { embedDocuments } from "@anvia/core/embeddings";
import { InMemoryVectorStore, retrieveDocuments } from "@anvia/core/vector-store";
import { loadTransformersEmbeddingModel } from "@anvia/transformers";
const embeddingModel = await loadTransformersEmbeddingModel({ modelId: "Xenova/all-MiniLM-L6-v2" });
const { documents: embedded } = await embedDocuments({
model: embeddingModel,
documents: notes,
id: (note) => note.id,
content: (note) => `${note.title}\n${note.body}`,
metadata: (note) => ({ topic: note.topic }),
});
const store = InMemoryVectorStore.fromDocuments({ documents: embedded });
const results = await retrieveDocuments({
store,
model: embeddingModel,
query: "market risk",
topK: 1,
});
Output
Keep the pipeline explicit: load → chunk → embed → upsert → retrieve. Point to the relevant reference file instead of pasting its contents into chat.
Signals
- GitHub stars
- 50
- Forks
- 6
- Last commit
- Oct 2026
ahel review
K6low
bundled executables the agent is told to run
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
anvia-rag- Source
- github.com/anvia-hq/anvia