From 05852b8c53c31cbb8aab17e7582cb7a1f85c2727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Gonz=C3=A1lez=20Santamarta?= Date: Wed, 10 Jan 2024 17:43:40 +0100 Subject: [PATCH] reqirements updated --- llama_ros/llama_ros/langchain/llama_ros.py | 2 +- llama_ros/llama_ros/langchain/llama_ros_embeddings.py | 2 +- requirements.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llama_ros/llama_ros/langchain/llama_ros.py b/llama_ros/llama_ros/langchain/llama_ros.py index fd7701b..beb3a26 100644 --- a/llama_ros/llama_ros/langchain/llama_ros.py +++ b/llama_ros/llama_ros/langchain/llama_ros.py @@ -25,7 +25,7 @@ from llama_msgs.action import GenerateResponse from llama_msgs.srv import Tokenize -from langchain.llms.base import LLM +from langchain_core.language_models.llms import LLM from langchain.callbacks.manager import CallbackManagerForLLMRun diff --git a/llama_ros/llama_ros/langchain/llama_ros_embeddings.py b/llama_ros/llama_ros/langchain/llama_ros_embeddings.py index 6620e50..48d8a4c 100644 --- a/llama_ros/llama_ros/langchain/llama_ros_embeddings.py +++ b/llama_ros/llama_ros/langchain/llama_ros_embeddings.py @@ -16,7 +16,7 @@ from typing import Dict, List from pydantic import BaseModel, Extra, root_validator -from langchain.embeddings.base import Embeddings +from langchain_core.embeddings import Embeddings from simple_node import Node from rclpy.client import Client diff --git a/requirements.txt b/requirements.txt index 88b78a3..3784689 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -langchain==0.0.353 -huggingface-hub==0.20.1 \ No newline at end of file +langchain==0.1.0 +huggingface-hub==0.20.2 \ No newline at end of file