test_qdrant_from_texts_stores_ids() — langchain Function Reference
Architecture documentation for the test_qdrant_from_texts_stores_ids() function in test_from_texts.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9ed12f35_c281_6461_277a_0ba52f08ad8e["test_qdrant_from_texts_stores_ids()"] 7804b385_c130_47e1_2a48_71d688ae0935["test_from_texts.py"] 9ed12f35_c281_6461_277a_0ba52f08ad8e -->|defined in| 7804b385_c130_47e1_2a48_71d688ae0935 style 9ed12f35_c281_6461_277a_0ba52f08ad8e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/async_api/test_from_texts.py lines 39–61
async def test_qdrant_from_texts_stores_ids(
batch_size: int, vector_name: str | None, qdrant_location: str
) -> None:
"""Test end to end Qdrant.afrom_texts stores provided ids."""
collection_name = uuid.uuid4().hex
ids = [
"fa38d572-4c31-4579-aedc-1960d79df6df",
"cdc1aa36-d6ab-4fb2-8a94-56674fd27484",
]
vec_store = await Qdrant.afrom_texts(
["abc", "def"],
ConsistentFakeEmbeddings(),
ids=ids,
collection_name=collection_name,
batch_size=batch_size,
vector_name=vector_name,
location=qdrant_location,
)
client = vec_store.client
assert client.count(collection_name).count == 2
stored_ids = [point.id for point in client.scroll(collection_name)[0]]
assert set(ids) == set(stored_ids)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_qdrant_from_texts_stores_ids() do?
test_qdrant_from_texts_stores_ids() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/async_api/test_from_texts.py.
Where is test_qdrant_from_texts_stores_ids() defined?
test_qdrant_from_texts_stores_ids() is defined in libs/partners/qdrant/tests/integration_tests/async_api/test_from_texts.py at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free