_evaluate_strings() — langchain Function Reference
Architecture documentation for the _evaluate_strings() function in json_schema.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 810f2cc6_5067_feaf_c5ea_268fbeb54aeb["_evaluate_strings()"] 9babfe39_52f2_aa6b_17f6_a55234538495["JsonSchemaEvaluator"] 810f2cc6_5067_feaf_c5ea_268fbeb54aeb -->|defined in| 9babfe39_52f2_aa6b_17f6_a55234538495 17e51faf_bcc2_97a0_f42a_9ca542b6bfaf["_parse_json()"] 810f2cc6_5067_feaf_c5ea_268fbeb54aeb -->|calls| 17e51faf_bcc2_97a0_f42a_9ca542b6bfaf 8b7d5d13_c859_2d6b_d657_495032d846c5["_validate()"] 810f2cc6_5067_feaf_c5ea_268fbeb54aeb -->|calls| 8b7d5d13_c859_2d6b_d657_495032d846c5 style 810f2cc6_5067_feaf_c5ea_268fbeb54aeb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/parsing/json_schema.py lines 88–97
def _evaluate_strings(
self,
prediction: str | Any,
input: str | Any = None,
reference: str | Any = None,
**kwargs: Any,
) -> dict:
parsed_prediction = self._parse_json(prediction)
schema = self._parse_json(reference)
return self._validate(parsed_prediction, schema)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _evaluate_strings() do?
_evaluate_strings() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/parsing/json_schema.py.
Where is _evaluate_strings() defined?
_evaluate_strings() is defined in libs/langchain/langchain_classic/evaluation/parsing/json_schema.py at line 88.
What does _evaluate_strings() call?
_evaluate_strings() calls 2 function(s): _parse_json, _validate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free