anvia-hq/anvia/anvia-rag

Claude Code and agent skill by anvia-hq/anvia

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Build retrieval and RAG with Anvia — chunking, embeddings, vector stores, knowledge graphs, filters, and search tools.

Install

npx vskill@latest install anvia-hq/anvia/anvia-rag

SKILL.md

Anvia RAG Skill

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

  1. Expose retrieval to the agent (references/rag-tool.md, references/graph-rag.md) — search tool or

VectorContext, not raw vectors in the prompt.

  1. Run scripts/check-rag.sh from the app root before claiming done.

Minimal slice

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

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/anvia-hq/anvia/anvia-rag/badge)](https://verified-skill.com/skills/anvia-hq/anvia/anvia-rag)

Something wrong with this skill or its page? Tell us.