refactoring
This commit is contained in:
9
pkg/utils/html.go
Normal file
9
pkg/utils/html.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
func HTMLify(s string) string {
|
||||
s = strings.TrimSpace(s)
|
||||
s = strings.ReplaceAll(s, "\n", "<br>")
|
||||
return s
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package rag
|
||||
package vectorstore
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package rag
|
||||
package vectorstore
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package rag
|
||||
package vectorstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
Reference in New Issue
Block a user