raglite

raglite is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 22 tokens per session (476 once invoked), scanned A, original, MIT.

A local document index and search tool that turns PDFs, Markdown, and text files into structured notes for retrieval. RAG, or retrieval-augmented generation, means finding relevant passages from your documents before answering a question.

In plain words
What is it for?
It is for building a local knowledge base, finding relevant document sections, reranking results, and answering questions with source and page references.
Why use it?
It makes private documents searchable without sending the index to an external service or setting up a separate vector database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for building a local knowledge base, finding relevant document sections, reranking results, and answering questions with source and page references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/raglite
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add malue-ai/dazee-small --skill raglite
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for raglite

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/raglite/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/raglite)
Your own site
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/raglite"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/raglite/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for raglite

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/raglite"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/raglite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00476
Opus 5 $0.00011 $0.00238
Sonnet 5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00048

Measured 9d ago against content hash 57634ccec9ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

raglite scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/library/raglite/SKILL.md · 87 lines

What it actually says

RAGLite 本地知识检索

将文档蒸馏为结构化 Markdown 并建立本地索引,实现快速知识检索。无需外部向量数据库。

使用场景

  • 用户说「帮我把这些文档建成知识库,方便以后查询」
  • 用户有大量 PDF/Markdown 文档需要快速搜索
  • 需要基于私有文档回答问题(RAG 场景)
  • 与知识库类 Skill 配合,提供语义搜索能力

执行方式

安装

pip install raglite

索引文档

from raglite import RAGLiteConfig, insert_document

config = RAGLiteConfig(
    db_url="sqlite:///~/Documents/xiaodazi/raglite.db",
)

insert_document(
    doc_path="report.pdf",
    config=config,
)

检索

from raglite import retrieve_chunks, rerank_chunks

chunks = retrieve_chunks(
    query="公司的营收增长情况",
    num_chunks=10,
    config=config,
)

reranked = rerank_chunks(query="公司的营收增长情况", chunk_ids=[c.id for c in chunks], config=config)

RAG 问答

from raglite import rag

response = rag(
    prompt="根据文档,公司去年的营收是多少?",
    config=config,
)
print(response)

支持的文档格式

  • PDF(通过 MinerU 或 PyPDF 解析)
  • Markdown
  • 纯文本

输出规范

  • 索引完成后显示文档数量和索引大小
  • 检索结果附带来源文档和页码引用
  • 回答时明确标注信息出处
  • 数据库存储在本地,不上传
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 87 lines · 22 tokens per session scan A 57634ccec9ff

Subscribe to this mod's changes

raglite is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 476 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens

9router-embeddings

Generate vector embeddings via 9Router /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia / GitHub embedding models for RAG, semantic search, similarity. Use when the user wants embeddings, vectors, RAG, semantic search, or to embed text.

decolua/9router · 66 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens