Files
eino-test/internal/store/models.go
T

26 lines
499 B
Go

package store
import "time"
type Note struct {
ID string `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
Tags []string `json:"tags"`
FilePath string `json:"file_path"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Chunk struct {
NoteID string
Index int
Content string
Embedding []float64
}
type SearchResult struct {
Note *Note `json:"note"`
Score float64 `json:"score"`
}