test_qdrant_aadd_texts_stores_duplicated_texts() — langchain Function Reference
Architecture documentation for the test_qdrant_aadd_texts_stores_duplicated_texts() function in test_add_texts.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a2407247_d9ac_65cc_c60d_66e16a30ae16["test_qdrant_aadd_texts_stores_duplicated_texts()"] fa987b47_f67d_62d0_09e8_08022f943abe["test_add_texts.py"] a2407247_d9ac_65cc_c60d_66e16a30ae16 -->|defined in| fa987b47_f67d_62d0_09e8_08022f943abe style a2407247_d9ac_65cc_c60d_66e16a30ae16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py lines 35–58
async def test_qdrant_aadd_texts_stores_duplicated_texts(
vector_name: str | None, qdrant_location: str
) -> None:
"""Test end to end Qdrant.aadd_texts stores duplicated texts separately."""
from qdrant_client import QdrantClient
from qdrant_client.http import models as rest
client = QdrantClient(location=qdrant_location, api_key=API_KEY)
collection_name = uuid.uuid4().hex
vectors_config = rest.VectorParams(size=10, distance=rest.Distance.COSINE)
if vector_name is not None:
vectors_config = {vector_name: vectors_config} # type: ignore[assignment]
client.recreate_collection(collection_name, vectors_config=vectors_config)
vec_store = Qdrant(
client,
collection_name,
embeddings=ConsistentFakeEmbeddings(),
vector_name=vector_name,
)
ids = await vec_store.aadd_texts(["abc", "abc"], [{"a": 1}, {"a": 2}])
assert len(set(ids)) == 2
assert client.count(collection_name).count == 2
Domain
Subdomains
Source
Frequently Asked Questions
What does test_qdrant_aadd_texts_stores_duplicated_texts() do?
test_qdrant_aadd_texts_stores_duplicated_texts() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py.
Where is test_qdrant_aadd_texts_stores_duplicated_texts() defined?
test_qdrant_aadd_texts_stores_duplicated_texts() is defined in libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free