Home / File/ databerry.py — langchain Source File

databerry.py — langchain Source File

Architecture documentation for databerry.py, a python file in the langchain codebase. 3 imports, 0 dependents.

File python CoreAbstractions Serialization 3 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  ef059636_f229_0e7d_b445_47420b1a7370["databerry.py"]
  8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"]
  ef059636_f229_0e7d_b445_47420b1a7370 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3
  439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7["langchain_classic._api"]
  ef059636_f229_0e7d_b445_47420b1a7370 --> 439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7
  164f9f69_246e_fd45_6ef1_3a16778e7291["langchain_community.retrievers.databerry"]
  ef059636_f229_0e7d_b445_47420b1a7370 --> 164f9f69_246e_fd45_6ef1_3a16778e7291
  style ef059636_f229_0e7d_b445_47420b1a7370 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from typing import TYPE_CHECKING, Any

from langchain_classic._api import create_importer

if TYPE_CHECKING:
    from langchain_community.retrievers.databerry import DataberryRetriever

# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"DataberryRetriever": "langchain_community.retrievers.databerry"}

_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)


def __getattr__(name: str) -> Any:
    """Look up attributes dynamically."""
    return _import_attribute(name)


__all__ = [
    "DataberryRetriever",
]

Subdomains

Dependencies

  • langchain_classic._api
  • langchain_community.retrievers.databerry
  • typing

Frequently Asked Questions

What does databerry.py do?
databerry.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in databerry.py?
databerry.py defines 2 function(s): __getattr__, langchain_community.
What does databerry.py depend on?
databerry.py imports 3 module(s): langchain_classic._api, langchain_community.retrievers.databerry, typing.
Where is databerry.py in the architecture?
databerry.py is located at libs/langchain/langchain_classic/retrievers/databerry.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/langchain_classic/retrievers).

Analyze Your Own Codebase

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

Try Supermodel Free