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 946f991b_0cf8_c15e_4784_7f51a9039bae["test_qdrant_from_texts_stores_ids()"] a57b717d_2d4d_3890_29a0_1fe4629dbfac["test_from_texts.py"] 946f991b_0cf8_c15e_4784_7f51a9039bae -->|defined in| a57b717d_2d4d_3890_29a0_1fe4629dbfac style 946f991b_0cf8_c15e_4784_7f51a9039bae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/test_from_texts.py lines 39–63
def test_qdrant_from_texts_stores_ids(batch_size: int, vector_name: str | None) -> None:
"""Test end to end Qdrant.from_texts stores provided ids."""
from qdrant_client import QdrantClient
collection_name = uuid.uuid4().hex
with tempfile.TemporaryDirectory() as tmpdir:
ids = [
"fa38d572-4c31-4579-aedc-1960d79df6df",
"cdc1aa36-d6ab-4fb2-8a94-56674fd27484",
]
vec_store = Qdrant.from_texts(
["abc", "def"],
ConsistentFakeEmbeddings(),
ids=ids,
collection_name=collection_name,
path=str(tmpdir),
batch_size=batch_size,
vector_name=vector_name,
)
del vec_store
client = QdrantClient(path=str(tmpdir))
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/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/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