OpenTelemetry SDK
    Preparing search index...

    Variable ATTR_GEN_AI_RETRIEVAL_DOCUMENTSConst Experimental

    ATTR_GEN_AI_RETRIEVAL_DOCUMENTS: "gen_ai.retrieval.documents" = ...

    The documents retrieved.

    [
    {
    "id": "doc_123",
    "score": 0.95
    },
    {
    "id": "doc_456",
    "score": 0.87
    },
    {
    "id": "doc_789",
    "score": 0.82
    }
    ]

    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

    This attribute is experimental and is subject to breaking changes in minor releases of @opentelemetry/semantic-conventions.