Ask a question to get started
Enter to sendā¢Shift+Enter new line
on_retriever_end( self, documents: Sequence[Document], *, run_id: UUID, parent_run_id:
documents
Sequence[Document]
Sequence of Document objects returned by the retriever.
Document
run_id
UUID
Unique identifier for this retriever run.
parent_run_id
Optional[UUID]
None
**kwargs
Any
{}
Record retriever results and close the span.
Formats retrieved documents and stores them as the gen_ai.retriever.results span attribute.
gen_ai.retriever.results
Run ID of the parent chain, if any.
Additional LangChain callback keyword arguments.