Skip to content
Snippets Groups Projects
Unverified Commit bbec0b80 authored by L's avatar L Committed by GitHub
Browse files

fix duplicate embedding (#7949)

parent 8460a136
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ class BaseEmbedding(BaseComponent):
)
callback_payloads.append((event_id, cur_batch))
embeddings_coroutines.append(self._aget_text_embeddings(cur_batch))
cur_batch = []
# flatten the results of asyncio.gather, which is a list of embeddings lists
nested_embeddings = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment