File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ document:
2121 - CREATING
2222 - ACTIVE
2323 - DELETING
24- - DELETING_IN_PROGRESS
24+ - DELETION_IN_PROGRESS
2525 - FAILED
2626 - SKIPPED
2727 fulltext_index_status :
@@ -31,7 +31,7 @@ document:
3131 - CREATING
3232 - ACTIVE
3333 - DELETING
34- - DELETING_IN_PROGRESS
34+ - DELETION_IN_PROGRESS
3535 - FAILED
3636 - SKIPPED
3737 graph_index_status :
@@ -41,7 +41,7 @@ document:
4141 - CREATING
4242 - ACTIVE
4343 - DELETING
44- - DELETING_IN_PROGRESS
44+ - DELETION_IN_PROGRESS
4545 - FAILED
4646 - SKIPPED
4747 vector_index_updated :
Original file line number Diff line number Diff line change @@ -361,6 +361,9 @@ async def _rebuild_document_indexes_atomically(session):
361361 collection = await self .db_ops .query_collection (user_id , collection_id )
362362 if not collection or collection .user != user_id :
363363 raise ResourceNotFoundException (f"Collection { collection_id } not found or access denied" )
364+ collection_config = json .loads (collection .config )
365+ if not collection_config .get ("enable_knowledge_graph" , False ):
366+ index_type_enums .remove (db_models .DocumentIndexType .GRAPH )
364367
365368 # Trigger index rebuild by incrementing version for selected index types
366369 await document_index_manager .create_or_update_document_indexes (session , document_id , index_type_enums )
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export const DocumentVectorIndexStatusEnum = {
115115 CREATING : 'CREATING' ,
116116 ACTIVE : 'ACTIVE' ,
117117 DELETING : 'DELETING' ,
118- DELETING_IN_PROGRESS : 'DELETING_IN_PROGRESS ' ,
118+ DELETION_IN_PROGRESS : 'DELETION_IN_PROGRESS ' ,
119119 FAILED : 'FAILED' ,
120120 SKIPPED : 'SKIPPED'
121121} as const ;
@@ -126,7 +126,7 @@ export const DocumentFulltextIndexStatusEnum = {
126126 CREATING : 'CREATING' ,
127127 ACTIVE : 'ACTIVE' ,
128128 DELETING : 'DELETING' ,
129- DELETING_IN_PROGRESS : 'DELETING_IN_PROGRESS ' ,
129+ DELETION_IN_PROGRESS : 'DELETION_IN_PROGRESS ' ,
130130 FAILED : 'FAILED' ,
131131 SKIPPED : 'SKIPPED'
132132} as const ;
@@ -137,7 +137,7 @@ export const DocumentGraphIndexStatusEnum = {
137137 CREATING : 'CREATING' ,
138138 ACTIVE : 'ACTIVE' ,
139139 DELETING : 'DELETING' ,
140- DELETING_IN_PROGRESS : 'DELETING_IN_PROGRESS ' ,
140+ DELETION_IN_PROGRESS : 'DELETION_IN_PROGRESS ' ,
141141 FAILED : 'FAILED' ,
142142 SKIPPED : 'SKIPPED'
143143} as const ;
Original file line number Diff line number Diff line change @@ -2734,7 +2734,7 @@ components:
27342734 - CREATING
27352735 - ACTIVE
27362736 - DELETING
2737- - DELETING_IN_PROGRESS
2737+ - DELETION_IN_PROGRESS
27382738 - FAILED
27392739 - SKIPPED
27402740 fulltext_index_status :
@@ -2744,7 +2744,7 @@ components:
27442744 - CREATING
27452745 - ACTIVE
27462746 - DELETING
2747- - DELETING_IN_PROGRESS
2747+ - DELETION_IN_PROGRESS
27482748 - FAILED
27492749 - SKIPPED
27502750 graph_index_status :
@@ -2754,7 +2754,7 @@ components:
27542754 - CREATING
27552755 - ACTIVE
27562756 - DELETING
2757- - DELETING_IN_PROGRESS
2757+ - DELETION_IN_PROGRESS
27582758 - FAILED
27592759 - SKIPPED
27602760 vector_index_updated :
Original file line number Diff line number Diff line change @@ -216,9 +216,11 @@ export const UI_INDEX_STATUS: {
216216 | 'warning' ;
217217} = {
218218 PENDING : 'warning' ,
219- RUNNING : 'processing' ,
219+ CREATING : 'processing' ,
220+ ACTIVE : 'success' ,
221+ DELETING : 'warning' ,
222+ DELETION_IN_PROGRESS : 'processing' ,
220223 FAILED : 'error' ,
221- COMPLETE : 'success' ,
222224 SKIPPED : 'default' ,
223225} ;
224226
Original file line number Diff line number Diff line change @@ -223,8 +223,10 @@ export default {
223223 'document.status.DELETING' : 'Deleting' ,
224224 'document.index.status' : 'Index Status' ,
225225 'document.index.status.PENDING' : 'Pending' ,
226- 'document.index.status.RUNNING' : 'Running' ,
227- 'document.index.status.COMPLETE' : 'Completed' ,
226+ 'document.index.status.CREATING' : 'Creating' ,
227+ 'document.index.status.ACTIVE' : 'Active' ,
228+ 'document.index.status.DELETING' : 'Deleting' ,
229+ 'document.index.status.DELETION_IN_PROGRESS' : 'Deleting' ,
228230 'document.index.status.FAILED' : 'Failed' ,
229231 'document.index.status.SKIPPED' : 'Skipped' ,
230232 'document.index.type.vector' : 'Vector Index' ,
Original file line number Diff line number Diff line change @@ -221,8 +221,10 @@ export default {
221221 'document.status.DELETING' : '删除中' ,
222222 'document.index.status' : '索引状态' ,
223223 'document.index.status.PENDING' : '待处理' ,
224- 'document.index.status.RUNNING' : '运行中' ,
225- 'document.index.status.COMPLETE' : '已完成' ,
224+ 'document.index.status.CREATING' : '创建中' ,
225+ 'document.index.status.ACTIVE' : '已完成' ,
226+ 'document.index.status.DELETING' : '删除中' ,
227+ 'document.index.status.DELETION_IN_PROGRESS' : '删除中' ,
226228 'document.index.status.FAILED' : '失败' ,
227229 'document.index.status.SKIPPED' : '已跳过' ,
228230 'document.index.type.vector' : '向量索引' ,
You can’t perform that action at this time.
0 commit comments