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 Postgres
- func (p *Postgres) Deinit(_ context.Context) error
- func (p *Postgres) Init(_ context.Context, _ string) error
- func (p *Postgres) Reset(_ context.Context) error
- func (p *Postgres) Save(_ context.Context, text string, meta map[string]interface{}, agent string) error
- func (p *Postgres) 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
- type Vecx
- func (v *Vecx) Deinit(_ context.Context) error
- func (v *Vecx) Init(_ context.Context, name string) error
- func (v *Vecx) Reset(_ context.Context) error
- func (v *Vecx) Save(_ context.Context, text string, meta map[string]interface{}, agent string) error
- func (v *Vecx) Search(_ context.Context, query string, limit int32, threshold float32) ([]interface{}, error)
Constants ¶
View Source
const ( ProviderChroma = "chroma" ProviderPostgres = "postgres" ProviderSqlite = "sqlite" ProviderVecx = "vecx" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chroma ¶
type Chroma struct {
Host string
Port int
Client *chroma.Client
Collection *chroma.Collection
RecordSet *types.RecordSet
}
type Collection ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type Postgres ¶ added in v0.17.0
type Postgres struct {
Host string
Port int
User string
Pass string
// contains filtered or unexported fields
}
type Store ¶
Click to show internal directories.
Click to hide internal directories.