get_output_schema() — langchain Function Reference
Architecture documentation for the get_output_schema() function in map_rerank.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 75727667_b3f3_4021_f4ed_db40757fde23["get_output_schema()"] ee80b7d6_d087_8cc2_13e6_51659dee89b4["MapRerankDocumentsChain"] 75727667_b3f3_4021_f4ed_db40757fde23 -->|defined in| ee80b7d6_d087_8cc2_13e6_51659dee89b4 style 75727667_b3f3_4021_f4ed_db40757fde23 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/combine_documents/map_rerank.py lines 95–107
def get_output_schema(
self,
config: RunnableConfig | None = None,
) -> type[BaseModel]:
schema: dict[str, Any] = {
self.output_key: (str, None),
}
if self.return_intermediate_steps:
schema["intermediate_steps"] = (list[str], None)
if self.metadata_keys:
schema.update(dict.fromkeys(self.metadata_keys, (Any, None)))
return create_model("MapRerankOutput", **schema)
Domain
Subdomains
Source
Frequently Asked Questions
What does get_output_schema() do?
get_output_schema() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/combine_documents/map_rerank.py.
Where is get_output_schema() defined?
get_output_schema() is defined in libs/langchain/langchain_classic/chains/combine_documents/map_rerank.py at line 95.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free