odysseus/static
wbaxterh 7dca3f801e feat(rag): show original filenames and project/org tags in chat sources
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>
2026-08-01 18:05:07 -07:00
..
fonts feat(a11y): add a Text size control and an OpenDyslexic font option (#4210) 2026-06-22 13:53:46 +02:00
icons Cookbook model workflow fixes 2026-06-21 11:02:35 +00:00
js feat(rag): show original filenames and project/org tags in chat sources 2026-08-01 18:05:07 -07:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
icon.ico feat(launcher): add portable windows launcher (#976) 2026-06-16 04:58:16 +01:00
index.html Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
login.html fix(auth): centralize password and username validation constants (#4120) 2026-06-16 09:52:15 +02:00
manifest.json pwa missing icons added (#428) 2026-06-15 16:00:13 +09:00
modal-control-variants.html Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
style.css feat(rag): show original filenames and project/org tags in chat sources 2026-08-01 18:05:07 -07:00
sw.js Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
wave-variants.html Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
whirlpool-variants.html Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00