Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nodetool-rag-indexing

БесплатноБез исполняемых скриптовНе проверен

Build NodeTool document ingestion, vector indexing, retrieval, and RAG pipelines. Use when a workflow must chunk documents into a vector collection of its own…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

Index documents and answer from them

A collection is a named vector store. Indexing splits documents into chunks, embeds each chunk with the collection's embedding model and stores it. Retrieval embeds the question with the same model and returns the closest chunks, which a language model answers from.

INDEX:  documents → text → chunks → vector.IndexTextChunk → collection
QUERY:  question → vector.HybridSearch / QueryText → context → Agent → answer

Search what is already indexed

Two tools are on the agent's belt in every chat:

  • list_collections returns each collection the user can access, with its metadata (including embedding_model).
  • query_collection {collection, query, n_results?} returns the closest chunks as {id, document, score}. n_results defaults to 5.

Answer from the returned chunks and say which chunk ids the answer used. An empty result means the collection holds nothing close, not that the topic is unknown.

The vector_index, vector_batch_index, vector_text_search, vector_hybrid_search, vector_recursive_split_and_index and vector_markdown_split_and_index tools act only on a collection a host binds to the run. A chat binds none, so they return an error there. Index through the nodes below instead.

Index through nodes

All vector nodes are in the vector namespace.

Node Takes Does
vector.Collection name, embedding_model Gets or creates the collection and outputs a {type: "collection", name} ref
vector.IndexTextChunk collection, document_id, text, metadata Upserts one chunk. The same document_id overwrites
vector.IndexString collection, text, document_id, metadata Upserts one string
vector.IndexImage, vector.IndexEmbedding Index an image or a precomputed embedding
vector.QueryText collection, text, n_results Vector search. Outputs ids, documents, metadatas, distances
vector.HybridSearch collection, text, n_results, k_constant, min_keyword_length Vector plus keyword search, fused by reciprocal rank. Adds scores
vector.QueryImage collection, image, n_results Image search
vector.GetDocuments, vector.Peek, vector.Count collection Inspect what is stored
vector.RemoveOverlap documents Removes text repeated between overlapping chunks

The embedding model is set once, on vector.Collection's embedding_model, and stored in the collection's metadata. Index and query nodes take only the collection, so indexing and search always use the same model. The shipped example uses the Ollama model nomic-embed-text. Changing the model means a new collection.

For a few chunks, run_node is enough: run_node {node_type: "vector.Collection", inputs: {name, embedding_model}} once, then vector.IndexTextChunk with collection: {type: "collection", name} per chunk. For a folder of documents, build a workflow and run it.

Index workflow

  1. List files. A Code node with await workspace.list(dir), or nodetool.document.ListDocuments {folder, pattern, recursive}.
  2. Load text. nodetool.document.LoadDocumentFile {path} for editable Markdown and text documents. Import PDFs as editable Markdown documents first, or extract PDF text in a Code node with @nodetool-ai/sandbox-pdf.
  3. Chunk. There is no chunking node. Use a Code node, starting from the "Chunk Text" snippet, and record the list with await output("chunks", chunks). Read a document input with await media.text(inputs.document).
  4. Fan out. nodetool.control.ForEach emits each chunk on output and its position on index. Build a unique document_id from the file name and the index, for example with nodetool.text.Template.
  5. Index. vector.IndexTextChunk with the collection ref, the chunk as text, the id as document_id, and {source: <file name>} as metadata.

Validate with validate_workflow, then run it. Indexing with a hosted embedding model is billed per token, so confirm the size of the corpus with the user before indexing a large folder.

Content Chunk size Overlap
Technical docs 200–500 tokens about 50 tokens
Prose 300–600 tokens about 75 tokens
Code 100–300 tokens about 25 tokens

Query workflow

StringInput (question) → vector.HybridSearch {collection, n_results: 5} → a Code node joining documents into one context string → nodetool.text.Prompt or Template with the context and the question → nodetool.agents.Agent with a system prompt that limits it to the context → Output.

The shipped example Chat With Your Documents builds a collection, indexes three documents and answers from them. Load it with get_example_workflow {package_name: "nodetool-base", example_name: "Chat With Your Documents"} and adapt it rather than starting from nothing.

Storage backends

The workflow nodes and t

Полный SKILL.md на GitHub

Установить nodetool-rag-indexing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл nodetool-rag-indexing?

Build NodeTool document ingestion, vector indexing, retrieval, and RAG pipelines. Use when a workflow must chunk documents into a vector collection of its own and query it by meaning. To find a stored image, video, document or workflow by what it contains, or to answer from a file already in the library, use search and search_read instead.

Как установить скилл nodetool-rag-indexing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nodetool-rag-indexing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nodetool-rag-indexing с