mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-11 04:28:02 +00:00
get rid of enumerate
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
898d325772
commit
16652e548e
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class SQLiteVecIndex(EmbeddingIndex):
|
||||||
try:
|
try:
|
||||||
# Start transaction
|
# Start transaction
|
||||||
cur.execute("BEGIN TRANSACTION")
|
cur.execute("BEGIN TRANSACTION")
|
||||||
for k, i in enumerate(range(0, len(chunks), batch_size)):
|
for i in range(0, len(chunks), batch_size):
|
||||||
batch_chunks = chunks[i : i + batch_size]
|
batch_chunks = chunks[i : i + batch_size]
|
||||||
batch_embeddings = embeddings[i : i + batch_size]
|
batch_embeddings = embeddings[i : i + batch_size]
|
||||||
# Prepare metadata inserts
|
# Prepare metadata inserts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue