diff --git a/pyproject.toml b/pyproject.toml index 16fc82f44ed1..e661415f79c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -150,7 +150,7 @@ portalocker = "^2.7.0" pypred = "^0.4.0" structlog = "^23.1.0" structlog-sentry = "^2.0.2" -langchain = "^0.0.223" +langchain = "^0.0.294" jinja2 = "^3.0.0" openai = "^0.27.8" dnspython = "2.3.0" diff --git a/rasa/shared/utils/llm.py b/rasa/shared/utils/llm.py index 5ee795da6650..e86c598bb5aa 100644 --- a/rasa/shared/utils/llm.py +++ b/rasa/shared/utils/llm.py @@ -2,7 +2,7 @@ import warnings import structlog -from langchain.embeddings.base import Embeddings +from langchain.schema.embeddings import Embeddings from langchain.llms.base import BaseLLM from langchain.llms.loading import load_llm_from_config from langchain.cache import SQLiteCache