Merge pull request #1118 from trheyi/main

Remove debug print statements from UpdateSegments function to clean u…
This commit is contained in:
Max 2025-08-21 16:44:10 +08:00 committed by GitHub
commit f9b87555c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {