Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2024
1 parent 89aabdc commit efdc413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comps/retrievers/redis/langchain/retriever_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit efdc413

Please sign in to comment.