Remove debug print statements from UpdateSegments function to clean up code and improve readability.

This commit is contained in:
Max 2025-08-21 16:43:17 +08:00
parent 5ea5c7835d
commit 58626f4fa9

View file

@ -132,9 +132,6 @@ func UpdateSegments(c *gin.Context) {
return
}
fmt.Println("--------------------------------")
fmt.Println(document)
var req UpdateSegmentsRequest
// Parse and bind JSON request
if err := c.ShouldBindJSON(&req); err != nil {
@ -250,11 +247,6 @@ func UpdateSegments(c *gin.Context) {
upsertOptions.Extraction = extractionProvider
}
fmt.Println("--- UpdateSegments ---")
fmt.Println(req.SegmentTexts)
fmt.Println(upsertOptions.DocID)
fmt.Println(upsertOptions.CollectionID)
// Perform update segments operation
updatedCount, err := kb.Instance.UpdateSegments(c.Request.Context(), req.SegmentTexts, upsertOptions)
if err != nil {