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
+8
View File
@@ -56,6 +56,10 @@ type RetrieveEngineRepository interface {
// chunkStatusMap: map of chunk ID to enabled status (true = enabled, false = disabled)
BatchUpdateChunkEnabledStatus(ctx context.Context, chunkStatusMap map[string]bool) error
// BatchUpdateChunkTagID updates the tag ID of chunks in batch
// chunkTagMap: map of chunk ID to tag ID (empty string means no tag)
BatchUpdateChunkTagID(ctx context.Context, chunkTagMap map[string]string) error
// RetrieveEngine retrieves the engine
RetrieveEngine
}
@@ -119,6 +123,10 @@ type RetrieveEngineService interface {
// chunkStatusMap: map of chunk ID to enabled status (true = enabled, false = disabled)
BatchUpdateChunkEnabledStatus(ctx context.Context, chunkStatusMap map[string]bool) error
// BatchUpdateChunkTagID updates the tag ID of chunks in batch
// chunkTagMap: map of chunk ID to tag ID (empty string means no tag)
BatchUpdateChunkTagID(ctx context.Context, chunkTagMap map[string]string) error
// RetrieveEngine retrieves the engine
RetrieveEngine
}