project-nomad/admin/app/services
just-jbc 4a12049931
fix(rag): add proper .docx text extraction via mammoth (#1100)
* fix(rag): add proper .docx text extraction via mammoth

.docx files were classified as plain text and routed through raw-text
extraction (extractTXTText). Since .docx is a ZIP archive containing XML,
this produced garbage content in the Knowledge Base — XML tags and binary
noise instead of the actual document text.

Adds a dedicated 'docx' file type (split out of the generic 'text' bucket
in determineFileType) and a mammoth-based extractor that parses the
document XML properly.

* fix: clean up package-lock.json diff

* chore(deps): pin mammoth version

---------

Co-authored-by: John Cortright <jcortright@zscaler.com>
Co-authored-by: jakeaturner <jturner@cosmistack.com>
2026-08-04 03:37:42 +00:00
..
app_auto_update_service.ts
…
auto_update_service.ts
…
benchmark_service.ts feat(benchmark): harness hardening — fail loudly + pin sysbench + record provenance (#1089) 2026-08-04 03:37:41 +00:00
benchmark_telemetry.ts feat(benchmark): end-of-run score reveal + NVIDIA GPU-util overlay (#1087) 2026-08-04 03:37:40 +00:00
chat_service.ts
…
collection_manifest_service.ts
…
collection_update_service.ts
…
container_registry_service.ts
…
content_auto_update_service.ts
…
countries_service.ts
…
custom_app_guard.ts
…
docker_service.ts feat(debug-info): add storage, docker, GPU health, and auto-update diagnostics (#1102) 2026-08-04 03:37:36 +00:00
docs_service.ts
…
download_service.ts
…
kiwix_catalog_service.ts
…
kiwix_library_service.ts
…
map_service.ts
…
ollama_service.ts fix(easy-setup): streamline wizard + robust model recommendations (#1110) 2026-08-04 03:37:37 +00:00
queue_service.ts
…
rag_service.ts fix(rag): add proper .docx text extraction via mammoth (#1100) 2026-08-04 03:37:42 +00:00
system_service.ts feat(debug-info): add storage, docker, GPU health, and auto-update diagnostics (#1102) 2026-08-04 03:37:36 +00:00
system_update_service.ts
…
zim_extraction_service.ts
…
zim_service.ts feat: Expandable rows in Kiwix Library browser (#1060) 2026-08-04 03:37:32 +00:00