feat: init Go module with config and in-memory note store

This commit is contained in:
2026-05-05 11:23:04 +08:00
parent 184d775a7e
commit deffe14e9c
7 changed files with 177 additions and 0 deletions
+25
View File
@@ -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"`
}