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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user