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★ 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_collectionsreturns each collection the user can access, with its metadata (includingembedding_model).query_collection {collection, query, n_results?}returns the closest chunks as{id, document, score}.n_resultsdefaults 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
- List files. A Code node with
await workspace.list(dir), ornodetool.document.ListDocuments {folder, pattern, recursive}. - 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. - 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 withawait media.text(inputs.document). - Fan out.
nodetool.control.ForEachemits each chunk onoutputand its position onindex. Build a uniquedocument_idfrom the file name and the index, for example withnodetool.text.Template. - Index.
vector.IndexTextChunkwith the collection ref, the chunk astext, the id asdocument_id, and{source: <file name>}asmetadata.
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
Установить 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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic