mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 10:55:29 +00:00
The chat "Sources (N documents)" block listed each RAG source only by its stored filename and similarity. Converted Office files showed the internal markitdown name (Deck.pptx.md) instead of the original (Deck.pptx), and there was no indication of which project/org a source belonged to. The injected retrieval context carried no provenance either, so the model could not attribute snippets (#5666). - src/markitdown_runtime.py: add original_filename() to strip the .md suffix markitdown adds to converted Office files; hand-authored .md is left untouched (its stem has no converted extension). - src/chat_processor.build_context_preface: cite the original filename, add project/org to each rag_source when present, and weave provenance into the injected retrieval context so the model can attribute snippets. - static/js/chat.js + chatRenderer.js: render project/org as chips in both the live and persisted sources renderers, kept in sync. - static/style.css: .rag-source-tag chip reusing the existing --fg tokens (no new palette). Backwards-compatible: sources without project/org render exactly as today. Adds tests/test_rag_source_bibliography.py covering original_filename and the present/absent provenance paths. Fixes #5666 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fonts | ||
| icons | ||
| js | ||
| lib | ||
| app.js | ||
| icon.ico | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| modal-control-variants.html | ||
| style.css | ||
| sw.js | ||
| wave-variants.html | ||
| whirlpool-variants.html | ||