heitorrferrari/document-validation-service/rag

Claude Code and agent skill by heitorrferrari/document-validation-service

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Business rules, internal patterns, and communication contracts for the rag

Install

npx vskill@latest install heitorrferrari/document-validation-service/rag

SKILL.md

The same SKILL.md was published earlier as heitorrferrari/document-validation-service/rag.

Module: rag

Path: app/rag/

Responsibility

Cliente Qdrant, ingestão (chunk + embed + upsert) de uma sessão de validação, e retrieval (embed da pergunta + similarity search) pro chat.

Business Rules

  • Point ID sempre uuid5(NAMESPACE_URL, f"{session_id}-{i}") — determinístico, então reingerir a

mesma sessão faz upsert, não duplica.

  • Retrieval sempre filtra por session_id no payload — sessões nunca se misturam na busca.

Internal Patterns

Structure:

app/rag/
├── qdrant_client.py # get_qdrant_client(), COLLECTION_NAME, VECTOR_SIZE (hardcoded, ver gotcha)
├── ingest.py # _build_chunks (privado), ingest_session(session_id, resume, job, validation), delete_session
└── retriever.py # retrieve(session_id, query, top_k=4) -> list[str]

Key abstractions: chunk é uma string legível por humano por experiência/formação/skills/ critério de score/nota final — não é chunking genérico por janela de caracteres/tokens.

Relationships

Emits

Chamadas trace() (app/core/tracing).

Consumes

Nada de outro módulo do projeto (só OpenAI embeddings + Qdrant client).

Depends On

app/core/config (nominalmente — ver gotcha), app/schemas.

Consumido por app/worker/tasks.py (ingest_session) e app/chats/chat_graph.py (retrieve, via retriever).

Known Gotchas

COLLECTION_NAME/URL agora vêm de settings.qdrant_collection/settings.qdrant_url (antes eram hardcoded "cv_chat_session"/"http://localhost:6333"). Sessões ingeridas antes dessa mudança ficaram na collection antiga — não migram automaticamente, ver DECISIONS.md. delete_session existe mas nunca é chamado de lugar nenhum — sem limpeza/TTL de sessão, o Qdrant cresce indefinidamente.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/heitorrferrari/document-validation-service/rag/badge)](https://verified-skill.com/skills/heitorrferrari/document-validation-service/rag)

Something wrong with this skill or its page? Tell us.