test_qdrant_similarity_search() — langchain Function Reference
Architecture documentation for the test_qdrant_similarity_search() function in test_similarity_search.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 475d0b57_42b3_4310_eb67_f11d9d1da05f["test_qdrant_similarity_search()"] 5b7f0668_b386_695d_06c0_77020a3462af["test_similarity_search.py"] 475d0b57_42b3_4310_eb67_f11d9d1da05f -->|defined in| 5b7f0668_b386_695d_06c0_77020a3462af style 475d0b57_42b3_4310_eb67_f11d9d1da05f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/test_similarity_search.py lines 19–37
def test_qdrant_similarity_search(
batch_size: int,
content_payload_key: str,
metadata_payload_key: str,
vector_name: str | None,
) -> None:
"""Test end to end construction and search."""
texts = ["foo", "bar", "baz"]
docsearch = Qdrant.from_texts(
texts,
ConsistentFakeEmbeddings(),
location=":memory:",
content_payload_key=content_payload_key,
metadata_payload_key=metadata_payload_key,
batch_size=batch_size,
vector_name=vector_name,
)
output = docsearch.similarity_search("foo", k=1)
assert_documents_equals(actual=output, expected=[Document(page_content="foo")])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_qdrant_similarity_search() do?
test_qdrant_similarity_search() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/test_similarity_search.py.
Where is test_qdrant_similarity_search() defined?
test_qdrant_similarity_search() is defined in libs/partners/qdrant/tests/integration_tests/test_similarity_search.py at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free