{"source":"semconv","version":"1.44.0","attribute":{"id":"gen_ai.retrieval.documents","type":"any","stability":"development","brief":"The documents retrieved.","note":"Instrumentations MUST follow [Retrieval documents JSON schema](https://github.com/open-telemetry/semantic-conventions/blob/v1.41.0/docs/gen-ai/gen-ai-retrieval-documents.json).\nWhen the attribute is recorded on events, it MUST be recorded in structured\nform. When recorded on spans, it MAY be recorded as a JSON string if structured\nformat is not supported and SHOULD be recorded in structured form otherwise.\n\nEach document object SHOULD contain at least the following properties:\n`id` (string): A unique identifier for the document, `score` (double): The relevance score of the document","examples":["[\n  {\n    \"id\": \"doc_123\",\n    \"score\": 0.95\n  },\n  {\n    \"id\": \"doc_456\",\n    \"score\": 0.87\n  },\n  {\n    \"id\": \"doc_789\",\n    \"score\": 0.82\n  }\n]\n"],"deprecated":{"reason":"uncategorized","note":"Moved to the [OpenTelemetry GenAI semantic conventions repository](https://github.com/open-telemetry/semantic-conventions-genai)."},"namespace":"gen_ai","definedIn":"model/gen-ai/deprecated/registry-deprecated.yaml","usedBy":[{"groupId":"span.gen_ai.retrieval.client","groupType":"span","requirementLevel":"opt_in"}]},"history":[{"version":"1.40.0","publishedAt":"2026-02-19T17:50:21Z","kind":"first-seen","detail":"Added as development.","severity":"informational"},{"version":"1.42.0","publishedAt":"2026-06-12T21:03:17Z","kind":"deprecated","detail":"Moved to the [OpenTelemetry GenAI semantic conventions repository](https://github.com/open-telemetry/semantic-conventions-genai).","severity":"notable"}],"replaces":[]}