Documentation
¶
Index ¶
- func ProjectHash(cwd string) string
- type Embedder
- type LocalEmbedder
- type Memory
- type MemoryEntry
- type MemoryIndex
- func (mi *MemoryIndex) Close() error
- func (mi *MemoryIndex) Delete(id string) error
- func (mi *MemoryIndex) ListIndexMeta(scope Scope, project string) (map[string]time.Time, error)
- func (mi *MemoryIndex) Search(queryEmbedding []float32, queryText string, scope Scope, project string, ...) ([]RecallResult, error)
- func (mi *MemoryIndex) Upsert(m *Memory) error
- type MemoryService
- func (s *MemoryService) Close() error
- func (s *MemoryService) Ingest(ctx context.Context, turnMessages []message.Message)
- func (s *MemoryService) Recall(ctx context.Context, query string) []Memory
- func (s *MemoryService) Reconcile(ctx context.Context) (added int, removed int, updated int, err error)
- func (s *MemoryService) WaitReconcile()
- type MemoryStore
- func (s *MemoryStore) Delete(scope Scope, project string, id string) error
- func (s *MemoryStore) Dir() string
- func (s *MemoryStore) List(scope Scope, project string) ([]string, error)
- func (s *MemoryStore) ListProjectHashes() ([]string, error)
- func (s *MemoryStore) ModTime(scope Scope, project string, id string) (time.Time, error)
- func (s *MemoryStore) Read(scope Scope, project string, id string) (*Memory, error)
- func (s *MemoryStore) Write(m *Memory) error
- type RecallResult
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectHash ¶
Types ¶
type LocalEmbedder ¶
type LocalEmbedder struct {
// contains filtered or unexported fields
}
func NewLocalEmbedder ¶
func NewLocalEmbedder(configDir string) (*LocalEmbedder, error)
func (*LocalEmbedder) Close ¶
func (e *LocalEmbedder) Close()
func (*LocalEmbedder) Dim ¶
func (e *LocalEmbedder) Dim() int
type MemoryEntry ¶
type MemoryIndex ¶
type MemoryIndex struct {
// contains filtered or unexported fields
}
func (*MemoryIndex) Close ¶
func (mi *MemoryIndex) Close() error
func (*MemoryIndex) Delete ¶
func (mi *MemoryIndex) Delete(id string) error
func (*MemoryIndex) ListIndexMeta ¶ added in v0.1.3
func (*MemoryIndex) Search ¶
func (mi *MemoryIndex) Search(queryEmbedding []float32, queryText string, scope Scope, project string, threshold float64, limit int) ([]RecallResult, error)
func (*MemoryIndex) Upsert ¶
func (mi *MemoryIndex) Upsert(m *Memory) error
type MemoryService ¶
type MemoryService struct {
// contains filtered or unexported fields
}
func NewMemoryService ¶
func (*MemoryService) Close ¶
func (s *MemoryService) Close() error
func (*MemoryService) Ingest ¶
func (s *MemoryService) Ingest(ctx context.Context, turnMessages []message.Message)
func (*MemoryService) Recall ¶
func (s *MemoryService) Recall(ctx context.Context, query string) []Memory
func (*MemoryService) WaitReconcile ¶ added in v0.1.5
func (s *MemoryService) WaitReconcile()
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore(dir string) (*MemoryStore, error)
func (*MemoryStore) Delete ¶
func (s *MemoryStore) Delete(scope Scope, project string, id string) error
func (*MemoryStore) Dir ¶
func (s *MemoryStore) Dir() string
func (*MemoryStore) List ¶
func (s *MemoryStore) List(scope Scope, project string) ([]string, error)
func (*MemoryStore) ListProjectHashes ¶ added in v0.1.3
func (s *MemoryStore) ListProjectHashes() ([]string, error)
func (*MemoryStore) Write ¶
func (s *MemoryStore) Write(m *Memory) error
type RecallResult ¶
Click to show internal directories.
Click to hide internal directories.