You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triaged. DOCX and XLSX are supported by the RAG indexer (.docx via python-docx, .xlsx via openpyxl), so "Index failed" for these isn't a missing-format gap — it points to a runtime cause. The usual culprits are: the RAG service being unreachable, an embedding-provider error, a corrupt/empty file, or the secret-scanner rejecting the file.
To diagnose, could you share a sample failing .docx/.xlsx (or its characteristics) and the RAG service logs around the failure (docker logs for the rag container)? Downgrading priority from high to medium pending repro data. Assigned to me; leaving open.
Needs investigation in the RAG service. "Index Failed" for supported DOCX/XLSX is a server-side parsing/indexing failure (services/rag/app/routers/documents.py + the extraction pipeline), distinct from upload validation. To pin it I need the rag-service error logs for a failing DOCX/XLSX (which extractor raised, and on which file). Related indexing reports: #1457. Will trace against the extraction pipeline once a failing sample + log is available; keeping assigned.
For the record, confirming the code analysis: DOCX and XLSX are supported end-to-end. They're in SUPPORTED_EXTENSIONS (services/rag/app/routers/documents.py) and routed to dedicated extractors (packages/tale_knowledge/.../extraction/router.py → docx.py via python-docx, xlsx.py via openpyxl). The "Index failed" badge is produced when _background_ingest catches an exception from rag_service.add_document and records status='failed' — so this is a server-side ingestion failure (corrupt/empty file, embedding-provider error, RAG service unreachable, or secret-scanner rejection), not a missing-format or upload-validation issue.
To unblock diagnosis, please attach the failing sample .docx/.xlsx and the rag container logs around the failure (which extractor raised). Tracking alongside #1457 (same "Index failed" symptom for PDF). Keeping open.
Traced the extraction path end-to-end at the code level — the obvious suspects are all clean, so this is a runtime failure that needs the captured error to localize. What I verified:
Upload is accepted.services/rag/app/routers/documents.pySUPPORTED_EXTENSIONS includes .docx and .xlsx (and the 400 "unsupported extension" path is not hit).
Routing is correct.tale_knowledge/extraction/router.py dispatches .docx → extract_text_from_docx_bytes and .xlsx → extract_text_from_xlsx_bytes, and both return the tuple shape the router expects.
Dependencies are present.python-docx, openpyxl, and python-pptx are core[project].dependencies of tale_knowledge (not an optional extra), and services/rag depends on tale-knowledge — so they're in the image.
Since both Office formats fail together while PDF/text presumably index fine, the failure is downstream of routing — most likely an exception during extraction or the chunk→embed step, which documents.py::_record_failure catches and stores in the documents.error column (surfaced to the UI as the file's ragError / the "Index failed" badge).
To localize, we need that stored error, which the report didn't include. Could you grab one of:
the error column for a failed row (SELECT filename, status, error FROM <schema>.documents WHERE status = 'failed' ORDER BY ... LIMIT 5;), or
the tale-rag container logs around the upload (look for the _record_failure / extraction warning).
With that string I can pin the exact line. Leaving open pending the error output.
Activity
yannickmonney commentedon May 31, 2026
Triaged. DOCX and XLSX are supported by the RAG indexer (
.docxvia python-docx,.xlsxvia openpyxl), so "Index failed" for these isn't a missing-format gap — it points to a runtime cause. The usual culprits are: the RAG service being unreachable, an embedding-provider error, a corrupt/empty file, or the secret-scanner rejecting the file.To diagnose, could you share a sample failing
.docx/.xlsx(or its characteristics) and the RAG service logs around the failure (docker logsfor the rag container)? Downgrading priority from high to medium pending repro data. Assigned to me; leaving open.yannickmonney commentedon Jun 1, 2026
Needs investigation in the RAG service. "Index Failed" for supported DOCX/XLSX is a server-side parsing/indexing failure (
services/rag/app/routers/documents.py+ the extraction pipeline), distinct from upload validation. To pin it I need the rag-service error logs for a failing DOCX/XLSX (which extractor raised, and on which file). Related indexing reports: #1457. Will trace against the extraction pipeline once a failing sample + log is available; keeping assigned.yannickmonney commentedon Jun 1, 2026
For the record, confirming the code analysis: DOCX and XLSX are supported end-to-end. They're in
SUPPORTED_EXTENSIONS(services/rag/app/routers/documents.py) and routed to dedicated extractors (packages/tale_knowledge/.../extraction/router.py→docx.pyvia python-docx,xlsx.pyvia openpyxl). The "Index failed" badge is produced when_background_ingestcatches an exception fromrag_service.add_documentand recordsstatus='failed'— so this is a server-side ingestion failure (corrupt/empty file, embedding-provider error, RAG service unreachable, or secret-scanner rejection), not a missing-format or upload-validation issue.To unblock diagnosis, please attach the failing sample
.docx/.xlsxand theragcontainer logs around the failure (which extractor raised). Tracking alongside #1457 (same "Index failed" symptom for PDF). Keeping open.yannickmonney commentedon Jun 2, 2026
Traced the extraction path end-to-end at the code level — the obvious suspects are all clean, so this is a runtime failure that needs the captured error to localize. What I verified:
services/rag/app/routers/documents.pySUPPORTED_EXTENSIONSincludes.docxand.xlsx(and the 400 "unsupported extension" path is not hit).tale_knowledge/extraction/router.pydispatches.docx → extract_text_from_docx_bytesand.xlsx → extract_text_from_xlsx_bytes, and both return the tuple shape the router expects.python-docx,openpyxl, andpython-pptxare core[project].dependenciesoftale_knowledge(not an optional extra), andservices/ragdepends ontale-knowledge— so they're in the image.Since both Office formats fail together while PDF/text presumably index fine, the failure is downstream of routing — most likely an exception during extraction or the chunk→embed step, which
documents.py::_record_failurecatches and stores in thedocuments.errorcolumn (surfaced to the UI as the file'sragError/ the "Index failed" badge).To localize, we need that stored error, which the report didn't include. Could you grab one of:
errorcolumn for a failed row (SELECT filename, status, error FROM <schema>.documents WHERE status = 'failed' ORDER BY ... LIMIT 5;), ortale-ragcontainer logs around the upload (look for the_record_failure/ extraction warning).With that string I can pin the exact line. Leaving open pending the error output.