_load_rapidfuzz() — langchain Function Reference
Architecture documentation for the _load_rapidfuzz() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ac6fe838_c77f_81da_f1ac_423d171d46ac["_load_rapidfuzz()"] e8a12ac8_a98d_9b97_548e_a57588a0d3dc["base.py"] ac6fe838_c77f_81da_f1ac_423d171d46ac -->|defined in| e8a12ac8_a98d_9b97_548e_a57588a0d3dc acfebc1d_25d5_7138_1671_16ea528e5c1d["validate_dependencies()"] acfebc1d_25d5_7138_1671_16ea528e5c1d -->|calls| ac6fe838_c77f_81da_f1ac_423d171d46ac style ac6fe838_c77f_81da_f1ac_423d171d46ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/string_distance/base.py lines 21–38
def _load_rapidfuzz() -> Any:
"""Load the RapidFuzz library.
Raises:
ImportError: If the rapidfuzz library is not installed.
Returns:
The `rapidfuzz.distance` module.
"""
try:
import rapidfuzz
except ImportError as e:
msg = (
"Please install the rapidfuzz library to use the FuzzyMatchStringEvaluator."
"Please install it with `pip install rapidfuzz`."
)
raise ImportError(msg) from e
return rapidfuzz.distance
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _load_rapidfuzz() do?
_load_rapidfuzz() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py.
Where is _load_rapidfuzz() defined?
_load_rapidfuzz() is defined in libs/langchain/langchain_classic/evaluation/string_distance/base.py at line 21.
What calls _load_rapidfuzz()?
_load_rapidfuzz() is called by 1 function(s): validate_dependencies.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free