mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-21 00:35:23 -04:00
020c42dcae
Add support for huggingface hub I could not find a good way to enforce stop tokens over the huggingface hub api - that needs to hopefully be cleaned up in the future
29 lines
573 B
Python
29 lines
573 B
Python
"""Main entrypoint into package."""
|
|
|
|
from pathlib import Path
|
|
|
|
with open(Path(__file__).absolute().parents[0] / "VERSION") as _f:
|
|
__version__ = _f.read().strip()
|
|
|
|
from langchain.chains import (
|
|
LLMChain,
|
|
LLMMathChain,
|
|
PythonChain,
|
|
SelfAskWithSearchChain,
|
|
SerpAPIChain,
|
|
)
|
|
from langchain.llms import Cohere, HuggingFaceHub, OpenAI
|
|
from langchain.prompt import Prompt
|
|
|
|
__all__ = [
|
|
"LLMChain",
|
|
"LLMMathChain",
|
|
"PythonChain",
|
|
"SelfAskWithSearchChain",
|
|
"SerpAPIChain",
|
|
"Cohere",
|
|
"OpenAI",
|
|
"Prompt",
|
|
"HuggingFaceHub",
|
|
]
|