feat(knowledge): enhance search functionality to include title filtering and URL handling

- Updated search queries to filter by both file name and title when a keyword is provided, improving search accuracy.
- Added support for filtering by URL and HTML file types in search queries, enhancing the flexibility of the search functionality.
- Refactored query construction for file types to streamline the inclusion of additional conditions, ensuring robust handling of various file types.
This commit is contained in:
wizardchen
2026-03-25 11:04:43 +08:00
committed by lyingbug
parent ac04a8efcb
commit ae89871ac5
2 changed files with 38 additions and 21 deletions
@@ -521,6 +521,7 @@ func (s *knowledgeService) CreateKnowledgeFromURL(ctx context.Context,
Channel: defaultChannel(channel),
Title: title,
Source: url,
FileType: "html",
FileHash: fileHash,
ParseStatus: "pending",
EnableStatus: "disabled",