Answers endpoint- understanding document "ID"

Hello,
When using the answers API endpoint, the object returns the answer, as well as the list of documents ranked by score.
Can you please explain if the document number returned is somehow related to the order in the jsonl file? Specifically, I would like to identify the most relevant document in order to trace the same back upstream from where the documents came from.

1 Like

metadata isn’t returned from the end point. Am I missing something?

1 Like

Doh, I feel like an idiot now.

Many thanks, works like a charm. Missed that parameter entirely in the documentation.

1 Like