How to get specific response type with File Search – API


I have an Assistant which I have built using a custom dataset and Retrieval (now called File Search).

The dataset contains a set of resources with the following structure:

[
{
“Title”: Title1,
“Description”: Description1,
“Text”: Text1,
“URL”: “https://www.url1.com/
},

]

The File Search feature works great at generating very accurate responses using entries in “Text”. However, I would also like it to proivde the “URL” corresponding to “Text” if requested by the user. Currently the responses will not contain the “URL” corresponding to the “Text” that was used to generate the response.

What is the best way to do this? Can this be handled with modifying my prompt and describing the dataset, or should I use fine-tuning?

At this point I don’t want to leverage something like RAG with an external database to add on the URL in the response, maybe we handle that in the next version. For now I just want to leverage the built-in features in the Assistants.

Are you including in the Assistant’s instructions to include the corresponding url?



Source link

Leave a Comment