TestWithoutGetByIdVectorStore Class — langchain Architecture
Architecture documentation for the TestWithoutGetByIdVectorStore class in test_in_memory_vectorstore.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD dabf7d4c_772a_cde1_f71c_a55ae6610ce5["TestWithoutGetByIdVectorStore"] dd52cc1a_cb37_0117_3b1e_0889a7228307["VectorStoreIntegrationTests"] dabf7d4c_772a_cde1_f71c_a55ae6610ce5 -->|extends| dd52cc1a_cb37_0117_3b1e_0889a7228307 db4e2a64_0e6d_f974_5f03_34a4eed7f6da["test_in_memory_vectorstore.py"] dabf7d4c_772a_cde1_f71c_a55ae6610ce5 -->|defined in| db4e2a64_0e6d_f974_5f03_34a4eed7f6da 3ebf09f0_27cd_f50b_63b8_ed145da1e2ef["vectorstore()"] dabf7d4c_772a_cde1_f71c_a55ae6610ce5 -->|method| 3ebf09f0_27cd_f50b_63b8_ed145da1e2ef 93bc05e5_7d23_3cab_0a15_5a92cc048e56["has_get_by_ids()"] dabf7d4c_772a_cde1_f71c_a55ae6610ce5 -->|method| 93bc05e5_7d23_3cab_0a15_5a92cc048e56 e3210d3d_abda_3729_0ed8_efd67eb8656f["test_get_by_ids_fails()"] dabf7d4c_772a_cde1_f71c_a55ae6610ce5 -->|method| e3210d3d_abda_3729_0ed8_efd67eb8656f
Relationship Graph
Source Code
libs/standard-tests/tests/unit_tests/test_in_memory_vectorstore.py lines 25–40
class TestWithoutGetByIdVectorStore(VectorStoreIntegrationTests):
@pytest.fixture
def vectorstore(self) -> VectorStore:
embeddings = self.get_embeddings()
return WithoutGetByIdsVectorStore(embedding=embeddings)
@property
def has_get_by_ids(self) -> bool:
return False
def test_get_by_ids_fails(self, vectorstore: VectorStore) -> None:
with pytest.raises(
NotImplementedError,
match="WithoutGetByIdsVectorStore does not yet support get_by_ids",
):
vectorstore.get_by_ids(["id1", "id2"])
Extends
Source
Frequently Asked Questions
What is the TestWithoutGetByIdVectorStore class?
TestWithoutGetByIdVectorStore is a class in the langchain codebase, defined in libs/standard-tests/tests/unit_tests/test_in_memory_vectorstore.py.
Where is TestWithoutGetByIdVectorStore defined?
TestWithoutGetByIdVectorStore is defined in libs/standard-tests/tests/unit_tests/test_in_memory_vectorstore.py at line 25.
What does TestWithoutGetByIdVectorStore extend?
TestWithoutGetByIdVectorStore extends VectorStoreIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free