Skip to content

feat: warn users when answer not supported by uploaded files #399

Open
rameest2277 wants to merge 1 commit into
imDarshanGK:mainfrom
rameest2277:main
Open

feat: warn users when answer not supported by uploaded files #399
rameest2277 wants to merge 1 commit into
imDarshanGK:mainfrom
rameest2277:main

Conversation

@rameest2277

Copy link
Copy Markdown

Problem
The AI was generating answers not supported by uploaded documents. Users assumed answers were factual which could lead to misinformation.

Solution

  • Added warning detection in rag_service.py
  • If no documents support the answer, a warning is returned
  • Warning is displayed in ChatWindow.jsx with yellow styling

Files Changed

  • backend/services/rag_service.py
  • backend/routes/chat.py
  • frontend/src/components/ChatWindow.jsx

Closes #379

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

@rameest2277 is attempting to deploy a commit to the Darshan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@imDarshanGK

Copy link
Copy Markdown
Owner

@rameest2277 resolve conflicts

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.

[FEATURE] Warn Users When Answers Are Not Supported by Uploaded Files

2 participants