Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Oct 7, 2024
1 parent 5eb75dc commit d5ca909
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions model/rag/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ func callRAGIndexer(inst *instance.Instance, doctype string, change couchdb.Chan
"md5sum": []string{md5sum},
}.Encode()
var content io.Reader
fmt.Printf("mime = %s\n", mime)
if mime == consts.NoteMimeType {
fmt.Printf("NOTE !!")
metadata, _ := change.Doc.Get("metadata").(map[string]interface{})
schema, _ := metadata["schema"].(map[string]interface{})
raw, _ := metadata["content"].(map[string]interface{})
Expand All @@ -155,7 +153,6 @@ func callRAGIndexer(inst *instance.Instance, doctype string, change couchdb.Chan
RawContent: raw,
}
md, err := noteDoc.Markdown(nil)
fmt.Printf("markdown: %s\n", md)
if err != nil {
return err
}
Expand Down

0 comments on commit d5ca909

Please sign in to comment.