Home / Function/ test_get_by_ids_missing_async() — langchain Function Reference

test_get_by_ids_missing_async() — langchain Function Reference

Architecture documentation for the test_get_by_ids_missing_async() function in vectorstores.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f809b2e9_943d_547b_2219_91f8a24ebe94["test_get_by_ids_missing_async()"]
  6b7f515d_5b14_acff_3191_2493436e519d["VectorStoreIntegrationTests"]
  f809b2e9_943d_547b_2219_91f8a24ebe94 -->|defined in| 6b7f515d_5b14_acff_3191_2493436e519d
  c509032a_5234_60e4_9090_cf461c5a7aee["has_get_by_ids()"]
  f809b2e9_943d_547b_2219_91f8a24ebe94 -->|calls| c509032a_5234_60e4_9090_cf461c5a7aee
  style f809b2e9_943d_547b_2219_91f8a24ebe94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/integration_tests/vectorstores.py lines 724–751

    async def test_get_by_ids_missing_async(self, vectorstore: VectorStore) -> None:
        """Test get by IDs with missing IDs.

        ??? note "Troubleshooting"

            If this test fails, check that `get_by_ids` is implemented and does not
            raise an exception when given IDs that do not exist.

            !!! note
                `get_by_ids` was added to the `VectorStore` interface in
                `langchain-core` version 0.2.11. If difficult to implement, this
                test can be skipped by setting the `has_get_by_ids` property to
                `False`.

                ```python
                @property
                def has_get_by_ids(self) -> bool:
                    return False
                ```
        """
        if not self.has_async:
            pytest.skip("Async tests not supported.")

        if not self.has_get_by_ids:
            pytest.skip("get_by_ids not implemented.")

        # This should not raise an exception
        assert await vectorstore.aget_by_ids(["1", "2", "3"]) == []

Subdomains

Frequently Asked Questions

What does test_get_by_ids_missing_async() do?
test_get_by_ids_missing_async() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py.
Where is test_get_by_ids_missing_async() defined?
test_get_by_ids_missing_async() is defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py at line 724.
What does test_get_by_ids_missing_async() call?
test_get_by_ids_missing_async() calls 1 function(s): has_get_by_ids.

Analyze Your Own Codebase

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

Try Supermodel Free