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))