feat: 批量更新tag时更新索引字段

This commit is contained in:
wizardchen
2025-12-30 17:43:29 +08:00
committed by lyingbug
parent 8832d70e19
commit da1dcb0cda
8 changed files with 288 additions and 9 deletions
@@ -115,6 +115,19 @@ func (c *CompositeRetrieveEngine) BatchUpdateChunkEnabledStatus(
})
}
// BatchUpdateChunkTagID updates the tag ID of chunks in batch
func (c *CompositeRetrieveEngine) BatchUpdateChunkTagID(
ctx context.Context,
chunkTagMap map[string]string,
) error {
return c.concurrentExecWithError(ctx, func(ctx context.Context, engineInfo *engineInfo) error {
if err := engineInfo.retrieveEngine.BatchUpdateChunkTagID(ctx, chunkTagMap); err != nil {
return err
}
return nil
})
}
// concurrentRetrieve is a helper function for concurrent processing of retrieval parameters
// and collecting results
func concurrentRetrieve(