[mob] Keep fetching embeddings till no embedding is returned (#1709)
## Description ## Tests
This commit is contained in:
commit
282611610d
1 changed files with 4 additions and 1 deletions
|
@ -145,9 +145,12 @@ class EmbeddingStore {
|
|||
}
|
||||
|
||||
_logger.info("${remoteEmbeddings.length} embeddings fetched");
|
||||
|
||||
return RemoteEmbeddings(
|
||||
remoteEmbeddings,
|
||||
remoteEmbeddings.length == limit,
|
||||
// keep fetching until we get all embeddings. Avoid limit check as
|
||||
// some embedding fetch might fail on server
|
||||
remoteEmbeddings.isNotEmpty,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue