refactor: Update wiki prompts and ingestion logic for improved content handling

- Renamed `WikiPageUpdatePrompt` to `WikiPageModifyPrompt` to better reflect its functionality of adding new information and removing outdated content in a single operation.
- Enhanced the instructions for both `WikiPageModifyPrompt` and `WikiPageRetractPrompt` to clarify the handling of additions and retractions, ensuring accurate content updates.
- Consolidated the logic for enqueuing retraction tasks in the `cleanupWikiOnKnowledgeDelete` method to streamline the process of managing affected pages.
- Removed the `rebuildWikiIndexSimple` function to simplify the codebase, as its functionality is no longer needed with the new ingestion approach.

These changes improve the clarity and efficiency of the wiki content management process, enhancing overall system performance.
This commit is contained in:
wizardchen
2026-04-09 16:24:48 +08:00
parent 8daf6b368c
commit fba6d7d145
5 changed files with 859 additions and 952 deletions
+3 -1
View File
@@ -143,7 +143,9 @@ func Logger() gin.HandlerFunc {
start := time.Now()
path := c.Request.URL.Path
raw := c.Request.URL.RawQuery
if strings.HasPrefix(path, "/assets/") {
isWikiStats := strings.HasPrefix(path, "/api/v1/knowledgebase/") && strings.HasSuffix(path, "/wiki/stats")
if strings.HasPrefix(path, "/assets/") || isWikiStats {
c.Next()
return
}