Skip to content

Commit cb504e3

Browse files
committed
refactor(knowledge): remove unnecessary URL resolution for image paths
1 parent 8e1cfac commit cb504e3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

internal/application/service/knowledge.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7578,12 +7578,6 @@ func (s *knowledgeService) ProcessDocument(ctx context.Context, t *asynq.Task) e
75787578
// Step 2: Store images and update markdown references
75797579
var storedImages []docparser.StoredImage
75807580

7581-
// For URL imports, resolve relative image paths to absolute URLs
7582-
// so that ResolveRemoteImages can download them.
7583-
if payload.URL != "" && convertResult != nil {
7584-
convertResult.MarkdownContent = docparser.ResolveRelativeImageURLs(convertResult.MarkdownContent, payload.URL)
7585-
}
7586-
75877581
if s.imageResolver != nil && convertResult != nil {
75887582
fileSvc := s.resolveFileService(ctx, kb)
75897583
tenantID, _ := ctx.Value(types.TenantIDContextKey).(uint64)

0 commit comments

Comments
 (0)