fix(knowledge): add missing progress bar update (#510)
This commit is contained in:
parent
72656e4fd1
commit
38b63f00a3
|
|
@ -72,6 +72,12 @@ func (v *vkSearchStore) Store(ctx context.Context, docs []*schema.Document, opts
|
||||||
if err := v.collection.UpsertData(docsWithVector); err != nil {
|
if err := v.collection.UpsertData(docsWithVector); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if implSpecOptions.ProgressBar != nil {
|
||||||
|
if err = implSpecOptions.ProgressBar.AddN(len(part)); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ids = slices.Transform(docs, func(a *schema.Document) string { return a.ID })
|
ids = slices.Transform(docs, func(a *schema.Document) string { return a.ID })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue