Anvia RAG Skill

SkillSearch

Build 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.

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

  1. Chunk and embed the corpus (references/pipeline.md).
  2. Pick the store (references/stores.md) — InMemoryVectorStore first, a client store when data must persist. For connection questions, add a graph (references/graph-rag.md).
  3. Expose retrieval to the agent (references/rag-tool.md, references/graph-rag.md) — search tool or VectorContext, not raw vectors in the prompt.
  4. Run scripts/check-rag.sh from 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