Explorar el Código

feat: optimize index_struct copy (#442)

tags/0.3.6
John Wang hace 2 años
padre
commit
cad1532f7c
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      api/core/index/vector_index/base.py

+ 1
- 1
api/core/index/vector_index/base.py Ver fichero

@@ -157,7 +157,7 @@ class BaseVectorIndex(BaseIndex):

documents.append(document)

origin_index_struct = self.dataset.index_struct
origin_index_struct = self.dataset.index_struct[:]
self.dataset.index_struct = None

if documents:

Cargando…
Cancelar
Guardar