Skip to main content

asimilarity

AsyncMethod
This is a method of the EmbeddingAgent class in the embedding_agent module.
Async version of similarity().

Signature

async def asimilarity(text1: str, text2: str, model: Optional[str]) -> float

Parameters

text1
str
required
No description available.
text2
str
required
No description available.
model
Optional
No description available.

Returns

Returns
float
The result of the operation.