before language fix
CI / ruff (push) Has been cancelled
CI / mypy (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / package (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (linux, ubuntu-latest) (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (macos-arm64, macos-14) (push) Has been cancelled

This commit is contained in:
valenti
2026-09-11 09:16:58 +00:00
parent ecb24e916d
commit f45a6e9c54
38 changed files with 3036 additions and 62 deletions
+19
View File
@@ -0,0 +1,19 @@
# Base de Conocimiento - Knowledge Base (Scaffold de ejemplo)
Coloca aquí tus documentos en formato **Markdown (.md)** o **Texto plano (.txt)**.
Se prefieres pre-chunkizar, puedes usar archivos **JSONL** (una línea por chunk):
```jsonl
{"text": "Texto del chunk 1...", "source": "manual_usuario.pdf", "chunk_index": 0, "metadata": {"pagina": 12}}
{"text": "Texto del chunk 2...", "source": "manual_usuario.pdf", "chunk_index": 1, "metadata": {"pagina": 13}}
```
## Primera ejecución
1. Añade tus documentos a esta carpeta (subcarpetas permitidas).
2. Arranca la pipeline con la flag `--rag_enabled`.
3. Se generarán automáticamente:
- `_index.npz` → matriz embeddings (numpy, persistente)
- `_chunks.jsonl` → lista chunks con metadata
Para **reindexar** después de añadir documentos nuevos: usa `--rag_force_rebuild` o borra manualmente `_index.npz` y `_chunks.jsonl`.