Skip to content
Back to skills

Rag Documents Data

ASecurity

"Manage Kiln document ingestion, extraction, chunking, embeddings,

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill rag-documents-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rag Documents Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rag Documents Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-rag-documents-data/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-rag-documents-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rag-documents-data
description: "Manage Kiln document ingestion, extraction, chunking, embeddings,
  vector stores, rerankers, and RAG search."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# RAG Documents Data

Use this skill for Kiln document upload, extraction, chunking, embedding, vector-store indexing, reranking, progress, search, and document API work.

## Owns
- `Document`, `Extraction`, `ExtractorConfig`, `ChunkerConfig`, `EmbeddingConfig`, `VectorStoreConfig`, `RagConfig`, and `RerankerConfig`
- MIME classification, extraction passthrough behavior, and document attachment loading
- `RagTool`, RAG workflow runners, and RAG progress accounting
- document API route families that manage documents, extractions, config trees, RAG runs, progress, and search
- LanceDB/vector-store loading notes and chunk indexing reconciliation

## Route away
- task invocation, provider selection, or agent tool execution -> `task-execution-providers-tools`
- UI route mechanics or presentation concerns -> `server-desktop-web-api`
- synthetic data, evals, prompt optimization, or dataset splits -> `evals-optimization-finetuning`

## Use this sequence
1. Validate the document kind and MIME family before you reason about extraction.
2. Choose the extractor config. If the MIME type is configured for passthrough, the extractor should return UTF-8 file text directly.
3. Chunk only after extraction output exists. Semantic chunking requires a valid embedding config and a parent project path.
4. Embed chunk text before indexing. Keep chunk and embedding counts aligned.
5. Index into the vector store before search. The search tool is not a substitute for indexing.
6. Search with `RagTool`. Vector and hybrid stores need a query embedding; FTS does not.
7. Rerank only after vector-store search and before final formatting.

## Validation checklist
- MIME kind matches the supported family.
- `passthrough_mimetypes` contains the expected text MIME values.
- `chunk_overlap < chunk_size` for fixed-window chunking.
- semantic chunking has a parent project and a resolved embedding config.
- embedding vectors are present before indexing.
- vector-store, extractor, chunker, and embedding config IDs all resolve under the same project.
- the target vector store has been indexed before search is expected to return useful results.
- tiny fixtures still leave at least one non-whitespace chunk, or the zero-chunk case is intentional.

## Bundled references
- [Document and RAG workflows](references/document-rag-workflows.md)
- [Data formats](references/data-formats.md)
- [API reference](references/api-reference.md)
- [Troubleshooting](references/troubleshooting.md)

## Bundled scripts
- [check_rag_imports.py](scripts/check_rag_imports.py)

## Evidence notes
Source evidence used here includes `libs/core/kiln_ai/datamodel/extraction.py`, `chunk.py`, `embedding.py`, `vector_store.py`, `rag.py`, `reranker.py`, `libs/core/kiln_ai/adapters/*`, `libs/core/kiln_ai/tools/rag_tools.py`, and `libs/server/kiln_server/document_api.py`.

Files in this skill

  • SKILL.md3 KB
  • references/api-reference.md6.6 KB
  • references/data-formats.md7.3 KB
  • references/document-rag-workflows.md5.8 KB
  • references/troubleshooting.md6.9 KB
  • scripts/check_rag_imports.py5.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.