test_qdrant_from_texts_stores_metadatas() — langchain Function Reference
Architecture documentation for the test_qdrant_from_texts_stores_metadatas() function in test_from_texts.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 39051fb8_c4d1_2e89_6449_f4a723b896a2["test_qdrant_from_texts_stores_metadatas()"] 911ffb0f_3570_ae90_9ff9_2c9c03151aea["test_from_texts.py"] 39051fb8_c4d1_2e89_6449_f4a723b896a2 -->|defined in| 911ffb0f_3570_ae90_9ff9_2c9c03151aea style 39051fb8_c4d1_2e89_6449_f4a723b896a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_from_texts.py lines 318–344
def test_qdrant_from_texts_stores_metadatas(
location: str,
content_payload_key: str,
metadata_payload_key: str,
vector_name: str,
retrieval_mode: RetrievalMode,
sparse_vector_name: str,
) -> None:
"""Test end to end construction and search."""
texts = ["fabrin", "barizda"]
metadatas = [{"page": i} for i in range(len(texts))]
docsearch = QdrantVectorStore.from_texts(
texts,
ConsistentFakeEmbeddings(),
metadatas=metadatas,
location=location,
content_payload_key=content_payload_key,
metadata_payload_key=metadata_payload_key,
vector_name=vector_name,
retrieval_mode=retrieval_mode,
sparse_vector_name=sparse_vector_name,
sparse_embedding=ConsistentFakeSparseEmbeddings(),
)
output = docsearch.similarity_search("fabrin", k=1)
assert_documents_equals(
output, [Document(page_content="fabrin", metadata={"page": 0})]
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_qdrant_from_texts_stores_metadatas() do?
test_qdrant_from_texts_stores_metadatas() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_from_texts.py.
Where is test_qdrant_from_texts_stores_metadatas() defined?
test_qdrant_from_texts_stores_metadatas() is defined in libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_from_texts.py at line 318.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free