Invoking with retrieval
When using Invoke a Deployment, use the optional fieldinclude_retrievals to embed the retrieval chunks within the response payload.
Here are examples on how to use the include_retrievals field in the invoke_options object in your queries payload.
retrievals as follow

The retrieval results will be embedded in the retrieval_metadata field, they contain the document details as well as metadata related to the file and search score.
Retrievals will contain an array of chunks Each chunk holds the source details and scores (search and re-ranking).