Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
similarity
Method
This is a method of the EmbeddingAgent class in the embedding_agent module.Calculate cosine similarity between two texts.
Signature
Parameters
First text
Second text
Override model for this call **kwargs: Additional parameters
Returns
Cosine similarity score (0.0 to 1.0)
Usage
Uses
embed_batch
Source
View on GitHub
praisonaiagents/agent/embedding_agent.py at line 266
