Documentation
¶
Index ¶
- func AddVector(id int64, vec []float32)
- func AnswerQuery(query string) string
- func AnswerQueryWrapper(query string) string
- func Chunk(text string) []string
- func ExtractTextFromPDF(path string) string
- func GenerateAnswer(query string, contexts []string) string
- func GenerateEmbedding(text string) []float32
- func GetChunkByID(id int64) (string, error)
- func InitDB()
- func InitVectorStore()
- func ProcessText(docName, text string)
- func ProcessTextWrapper(docName, text string)
- func SaveChunk(docName, chunkText string) (int64, error)
- func SearchVector(query []float32, topK int) []int64
- type VectorStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerQuery ¶
func AnswerQueryWrapper ¶
func ExtractTextFromPDF ¶
func GenerateAnswer ¶
func GenerateEmbedding ¶
func GetChunkByID ¶
func InitVectorStore ¶
func InitVectorStore()
func ProcessText ¶
func ProcessText(docName, text string)
func ProcessTextWrapper ¶
func ProcessTextWrapper(docName, text string)
func SearchVector ¶
Types ¶
type VectorStore ¶
type VectorStore struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.