mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-07 04:20:59 +00:00
fix: index -> id
This commit is contained in:
parent
869829a065
commit
7832707c37
@ -89,7 +89,7 @@ def build_index(orig_path, embed_folder_path, index_path):
|
||||
start = 0
|
||||
while start < len(ds):
|
||||
chunk = ds[start:start + chunk_size]
|
||||
index.add_items(chunk["embedding"], chunk["index"], num_threads=64)
|
||||
index.add_items(chunk["embedding"], chunk["id"], num_threads=64)
|
||||
progbar.update(1)
|
||||
start += chunk_size
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user