-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Citations improvement; Fix regressions from adding image support (#76)
* Fixing validations of checking file type * Regression Fixes: 1. Added page number for parsing and opening pdfs 2. Added all user text messages to context retrieval query 3. Added citation number to final list of sources. 4. Maintaining a cache for links and creating them in real time instead of prefetching every link. * Fix regex escape issue in Chat component and prevent multiple stream closures - Escaped special characters in regex pattern to correctly match filenames in Chat.tsx. - Added flag to track and prevent multiple closures of the ReadableStream avoiding 'stream already closed' errors. * Fixed regression issues 1. No message in retrieval API fixed 2. Caching and citation link generation improvement 3. Handle stream to shut it down gracefully on last chunk 4. Commented some debugging logs to keep the console clear * Commenting debug logs * Commented another log * Regression fixes: 1. Fixed changes incorrectly merged from main 2. Fixed clickable introductory statements introduced from image support PR 3. Removed unused and commented code
- Loading branch information
1 parent
9d755ce
commit 44aeb80
Showing
7 changed files
with
215 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
44aeb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
uiuc-chat – ./
uiuc-chat-git-main-kastanday.vercel.app
www.illinois.guru
uiuc-chat-kastanday.vercel.app
learning-t3.vercel.app
www.uiuc.chat
illinois.guru
*.uiuc.chat