feat: init Go module with config and in-memory note store
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user