mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 12:31:49 +00:00
Description: add lint docstrings for ollama module Issue: the issue https://github.com/langchain-ai/langchain/issues/23188 @baskaryan test: ruff check passed. <img width="311" alt="e94c68ffa93dd518297a95a93de5217" src="https://github.com/user-attachments/assets/e96bf721-e0e3-44de-a50e-206603de398e"> Co-authored-by: Erick Friis <erick@langchain.dev>
26 lines
634 B
Python
26 lines
634 B
Python
"""This is the langchain_ollama package.
|
|
|
|
It provides infrastructure for interacting with the Ollama service.
|
|
"""
|
|
|
|
|
|
from importlib import metadata
|
|
|
|
from langchain_ollama.chat_models import ChatOllama
|
|
from langchain_ollama.embeddings import OllamaEmbeddings
|
|
from langchain_ollama.llms import OllamaLLM
|
|
|
|
try:
|
|
__version__ = metadata.version(__package__)
|
|
except metadata.PackageNotFoundError:
|
|
# Case where package metadata is not available.
|
|
__version__ = ""
|
|
del metadata # optional, avoids polluting the results of dir(__package__)
|
|
|
|
__all__ = [
|
|
"ChatOllama",
|
|
"OllamaLLM",
|
|
"OllamaEmbeddings",
|
|
"__version__",
|
|
]
|