Skip to content

Commit

Permalink
fix multimodalqna issue (opea-project#1042)
Browse files Browse the repository at this point in the history
Signed-off-by: letonghan <letong.han@intel.com>
  • Loading branch information
letonghan authored Dec 17, 2024
1 parent 39ae264 commit a6cdd17
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions comps/retrievers/redis/langchain/retriever_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ async def retrieve(

# return different response format
retrieved_docs = []
if isinstance(input, EmbedDoc):
for r in search_res:
retrieved_docs.append(TextDoc(text=r.page_content))
result = SearchedDoc(retrieved_docs=retrieved_docs, initial_query=input.text)
elif isinstance(input, EmbedMultimodalDoc):
if isinstance(input, EmbedDoc) or isinstance(input, EmbedMultimodalDoc):
metadata_list = []
for r in search_res:
metadata_list.append(r.metadata)
Expand Down

0 comments on commit a6cdd17

Please sign in to comment.