test_qdrant_from_texts_stores_embeddings_as_named_vectors() — langchain Function Reference
Architecture documentation for the test_qdrant_from_texts_stores_embeddings_as_named_vectors() function in test_from_texts.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e60c5206_7ad6_9058_0c82_34f1e2020eb0["test_qdrant_from_texts_stores_embeddings_as_named_vectors()"] a57b717d_2d4d_3890_29a0_1fe4629dbfac["test_from_texts.py"] e60c5206_7ad6_9058_0c82_34f1e2020eb0 -->|defined in| a57b717d_2d4d_3890_29a0_1fe4629dbfac style e60c5206_7ad6_9058_0c82_34f1e2020eb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/test_from_texts.py lines 67–87
def test_qdrant_from_texts_stores_embeddings_as_named_vectors(vector_name: str) -> None:
"""Test end to end Qdrant.from_texts stores named vectors if name is provided."""
from qdrant_client import QdrantClient
collection_name = uuid.uuid4().hex
with tempfile.TemporaryDirectory() as tmpdir:
vec_store = Qdrant.from_texts(
["lorem", "ipsum", "dolor", "sit", "amet"],
ConsistentFakeEmbeddings(),
collection_name=collection_name,
path=str(tmpdir),
vector_name=vector_name,
)
del vec_store
client = QdrantClient(path=str(tmpdir))
assert client.count(collection_name).count == 5
assert all(
vector_name in point.vector # type: ignore[operator]
for point in client.scroll(collection_name, with_vectors=True)[0]
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_qdrant_from_texts_stores_embeddings_as_named_vectors() do?
test_qdrant_from_texts_stores_embeddings_as_named_vectors() 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_embeddings_as_named_vectors() defined?
test_qdrant_from_texts_stores_embeddings_as_named_vectors() is defined in libs/partners/qdrant/tests/integration_tests/test_from_texts.py at line 67.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free