Home / Function/ map() — langchain Function Reference

map() — langchain Function Reference

Architecture documentation for the map() function in string_run_evaluator.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  18ce5ec1_b967_6417_c994_9209a57f1c14["map()"]
  6513456f_be2b_21ef_06af_21023f648595["StringRunMapper"]
  18ce5ec1_b967_6417_c994_9209a57f1c14 -->|defined in| 6513456f_be2b_21ef_06af_21023f648595
  ea8529de_857a_cafc_0859_f6156a883f15["__call__()"]
  ea8529de_857a_cafc_0859_f6156a883f15 -->|calls| 18ce5ec1_b967_6417_c994_9209a57f1c14
  f56f231b_b6eb_b4a1_5171_9aa21c13ee17["__call__()"]
  f56f231b_b6eb_b4a1_5171_9aa21c13ee17 -->|calls| 18ce5ec1_b967_6417_c994_9209a57f1c14
  eeef200b_d96b_43d0_3074_30604390fe0c["map()"]
  18ce5ec1_b967_6417_c994_9209a57f1c14 -->|calls| eeef200b_d96b_43d0_3074_30604390fe0c
  style 18ce5ec1_b967_6417_c994_9209a57f1c14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py lines 47–48

    def map(self, run: Run) -> dict[str, str]:
        """Maps the Run to a dictionary."""

Domain

Subdomains

Calls

Frequently Asked Questions

What does map() do?
map() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py.
Where is map() defined?
map() is defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py at line 47.
What does map() call?
map() calls 1 function(s): map.
What calls map()?
map() is called by 2 function(s): __call__, __call__.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free