Issue with RETRIEVER Trace Logging for Input Value
I am running a RETRIEVER trace. Somehow it fails to log the trace for input.value , although the traces for documents are getting logged properly. See the traces in the screenshot. Is there a reason why it fails to trace input.value ?
span.set_attribute("openinference.span.kind", "RETRIEVER")
span.set_attribute("input.value", "This is the query")
documents = []
for node in nodes:
documents.append(
{"document.id": node.node_id, "document.content": node.text, "document.score": node.score}
)
for i, obj in enumerate(documents):
for key, value in obj.items():
span.set_attribute(f"retrieval.documents.{i}.{key}", value)