From efdc41317d3cee43703b28b002cbc93495020ea3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:16:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- comps/retrievers/redis/langchain/retriever_redis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comps/retrievers/redis/langchain/retriever_redis.py b/comps/retrievers/redis/langchain/retriever_redis.py index b9b317c4a..5eb06098b 100644 --- a/comps/retrievers/redis/langchain/retriever_redis.py +++ b/comps/retrievers/redis/langchain/retriever_redis.py @@ -11,11 +11,11 @@ from redis_config import EMBED_MODEL, INDEX_NAME, REDIS_URL from comps import ( - EmbedMultimodalDoc, - SearchedMultimodalDoc, CustomLogger, EmbedDoc, + EmbedMultimodalDoc, SearchedDoc, + SearchedMultimodalDoc, ServiceType, TextDoc, opea_microservices, @@ -103,7 +103,7 @@ async def retrieve( metadata_list.append(r.metadata) retrieved_docs.append(TextDoc(text=r.page_content)) result = SearchedMultimodalDoc(retrieved_docs=retrieved_docs, initial_query=input.text, metadata=metadata_list) - + else: for r in search_res: retrieved_docs.append(RetrievalResponseData(text=r.page_content, metadata=r.metadata))