1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
I have been testing a workshop which uses Retrieve and Generate, seems to work pretty well. Maybe you can gather some hints from the lambda python code being used in this step. I am assuming you already referred this documentation which has examples.
Hope this helps!
Thanks, Rama
answered 19 days ago
Relevant content
- asked 6 months ago
- asked 4 months ago
- Accepted Answerasked 24 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
Thanks for the response. Actually I am able to get the answer from the retrieve and generate response. But unable to get the citations for that answer.
I tried to use the default boto3 version in lambda python runtime which is boto3 1.34.42 and this is able to give both answer and citations in response. But it doesn't accept "generationConfiguration" and "retrievalConfiguration" parameters in request. So custom prompt and number of vector search results cannot be provided. Answer is also not mapped to the source documents.
"generationConfiguration" and "retrievalConfiguration" parameters are acceptable in boto3 1.34.78 or above. But here the retrieve and generate response doesn't provide the citations. It is just showing an empty list for retrievedReferences. But the answer is being mapped with the source docs.
Requirement is to get the answer-source mapping, use custom prompt and get cited source text.
In this case, I would suggest you to please check if there are any similar issues being discussed here. If not, suggest raising it.