Home / Function/ fake_vectorstore() — langchain Function Reference

fake_vectorstore() — langchain Function Reference

Architecture documentation for the fake_vectorstore() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  9a464e18_0476_da76_ad12_23e62fc540f8["fake_vectorstore()"]
  d1736cc5_5d04_ec6a_a15a_4a8a730c63dd["test_base.py"]
  9a464e18_0476_da76_ad12_23e62fc540f8 -->|defined in| d1736cc5_5d04_ec6a_a15a_4a8a730c63dd
  style 9a464e18_0476_da76_ad12_23e62fc540f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py lines 95–108

def fake_vectorstore() -> InMemoryVectorstoreWithSearch:
    vectorstore = InMemoryVectorstoreWithSearch()
    vectorstore.add_documents(
        [
            Document(
                page_content="test",
                metadata={
                    "foo": "bar",
                },
            ),
        ],
        ids=["test"],
    )
    return vectorstore

Domain

Subdomains

Frequently Asked Questions

What does fake_vectorstore() do?
fake_vectorstore() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py.
Where is fake_vectorstore() defined?
fake_vectorstore() is defined in libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py at line 95.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free