Documentation
¶
Index ¶
- func TodayDate() string
- type IndexManager
- func (m *IndexManager) Close() error
- func (m *IndexManager) ReadFile(relPath string, opts ReadFileOptions) (string, string, error)
- func (m *IndexManager) Search(ctx context.Context, query string, opts SearchOptions) ([]SearchResult, error)
- func (m *IndexManager) Status(ctx context.Context) SearchStatus
- func (m *IndexManager) Sync(ctx context.Context, force bool) error
- type ReadFileOptions
- type SearchManager
- type SearchOptions
- type SearchResult
- type SearchStatus
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexManager ¶ added in v0.2.4
type IndexManager struct {
// contains filtered or unexported fields
}
func NewIndexManager ¶ added in v0.2.4
func NewIndexManager(cfg *config.Config, workspace string) (*IndexManager, error)
func (*IndexManager) Close ¶ added in v0.2.4
func (m *IndexManager) Close() error
func (*IndexManager) ReadFile ¶ added in v0.2.4
func (m *IndexManager) ReadFile(relPath string, opts ReadFileOptions) (string, string, error)
func (*IndexManager) Search ¶ added in v0.2.4
func (m *IndexManager) Search(ctx context.Context, query string, opts SearchOptions) ([]SearchResult, error)
func (*IndexManager) Status ¶ added in v0.2.4
func (m *IndexManager) Status(ctx context.Context) SearchStatus
type ReadFileOptions ¶ added in v0.2.4
type SearchManager ¶ added in v0.2.4
type SearchManager interface {
Search(ctx context.Context, query string, opts SearchOptions) ([]SearchResult, error)
ReadFile(relPath string, opts ReadFileOptions) (text string, resolvedPath string, err error)
Sync(ctx context.Context, force bool) error
Status(ctx context.Context) SearchStatus
Close() error
}
type SearchOptions ¶ added in v0.2.4
type SearchResult ¶ added in v0.2.4
type SearchStatus ¶ added in v0.2.4
type SearchStatus struct {
Enabled bool `json:"enabled"`
Provider string `json:"provider,omitempty"`
Model string `json:"model,omitempty"`
DBPath string `json:"dbPath,omitempty"`
Files int `json:"files"`
Chunks int `json:"chunks"`
VectorEnabled bool `json:"vectorEnabled"`
VectorReady bool `json:"vectorReady"`
VectorDims int `json:"vectorDims"`
FTSEnabled bool `json:"ftsEnabled"`
FTSReady bool `json:"ftsReady"`
MinScore float64 `json:"minScore"`
MaxResults int `json:"maxResults"`
LastError string `json:"lastError,omitempty"`
}
type Store ¶
func (*Store) AppendHistory ¶ added in v0.2.3
func (*Store) EnsureInitialized ¶
func (*Store) GetContext ¶
func (*Store) ReadLongTerm ¶
func (*Store) WriteLongTerm ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.