mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-18 18:34:27 -04:00
c7ca350cd3
In LangChain, all module classes are enumerated in the `__init__.py` file of the correspondent module. But some classes were missed and were not included in the module `__init__.py` This PR: - added the missed classes to the module `__init__.py` files - `__init__.py:__all_` variable value (a list of the class names) was sorted - `langchain.tools.sql_database.tool.QueryCheckerTool` was renamed into the `QuerySQLCheckerTool` because it conflicted with `langchain.tools.spark_sql.tool.QueryCheckerTool` - changes to `pyproject.toml`: - added `pgvector` to `pyproject.toml:extended_testing` - added `pandas` to `pyproject.toml:[tool.poetry.group.test.dependencies]` - commented out the `streamlit` from `collbacks/__init__.py`, It is because now the `streamlit` requires Python >=3.7, !=3.9.7 - fixed duplicate names in `tools` - fixed correspondent ut-s #### Who can review? @hwchase17 @dev2049
97 lines
3.4 KiB
Python
97 lines
3.4 KiB
Python
"""Chains are easily reusable components which can be linked together."""
|
|
from langchain.chains.api.base import APIChain
|
|
from langchain.chains.api.openapi.chain import OpenAPIEndpointChain
|
|
from langchain.chains.combine_documents.base import AnalyzeDocumentChain
|
|
from langchain.chains.constitutional_ai.base import ConstitutionalChain
|
|
from langchain.chains.conversation.base import ConversationChain
|
|
from langchain.chains.conversational_retrieval.base import (
|
|
ChatVectorDBChain,
|
|
ConversationalRetrievalChain,
|
|
)
|
|
from langchain.chains.flare.base import FlareChain
|
|
from langchain.chains.graph_qa.base import GraphQAChain
|
|
from langchain.chains.graph_qa.cypher import GraphCypherQAChain
|
|
from langchain.chains.graph_qa.nebulagraph import NebulaGraphQAChain
|
|
from langchain.chains.hyde.base import HypotheticalDocumentEmbedder
|
|
from langchain.chains.llm import LLMChain
|
|
from langchain.chains.llm_bash.base import LLMBashChain
|
|
from langchain.chains.llm_checker.base import LLMCheckerChain
|
|
from langchain.chains.llm_math.base import LLMMathChain
|
|
from langchain.chains.llm_requests import LLMRequestsChain
|
|
from langchain.chains.llm_summarization_checker.base import LLMSummarizationCheckerChain
|
|
from langchain.chains.loading import load_chain
|
|
from langchain.chains.mapreduce import MapReduceChain
|
|
from langchain.chains.moderation import OpenAIModerationChain
|
|
from langchain.chains.natbot.base import NatBotChain
|
|
from langchain.chains.openai_functions import (
|
|
create_extraction_chain,
|
|
create_extraction_chain_pydantic,
|
|
create_tagging_chain,
|
|
create_tagging_chain_pydantic,
|
|
)
|
|
from langchain.chains.pal.base import PALChain
|
|
from langchain.chains.qa_generation.base import QAGenerationChain
|
|
from langchain.chains.qa_with_sources.base import QAWithSourcesChain
|
|
from langchain.chains.qa_with_sources.retrieval import RetrievalQAWithSourcesChain
|
|
from langchain.chains.qa_with_sources.vector_db import VectorDBQAWithSourcesChain
|
|
from langchain.chains.retrieval_qa.base import RetrievalQA, VectorDBQA
|
|
from langchain.chains.router import (
|
|
LLMRouterChain,
|
|
MultiPromptChain,
|
|
MultiRetrievalQAChain,
|
|
MultiRouteChain,
|
|
RouterChain,
|
|
)
|
|
from langchain.chains.sequential import SequentialChain, SimpleSequentialChain
|
|
from langchain.chains.sql_database.base import (
|
|
SQLDatabaseChain,
|
|
SQLDatabaseSequentialChain,
|
|
)
|
|
from langchain.chains.transform import TransformChain
|
|
|
|
__all__ = [
|
|
"APIChain",
|
|
"AnalyzeDocumentChain",
|
|
"ChatVectorDBChain",
|
|
"ConstitutionalChain",
|
|
"ConversationChain",
|
|
"ConversationalRetrievalChain",
|
|
"FlareChain",
|
|
"GraphCypherQAChain",
|
|
"GraphQAChain",
|
|
"HypotheticalDocumentEmbedder",
|
|
"LLMBashChain",
|
|
"LLMChain",
|
|
"LLMCheckerChain",
|
|
"LLMMathChain",
|
|
"LLMRequestsChain",
|
|
"LLMRouterChain",
|
|
"LLMSummarizationCheckerChain",
|
|
"MapReduceChain",
|
|
"MultiPromptChain",
|
|
"MultiRetrievalQAChain",
|
|
"MultiRouteChain",
|
|
"NatBotChain",
|
|
"NebulaGraphQAChain",
|
|
"OpenAIModerationChain",
|
|
"OpenAPIEndpointChain",
|
|
"PALChain",
|
|
"QAGenerationChain",
|
|
"QAWithSourcesChain",
|
|
"RetrievalQA",
|
|
"RetrievalQAWithSourcesChain",
|
|
"RouterChain",
|
|
"SQLDatabaseChain",
|
|
"SQLDatabaseSequentialChain",
|
|
"SequentialChain",
|
|
"SimpleSequentialChain",
|
|
"TransformChain",
|
|
"VectorDBQA",
|
|
"VectorDBQAWithSourcesChain",
|
|
"create_extraction_chain",
|
|
"create_extraction_chain_pydantic",
|
|
"create_tagging_chain",
|
|
"create_tagging_chain_pydantic",
|
|
"load_chain",
|
|
]
|