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
{{ message }}
Repository navigation
Make RAG citation style configurable (global setting) #793
MetadataAwareContentInjector (shared-jvm/src/main/kotlin/io/askimo/core/rag/MetadataAwareContentInjector.kt)
controls how source citations are formatted in RAG responses via CitationStyle
(MINIMAL / COMPACT / DETAILED). Today it's hardcoded to CitationStyle.COMPACT
in AiServiceBuilder.kt, with no way for users to change it. This issue proposes
exposing citation style as a global setting in Advanced Settings, consistent
with the existing useAbsolutePathInCitations toggle, rather than per-
ResourceCollection (collections can be mixed in a single query, and ResourceCollection is a synced/read-only-for-team-managed domain model, not a
presentation preference).
Implementation sketch
Add citationStyle: MetadataAwareContentInjector.CitationStyle = CitationStyle.COMPACT
to RagConfig (shared-jvm/.../config/AppConfig.kt), next to useAbsolutePathInCitations.
Wire it into AppConfig.updateRagField.
Pass AppConfig.rag.citationStyle into MetadataAwareContentInjector(...) in AiServiceBuilder.kt.
Add a dropdown UI control in AdvancedSettingsSection.kt (desktop-shared),
following the same pattern as memoryConfigurationSection's mode dropdown,
under a "RAG / Citations" subsection.
Activity
tomh539 commentedon Nov 1, 2026
Hi @haiphucnguyen , I can take this task if no one has not yet
haiphucnguyen commentedon Nov 1, 2026
Hi @tomh539 , welcome onboard! Assigned it to you