Open PsychicBirdy opened 11 months ago
Sounds like a great idea. Right now I only provide link to source document, but a link to chunks and meta data would be useful I agree.
Thanks a lot for looking at it! Being able to access those snippets would also make replies much more transparent and comprehensible, the one thing basic chatbot replies are currently missing.
It's maximally hidden in accordion, and has the actual snippets now. I'll add other metadata soon.
I tested it and it looks good. Thanks a lot for implementing this! The accordion is a good idea so it doesn't get too cluttered. Now I'm only missing the page number and a switch to deactivate the linking to the document.
FYI @PsychicBirdy you can see full meta data from database here, although not in references yet:
@PsychicBirdy
I added the switch to show url or not. Before:
with --show_link_in_sources=False
Looks good. However, I thought of the switch in a different way: When set to False, I would keep the path and filename - without them the other source information is kind of vague - and only remove the linking to the files. So for example "user_path_many/HAI_AI-Index_Report2023(2).pdf" is still shown, but you cannot click on it anymore, disabling the possibility to download files.
Hi, congrats to such a well-conceived app. I have a feature request. Currently when using sources, h2oGPT adds to its reply a score and a link to each document used. What I would like to see added here: