Chainlit / cookbook

Chainlit's cookbook repo
https://github.com/Chainlit/chainlit
713 stars 270 forks source link

How to create a link, or more information, to the source retrieved by OpenAI Assistant? #62

Open wodecki opened 7 months ago

wodecki commented 7 months ago

I run the OpenAI assistant as a retrieval over my documents. When I ask the question, it answers correctly, but the source provided is a non-clickable [{some_number}+source], see picture below:

image

How to make a bot to provide more precise information on the source (preferably document name/paragraph)?

willydouhard commented 7 months ago

I don't know if OpenAI assistant can provide a link to the source of the content of the source. You might want to check the tools invoked but your run. Maybe the retriever does provide the used source. Then you can use markdown ou the Text element to add a clickable link.

zjffdu commented 1 month ago

Similar question, does chainlit support to display link in response?