Skip to content

Chat: answer general questions instead of deflecting to sources - #5

Merged
FishPain merged 1 commit into
mainfrom
fix/chat-generic-questions
Oct 13, 2026
Merged

FishPain merged 1 commit into
mainfrom
fix/chat-generic-questions

Conversation

@FishPain

Copy link
Copy Markdown
Owner

Generic questions (e.g. "what is an apple?") were deflected with 'the provided sources don't contain this' + an irrelevant citation chip, because the system prompt forced answer-only-from-sources.

Fix: reworked the chat prompt so the model grounds + cites when the question relates to the saved sources, and otherwise answers normally from general knowledge without mentioning the sources. Combined with the existing cite-only-what-you-use filter, irrelevant source chips no longer appear on general answers. Tests unchanged (4 pass).

… sources

The prompt forced answer-only-from-sources, so a generic question ("what is an
apple?") got a 'the sources don't contain this' deflection plus an irrelevant
citation. Now: ground + cite when the question relates to the sources, otherwise
answer from general knowledge without mentioning the sources.
@FishPain
FishPain merged commit 6c32e9f into main Oct 13, 2026
3 checks passed
@FishPain
FishPain deleted the fix/chat-generic-questions branch October 13, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant