test_embeddings_property_dense_mode() — langchain Function Reference
Architecture documentation for the test_embeddings_property_dense_mode() function in test_search.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bf5f9808_f808_08a9_5a09_1864f094dac7["test_embeddings_property_dense_mode()"] 7105a1c4_0f67_8c01_efc7_d00363a3ed66["test_search.py"] bf5f9808_f808_08a9_5a09_1864f094dac7 -->|defined in| 7105a1c4_0f67_8c01_efc7_d00363a3ed66 style bf5f9808_f808_08a9_5a09_1864f094dac7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_search.py lines 333–346
def test_embeddings_property_dense_mode(location: str) -> None:
"""Test that embeddings property returns embedding object in DENSE mode."""
# Use from_texts to create the vectorstore, which handles collection creation
texts = ["test document"]
embedding = ConsistentFakeEmbeddings()
vectorstore = QdrantVectorStore.from_texts(
texts,
embedding=embedding,
location=location,
retrieval_mode=RetrievalMode.DENSE,
)
# In DENSE mode, embeddings should return the embedding object
assert vectorstore.embeddings is embedding
Domain
Subdomains
Source
Frequently Asked Questions
What does test_embeddings_property_dense_mode() do?
test_embeddings_property_dense_mode() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_search.py.
Where is test_embeddings_property_dense_mode() defined?
test_embeddings_property_dense_mode() is defined in libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_search.py at line 333.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free