Documentation
¶
Index ¶
- func CosineSimilarity(a, b []float32) float32
- func ReadMemoryFile(path string) (title, content, createdAt string, err error)
- func ReadVec(path string) ([]float32, error)
- func WriteMemoryFile(dir, title, content string) (string, error)
- func WriteVec(path string, vec []float32) error
- type Embedder
- type HistoryResult
- type MemoryResult
- type Section
- type Store
- func (s *Store) Close()
- func (s *Store) DeleteSessionSummaries(sessionID string) error
- func (s *Store) IndexSummary(sessionID, projectID, projectName, summary, createdAt, compactionPath string) error
- func (s *Store) Reconcile() error
- func (s *Store) SaveMemory(memoriesDir, title, content string) (string, error)
- func (s *Store) SearchHistory(query, projectID string, allProjects bool, limit int) ([]HistoryResult, error)
- func (s *Store) SearchMemory(query, projectID string, allProjects bool, limit int) ([]MemoryResult, error)
- type VecEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CosineSimilarity ¶
func ReadMemoryFile ¶
func WriteMemoryFile ¶
Types ¶
type Embedder ¶
type Embedder struct {
// contains filtered or unexported fields
}
func NewEmbedder ¶
type HistoryResult ¶
type MemoryResult ¶
type Section ¶
func SplitSummary ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteSessionSummaries ¶
func (*Store) IndexSummary ¶
func (*Store) SaveMemory ¶
func (*Store) SearchHistory ¶
func (*Store) SearchMemory ¶
Click to show internal directories.
Click to hide internal directories.