_asimilarity_search_with_relevance_scores() — langchain Function Reference
Architecture documentation for the _asimilarity_search_with_relevance_scores() function in vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 796f155d_8fcc_1034_c7ea_35e77a763ac6["_asimilarity_search_with_relevance_scores()"] 2d095452_70a7_4606_a1b1_4650d16b5343["Qdrant"] 796f155d_8fcc_1034_c7ea_35e77a763ac6 -->|defined in| 2d095452_70a7_4606_a1b1_4650d16b5343 0bfb6a9a_e62a_ca13_35c1_984eee7bf4a4["asimilarity_search_with_score()"] 796f155d_8fcc_1034_c7ea_35e77a763ac6 -->|calls| 0bfb6a9a_e62a_ca13_35c1_984eee7bf4a4 style 796f155d_8fcc_1034_c7ea_35e77a763ac6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/langchain_qdrant/vectorstores.py lines 1995–2017
async def _asimilarity_search_with_relevance_scores(
self,
query: str,
k: int = 4,
**kwargs: Any,
) -> list[tuple[Document, float]]:
"""Return docs and relevance scores in the range `[0, 1]`.
`0` is dissimilar, `1` is most similar.
Args:
query: input text
k: Number of Documents to return.
**kwargs: Kwargs to be passed to similarity search.
Should include `score_threshold`, an optional floating point value
between `0` to `1` to filter the resulting set of retrieved docs.
Returns:
List of tuples of `(doc, similarity_score)`
"""
return await self.asimilarity_search_with_score(query, k, **kwargs)
Domain
Subdomains
Source
Frequently Asked Questions
What does _asimilarity_search_with_relevance_scores() do?
_asimilarity_search_with_relevance_scores() is a function in the langchain codebase, defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py.
Where is _asimilarity_search_with_relevance_scores() defined?
_asimilarity_search_with_relevance_scores() is defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py at line 1995.
What does _asimilarity_search_with_relevance_scores() call?
_asimilarity_search_with_relevance_scores() calls 1 function(s): asimilarity_search_with_score.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free