mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[mob] Keep fetching embeddings till no embedding is returned
This commit is contained in:
parent
50613b8c57
commit
883e246f30
@ -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…
x
Reference in New Issue
Block a user