Skip to content

Commit

Permalink
Upg: increase chunks count batch per embedding request (8->128) (#8823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraggle authored Nov 22, 2024
1 parent cf927aa commit 21cfa7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/data_sources/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,9 @@ impl DataSource {
.filter(|ci| !embeddings.contains_key(&ci.hash))
.collect::<Vec<_>>();

// Chunk splits into a vectors of 8 chunks (Vec<Vec<String>>)
// Chunk splits into a vectors of 128 chunks (Vec<Vec<String>>)
let chunked_splits = splits_to_embbed
.chunks(8)
.chunks(128)
.map(|chunk| chunk.to_vec())
.collect::<Vec<_>>();

Expand Down

0 comments on commit 21cfa7a

Please sign in to comment.