feat: Add async knowledge re-parse API and examples

This commit is contained in:
begoniezhao
2026-02-10 12:15:21 +08:00
parent 10b6c98078
commit bce968833e
7 changed files with 299 additions and 11 deletions
+2
View File
@@ -78,6 +78,8 @@ type KnowledgeService interface {
knowledgeID string,
payload *types.ManualKnowledgePayload,
) (*types.Knowledge, error)
// ReparseKnowledge deletes existing document content and re-parses the knowledge asynchronously.
ReparseKnowledge(ctx context.Context, knowledgeID string) (*types.Knowledge, error)
// CloneKnowledgeBase clones knowledge to another knowledge base.
CloneKnowledgeBase(ctx context.Context, srcID, dstID string) error
// UpdateImageInfo updates image information for a knowledge chunk.