Documentation
¶
Index ¶
- Constants
- type Chroma
- func (c *Chroma) Deinit(_ context.Context) error
- func (c *Chroma) Init(ctx context.Context, name string) error
- func (c *Chroma) Reset(ctx context.Context) error
- func (c *Chroma) Save(ctx context.Context, text string, meta map[string]interface{}, _ string) error
- func (c *Chroma) Search(ctx context.Context, query string, limit int32, threshold float32) ([]interface{}, error)
- type Collection
- type Config
- type Ragx
- func (r *Ragx) Deinit(_ context.Context) error
- func (r *Ragx) Init(_ context.Context, name string) error
- func (r *Ragx) Reset(_ context.Context) error
- func (r *Ragx) Save(_ context.Context, text string, meta map[string]interface{}, agent string) error
- func (r *Ragx) Search(_ context.Context, query string, limit int32, threshold float32) ([]interface{}, error)
- type Sqlite
- func (s *Sqlite) Deinit(_ context.Context) error
- func (s *Sqlite) Init(ctx context.Context, _ string) error
- func (s *Sqlite) Reset(_ context.Context) error
- func (s *Sqlite) Save(_ context.Context, text string, meta map[string]interface{}, agent string) error
- func (s *Sqlite) Search(_ context.Context, _ string, limit int32, _ float32) ([]interface{}, error)
- type Store
Constants ¶
View Source
const ( ProviderChroma = "chroma" ProviderRagx = "ragx" ProviderSqlite = "sqlite" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chroma ¶
type Chroma struct {
Url string
Client *chroma.Client
Collection *chroma.Collection
RecordSet *types.RecordSet
}
type Collection ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.