Merge pull request #1118 from trheyi/main
Remove debug print statements from UpdateSegments function to clean u…
This commit is contained in:
commit
f9b87555c8
1 changed files with 0 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue