LangChain Reference home page
Search...
โK
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
โI
Chat LangChain
What can I help with?
Enter
to send
ยท
Shift+Enter
new line
What are deep agents and how do I get started?
How do I build a React app around a Deep Agent?
How do I stream subagent output to my frontend with useStream?
Menu
Navigation
Projects
LangChain
LangChain Core
MCP Adapters
Standard Tests
Text Splitters
LangChain Classic
Overview
Agents
Callbacks
Chains
Chat models
Embeddings
Evaluation
Globals
Hub
Memory
Output parsers
Retrievers
Runnables
LangSmith
Storage
Language
Python
JavaScript
Theme
Light
Dark
Python
langchain-classic
evaluation
embedding_distance
base
EmbeddingDistance
Class
v1.5.2 (latest)
โ
Since v1.5
EmbeddingDistance
Copy
EmbeddingDistance
(
)
Bases
StrEnum
Attributes
View source on GitHub
Version History
attribute
COSINE
:
str
attribute
EUCLIDEAN
:
str
attribute
MANHATTAN
:
str
attribute
CHEBYSHEV
:
str
attribute
HAMMING
:
str
Embedding Distance Metric.