Logo di Rag Knowledge

Rag Knowledge

Organizzazione
vstorm-co
rag-knowledge

Work with the knowledge base — ingest documents, run semantic search, manage collections, add a sync connector (Google Drive, S3), change a parser or an ingestion setting. Use when populating or debugging retrieval, when a document upload fails or dies silently in a worker, or when "the agent cannot find something that is definitely in the collection". pgvector + per-organization embedding keys.

Add to TypingMind

Panoramica

Pubblicato davstorm-co
Repositoryagenticos
Nome della skillrag-knowledge
Stelle
137
Fork
27
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da vstorm-co su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Rag Knowledge in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/rag-knowledge
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vstorm-co/agenticos.git /tmp/agenticos
mkdir -p .claude/skills
cp -r /tmp/agenticos/.claude/skills/rag-knowledge .claude/skills/rag-knowledge
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rag Knowledge in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Rag Knowledge non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Rag Knowledge non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Knowledge base (pgvector)

Read docs/file-processing.md for the pipeline and docs/howto/add-sync-connector.md / docs/howto/configure-sync-sources.md for sources. Code: app/services/rag/ — ingestion, vectorstore, embeddings, connectors.

The model reaches it through the knowledge capability, whose tool is search_documents. (search_knowledge_base is an internal function in capabilities/knowledge/_search.py, not the tool the model sees.) A collection is searched, never browsed: the model chooses what to look for and can never widen where it looks — collections are resolved from the spec before the run.

CLI

bash
uv run agenticos cmd rag-ingest ./docs/ --collection docs --recursive
uv run agenticos cmd rag-search "your question" --collection docs
uv run agenticos cmd rag-collections
uv run agenticos cmd rag-stats
uv run agenticos cmd rag-drop <collection> --yes
uv run agenticos cmd rag-sources
uv run agenticos cmd rag-source-add
uv run agenticos cmd rag-source-sync --all
uv run agenticos cmd rag-source-remove <id>

Ingestion is parse → chunk → embed → upsert. It runs as an ingest-document job in a worker's child process, under a memory watchdog, never inline in a request - see the background-task skill. An upload queues the job in its own transaction; a document whose parse kills the child is retried once, then dead with why.

The four traps

1. The database must be pgvector/pgvector:pg16. The store issues CREATE EXTENSION IF NOT EXISTS vector on first write; stock Postgres answers extension "vector" is not available — a 500 before any row is committed. If ingestion 500s on a fresh environment, check the image first. Every compose file and both CI jobs pin it; they used to pin postgres:16-alpine, which is why no ingestion path had ever been exercised locally or in CI.

2. A format list can lie, and the upload is accepted anyway. GET /rag/supported-formats and the upload validator answer from PARSER_FORMATS; DocumentProcessor.process_file is what actually routes. When the two disagree the upload succeeds — file stored, document row committed, task dispatched — and dies in a worker, so the document sits in the listing with no explanation. tests/test_supported_formats.py pins each parser's set against what the pipeline can route, in both directions. Widening a format set is what that test exists for.

3. Narrowing an IngestionConfig rule breaks existing rows. It lives in a JSONB column, so a tighter rule does not only reject new input — it makes stored rows unreadable, and a Pydantic model refusing one field of one row takes the whole listing endpoint down with a 500. Adding a field is safe (missing keys take defaults); narrowing needs a data migration in the same change. the OCR language codes are the worked example. See the alembic-migration skill.

4. A document that parses to nothing. Silently indexing an empty result is indistinguishable afterwards from a document that ingested fine and never matches. Markdown reconstruction returns an empty fenced block rather than whitespace for an unreadable scan, so .strip() is not the check.

Credentials

Embedding keys, connector credentials and a LlamaParse key are organization secrets in the vault. CHANNEL_ENCRYPTION_KEY is gone — see the vault-secrets skill. app/services/embedding_resolution.py decides which key a collection embeds with, and it is in the gated platform layer.

Adding a connector

Implement it in app/services/rag/connectors/ following the Google Drive / S3 connectors, register it so the sync service discovers it, and expose its config fields. docs/howto/add-sync-connector.md is the walkthrough; docs/patterns.md has the registration shape.

Debugging bad results

  1. Is the collection populated? rag-stats.
  2. Is it bound to this agent's spec (collection_ids)? An unbound collection is invisible, and knowledge bound with no collections contributes nothing at all.
  3. Does the org have knowledge:read?
  4. Same embedding model throughout? Do not mix embeddings within a collection — re-ingest if it changed.
  5. Did the document actually parse? See trap 4.

Coverage

app/services/rag/* is template-inherited and outside the coverage gate — which is exactly why the invariants above are pinned by explicit named tests rather than left to a percentage. Three format lists disagreed there for months without anything failing.

Domande frequenti

Cosa fa la skill IA Rag Knowledge?

Work with the knowledge base — ingest documents, run semantic search, manage collections, add a sync connector (Google Drive, S3), change a parser or an ingestion setting. Use when populating or debugging retrieval, when a document upload fails or dies silently in a worker, or when "the agent cannot find something that is definitely in the collection". pgvector + per-organization embedding keys.

Perché usare Rag Knowledge su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rag Knowledge è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Rag Knowledge in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/rag-knowledge. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Rag Knowledge?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Rag Knowledge?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Rag Knowledge: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Rag Knowledge è gratuita?

Sì. È pubblicata su GitHub da vstorm-co con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇