semconv.com

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

Used by

spans (1)

  • span.gen_ai.retrieval.client (opt-in)

* required on that signal.

History

  1. v1.42.0deprecated

    Moved to the OpenTelemetry GenAI semantic conventions repository.

  2. v1.40.0

    Added as development.

Definition sourceRegistry docsJSON