gen_ai.retrieval.documents
MovedGenAI registryanyas of v1.44.0
The documents retrieved.
Instrumentations MUST follow Retrieval documents JSON schema. When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.
Each document object SHOULD contain at least the following properties:
id (string): A unique identifier for the document, score (double): The relevance score of the document
Examples
- [ { "id": "doc_123", "score": 0.95 }, { "id": "doc_456", "score": 0.87 }, { "id": "doc_789", "score": 0.82 } ]
Used by
spans (1)
- span.gen_ai.retrieval.client (opt-in)
* required on that signal.
History
- v1.42.0deprecated
Moved to the OpenTelemetry GenAI semantic conventions repository.
Added as development.