https://gitlab.synchro.net/main/sbbs/-/commit/4df41adbbcf65978170b2e72
Modified Files:
exec/llm_index/msgs.js
Log Message:
llm_index/msgs: surface a post's first URL as a citable source line
Message-base provenance carries no canonical URL (unlike wiki chunks,
which get "Cite this URL verbatim:" from format_retrieved_context), so an answer grounded in an announcement could state the facts but had no link
to cite -- e.g. a SyncTERM release answer trailing off at "see the release notes: " with nothing after.
Extract the first http(s) URL from the post body and prepend it as a
"Cite this URL verbatim:" line into the chunk text (which the runtime
emits verbatim, so no engine change is needed -- a re-index suffices).
De-dupes a doubled scheme ("
https://https://", seen in a real syncanno
post) and trims trailing punctuation.
Co-Authored-By: Claude Opus 4.8 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net