Home / Function/ _validate_indices() — langchain Function Reference

_validate_indices() — langchain Function Reference

Architecture documentation for the _validate_indices() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ab1dfe87_8824_a8a6_7702_c40d0e8a2441["_validate_indices()"]
  daa08d88_1d2b_5650_6257_d688074121b7["ElasticsearchDatabaseChain"]
  ab1dfe87_8824_a8a6_7702_c40d0e8a2441 -->|defined in| daa08d88_1d2b_5650_6257_d688074121b7
  style ab1dfe87_8824_a8a6_7702_c40d0e8a2441 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/elasticsearch_database/base.py lines 64–68

    def _validate_indices(self) -> Self:
        if self.include_indices and self.ignore_indices:
            msg = "Cannot specify both 'include_indices' and 'ignore_indices'."
            raise ValueError(msg)
        return self

Subdomains

Frequently Asked Questions

What does _validate_indices() do?
_validate_indices() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/elasticsearch_database/base.py.
Where is _validate_indices() defined?
_validate_indices() is defined in libs/langchain/langchain_classic/chains/elasticsearch_database/base.py at line 64.

Analyze Your Own Codebase

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

Try Supermodel Free