Feat/vdb migrate command (#2562)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-02-26 19:47:29 +08:00 • committed by GitHub
commit 0620fa3094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 134 additions and 57 deletions

View file

@ -664,6 +664,7 @@ class IndexingRunner:
)
# load index
index_processor.load(dataset, chunk_documents)
db.session.add(dataset)
document_ids = [document.metadata['doc_id'] for document in chunk_documents]
db.session.query(DocumentSegment).filter(