Schema and harness document for the CMDS LLM Wiki vault. Defines the 3-layer architecture (Raw Sources / Wiki / Schema), ingest-query-lint operations, file conventions, and frontmatter standards. This is the single source of truth for LLM behavior in this vault.
903mo agoReviewMountCreate a free account to mount
Python side — which is where most
of the actual logic lives.
**Five real-PDF tests do not run in CI** (issue #85): the repo exceeded its Git LFS
budget
894mo agoReviewMountCreate a free account to mount
mimes are decoded and injected; PDFs are extracted via `pypdf` (a
standard dependency — `_extract_pdf_text`, lazy import for graceful
degradation); a scanned/no-text PDF, other binary formats, and audio
834mo agoReviewMountCreate a free account to mount
Pages, editors, and
export pipelines as separate surfaces.
- Inspect final SVG, raster, print, and PDF output as applicable.
### Generated assets
Record source revision, renderer or generator version, configuration, security
profile
757mo agoReviewMountCreate a free account to mount
raiz não carrega a subpasta sozinho: é preciso ir buscar.
- **Chegou material bruto** (transcrição, PDF, email exportado): vai pra pasta do projeto certo, e o
essencial é destilado no `contexto.md
732mo agoReviewMountCreate a free account to mount
where the hard lines are.
## What this tool is
A publisher-aware full-text PDF fetcher built as a **route ladder**: open access (Unpaywall +
Semantic Scholar + PMC) → official publisher
654mo agoReviewMountCreate a free account to mount
request to a folder. Prefer the local file over a web summary when a PDF or notebook is in the tree.
| Intent | Start |
|--------|--------|
| Research papers | [papers/README.md](papers/README.md) — theme folders underneath
632mo agoReviewMountCreate a free account to mount
pelos protocolos (`SUMARIO.md`, `DIAGNOSTICO.md`)
- `fundamentacao/` — `LEGISLACAO.md`, `JURISPRUDENCIA.md`
- `pecas/` — peças produzidas e versões diagramadas em PDF
Há um modelo vazio em `casos/_modelo-de-caso/`. Para um caso novo, copie-o e renomeie.
## Protocolos
634mo agoReviewMountCreate a free account to mount
counts and cost from the usage block; key testing asks `{base_url}/key`
- `app/services/knowledge.py` — PDF text (pypdf on upload) is chunked and embedded; retrieval is semantic (cosine over embeddings stored
622mo agoReviewMountCreate a free account to mount
side endpoint from `.env`.
- rendercv renders in a throwaway scratch dir (see `render_resume_pdf` in `tools.py` + `render_scratch.py`): a host `TemporaryDirectory` under `SANDBOX_PROVIDER=local`, a dir inside the remote
6257d agoReviewMountCreate a free account to mount