From acf8f46ad90c5fea3935cb251ffe8374ce50640b Mon Sep 17 00:00:00 2001 From: Bakar Tavadze Date: Tue, 23 Apr 2024 14:48:47 +0400 Subject: [PATCH] Format. --- backend/app/chatbot.py | 3 ++- backend/app/message_types.py | 2 +- backend/app/upload.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/app/chatbot.py b/backend/app/chatbot.py index fe19725c..eeb5b787 100644 --- a/backend/app/chatbot.py +++ b/backend/app/chatbot.py @@ -1,11 +1,12 @@ from typing import Annotated, List -from app.message_types import add_messages_liberal from langchain_core.language_models.base import LanguageModelLike from langchain_core.messages import BaseMessage, SystemMessage from langgraph.checkpoint import BaseCheckpointSaver from langgraph.graph.state import StateGraph +from app.message_types import add_messages_liberal + def get_chatbot_executor( llm: LanguageModelLike, diff --git a/backend/app/message_types.py b/backend/app/message_types.py index bd1f7695..9ceea94b 100644 --- a/backend/app/message_types.py +++ b/backend/app/message_types.py @@ -6,7 +6,7 @@ MessageLikeRepresentation, ToolMessage, ) -from langgraph.graph.message import add_messages, Messages +from langgraph.graph.message import Messages, add_messages class LiberalFunctionMessage(FunctionMessage): diff --git a/backend/app/upload.py b/backend/app/upload.py index bd09939b..8c12bedb 100644 --- a/backend/app/upload.py +++ b/backend/app/upload.py @@ -12,8 +12,8 @@ import os from typing import BinaryIO, List, Optional -from langchain_core.document_loaders.blob_loaders import Blob from langchain_community.vectorstores.pgvector import PGVector +from langchain_core.document_loaders.blob_loaders import Blob from langchain_core.runnables import ( ConfigurableField, RunnableConfig,