__init__.py — langchain Source File
Architecture documentation for __init__.py, a python file in the langchain codebase. 86 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 997f2571_fd83_5d18_e173_ce4f730818d2["__init__.py"] 0c635125_6987_b8b3_7ff7_d60249aecde7["warnings"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 0c635125_6987_b8b3_7ff7_d60249aecde7 cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7["collections.abc"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 b19a8b7e_fbee_95b1_65b8_509a1ed3cad7["langchain_core._api"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> b19a8b7e_fbee_95b1_65b8_509a1ed3cad7 89934eed_a823_2184_acf2_039f48eed5f9["langchain_core.language_models.llms"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 89934eed_a823_2184_acf2_039f48eed5f9 38f8ae75_22d8_c191_ce06_b3bf6df6902f["langchain_classic._api.interactive_env"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 38f8ae75_22d8_c191_ce06_b3bf6df6902f 2bbd0677_84f6_5910_56a5_6fff44cfce2a["langchain_community.llms.ai21"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 2bbd0677_84f6_5910_56a5_6fff44cfce2a 7ac196f9_c828_e4c4_f42b_1b42bdfdaacf["langchain_community.llms.aleph_alpha"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 7ac196f9_c828_e4c4_f42b_1b42bdfdaacf 6deff8bb_4cb1_223d_56f8_66e4addbddb9["langchain_community.llms.amazon_api_gateway"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 6deff8bb_4cb1_223d_56f8_66e4addbddb9 881d94dd_5ba0_6566_0d6f_e64dc803ae28["langchain_community.llms.anthropic"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 881d94dd_5ba0_6566_0d6f_e64dc803ae28 24a0986b_8fa3_ec49_9d19_4d461a01ad41["langchain_community.llms.anyscale"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 24a0986b_8fa3_ec49_9d19_4d461a01ad41 7d3faa0b_727e_4245_af72_930a4af5883c["langchain_community.llms.arcee"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 7d3faa0b_727e_4245_af72_930a4af5883c a20388f6_a3e7_3484_b346_8c23c928a75e["langchain_community.llms.aviary"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> a20388f6_a3e7_3484_b346_8c23c928a75e 4ee0dae2_0b5f_d3eb_4723_496312bb787d["langchain_community.llms.azureml_endpoint"] 997f2571_fd83_5d18_e173_ce4f730818d2 --> 4ee0dae2_0b5f_d3eb_4723_496312bb787d style 997f2571_fd83_5d18_e173_ce4f730818d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""**LLMs**.
**LLM** classes provide access to the large language model (**LLM**) APIs and services.
"""
import warnings
from collections.abc import Callable
from typing import Any
from langchain_core._api import LangChainDeprecationWarning
from langchain_core.language_models.llms import BaseLLM
from langchain_classic._api.interactive_env import is_interactive_env
def _import_ai21() -> Any:
from langchain_community.llms.ai21 import AI21
return AI21
def _import_aleph_alpha() -> Any:
from langchain_community.llms.aleph_alpha import AlephAlpha
return AlephAlpha
def _import_amazon_api_gateway() -> Any:
from langchain_community.llms.amazon_api_gateway import AmazonAPIGateway
return AmazonAPIGateway
def _import_anthropic() -> Any:
from langchain_community.llms.anthropic import Anthropic
return Anthropic
def _import_anyscale() -> Any:
from langchain_community.llms.anyscale import Anyscale
return Anyscale
def _import_arcee() -> Any:
from langchain_community.llms.arcee import Arcee
return Arcee
def _import_aviary() -> Any:
from langchain_community.llms.aviary import Aviary
return Aviary
def _import_azureml_endpoint() -> Any:
from langchain_community.llms.azureml_endpoint import AzureMLOnlineEndpoint
// ... (661 more lines)
Domain
Subdomains
Functions
- __getattr__()
- _import_ai21()
- _import_aleph_alpha()
- _import_amazon_api_gateway()
- _import_anthropic()
- _import_anyscale()
- _import_arcee()
- _import_aviary()
- _import_azure_openai()
- _import_azureml_endpoint()
- _import_baidu_qianfan_endpoint()
- _import_bananadev()
- _import_baseten()
- _import_beam()
- _import_bedrock()
- _import_bittensor()
- _import_cerebriumai()
- _import_chatglm()
- _import_clarifai()
- _import_cohere()
- _import_ctransformers()
- _import_ctranslate2()
- _import_databricks()
- _import_databricks_chat()
- _import_deepinfra()
- _import_deepsparse()
- _import_edenai()
- _import_fake()
- _import_fireworks()
- _import_forefrontai()
- _import_gigachat()
- _import_google_palm()
- _import_gooseai()
- _import_gpt4all()
- _import_gradient_ai()
- _import_huggingface_endpoint()
- _import_huggingface_hub()
- _import_huggingface_pipeline()
- _import_huggingface_text_gen_inference()
- _import_human()
- _import_javelin_ai_gateway()
- _import_koboldai()
- _import_llamacpp()
- _import_manifest()
- _import_minimax()
- _import_mlflow()
- _import_mlflow_ai_gateway()
- _import_mlflow_chat()
- _import_modal()
- _import_mosaicml()
- _import_nlpcloud()
- _import_octoai_endpoint()
- _import_ollama()
- _import_opaqueprompts()
- _import_openai()
- _import_openai_chat()
- _import_openllm()
- _import_openlm()
- _import_pai_eas_endpoint()
- _import_petals()
- _import_pipelineai()
- _import_predibase()
- _import_predictionguard()
- _import_promptlayer()
- _import_promptlayer_chat()
- _import_replicate()
- _import_rwkv()
- _import_sagemaker_endpoint()
- _import_self_hosted()
- _import_self_hosted_hugging_face()
- _import_stochasticai()
- _import_symblai_nebula()
- _import_textgen()
- _import_titan_takeoff()
- _import_titan_takeoff_pro()
- _import_together()
- _import_tongyi()
- _import_vertex()
- _import_vertex_model_garden()
- _import_vllm()
- _import_vllm_openai()
- _import_volcengine_maas()
- _import_watsonxllm()
- _import_writer()
- _import_xinference()
- _import_yandex_gpt()
- get_type_to_cls_dict()
Dependencies
- collections.abc
- langchain_classic._api.interactive_env
- langchain_community
- langchain_community.chat_models.databricks
- langchain_community.chat_models.mlflow
- langchain_community.llms.ai21
- langchain_community.llms.aleph_alpha
- langchain_community.llms.amazon_api_gateway
- langchain_community.llms.anthropic
- langchain_community.llms.anyscale
- langchain_community.llms.arcee
- langchain_community.llms.aviary
- langchain_community.llms.azureml_endpoint
- langchain_community.llms.baidu_qianfan_endpoint
- langchain_community.llms.bananadev
- langchain_community.llms.baseten
- langchain_community.llms.beam
- langchain_community.llms.bedrock
- langchain_community.llms.bittensor
- langchain_community.llms.cerebriumai
- langchain_community.llms.chatglm
- langchain_community.llms.clarifai
- langchain_community.llms.cohere
- langchain_community.llms.ctransformers
- langchain_community.llms.ctranslate2
- langchain_community.llms.databricks
- langchain_community.llms.deepinfra
- langchain_community.llms.deepsparse
- langchain_community.llms.edenai
- langchain_community.llms.fireworks
- langchain_community.llms.forefrontai
- langchain_community.llms.gigachat
- langchain_community.llms.google_palm
- langchain_community.llms.gooseai
- langchain_community.llms.gpt4all
- langchain_community.llms.gradient_ai
- langchain_community.llms.huggingface_endpoint
- langchain_community.llms.huggingface_hub
- langchain_community.llms.huggingface_pipeline
- langchain_community.llms.huggingface_text_gen_inference
- langchain_community.llms.human
- langchain_community.llms.javelin_ai_gateway
- langchain_community.llms.koboldai
- langchain_community.llms.llamacpp
- langchain_community.llms.manifest
- langchain_community.llms.minimax
- langchain_community.llms.mlflow
- langchain_community.llms.mlflow_ai_gateway
- langchain_community.llms.modal
- langchain_community.llms.mosaicml
- langchain_community.llms.nlpcloud
- langchain_community.llms.octoai_endpoint
- langchain_community.llms.ollama
- langchain_community.llms.opaqueprompts
- langchain_community.llms.openai
- langchain_community.llms.openllm
- langchain_community.llms.openlm
- langchain_community.llms.pai_eas_endpoint
- langchain_community.llms.petals
- langchain_community.llms.pipelineai
- langchain_community.llms.predibase
- langchain_community.llms.predictionguard
- langchain_community.llms.promptlayer_openai
- langchain_community.llms.replicate
- langchain_community.llms.rwkv
- langchain_community.llms.sagemaker_endpoint
- langchain_community.llms.self_hosted
- langchain_community.llms.self_hosted_hugging_face
- langchain_community.llms.stochasticai
- langchain_community.llms.symblai_nebula
- langchain_community.llms.textgen
- langchain_community.llms.titan_takeoff
- langchain_community.llms.together
- langchain_community.llms.tongyi
- langchain_community.llms.vertexai
- langchain_community.llms.vllm
- langchain_community.llms.volcengine_maas
- langchain_community.llms.watsonxllm
- langchain_community.llms.writer
- langchain_community.llms.xinference
- langchain_community.llms.yandex
- langchain_core._api
- langchain_core.language_models
- langchain_core.language_models.llms
- typing
- warnings
Source
Frequently Asked Questions
What does __init__.py do?
__init__.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 __init__.py?
__init__.py defines 87 function(s): __getattr__, _import_ai21, _import_aleph_alpha, _import_amazon_api_gateway, _import_anthropic, _import_anyscale, _import_arcee, _import_aviary, _import_azure_openai, _import_azureml_endpoint, and 77 more.
What does __init__.py depend on?
__init__.py imports 86 module(s): collections.abc, langchain_classic._api.interactive_env, langchain_community, langchain_community.chat_models.databricks, langchain_community.chat_models.mlflow, langchain_community.llms.ai21, langchain_community.llms.aleph_alpha, langchain_community.llms.amazon_api_gateway, and 78 more.
Where is __init__.py in the architecture?
__init__.py is located at libs/langchain/langchain_classic/llms/__init__.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/langchain_classic/llms).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free