Hi there, I'd like to know if there's a way through the API to get the sources (files) that have been used for the different parts of the answer (e.g. if the answer is 7 sentences long and used 3 sources, I'd like to know what source helped with what sentence.
Thanks Guillaume Duvernay for the question! I don't think this info is available through the API but let me check with the team just in case 😊
Or a way to have a little [1] in the middle of a sentence with the same [1] somewhere else in the response JSON so we can map it afterwards?
Hi, you should see something like :cite[ad] that would refer to the source with the id 'ad' that should also appear in the API answer 👍
Thanks for the reply Alban! In my tests I couldn't see the way to map that to the exact part of the answer in the case of a long answer using multiple sources. Did I miss something?
Guillaume, you should see the citations very close to the part of the response that they relate to. e.g. "Some information :cite[bq] some other information :cite[cc] etc...". And then this two letter code should match the reference field from one of the documents listed in the documents section for the retrieval_action action. What are you seeing?
Hi David Ebbo, I've looked again into it and I managed to find these ":cite[xx]" elements and the link to their source. This is super useful and solves my need 🙂
