Documentation
¶
Index ¶
- type ChromemDB
- func (c *ChromemDB) Count() int
- func (c *ChromemDB) Delete(where map[string]string, whereDocuments map[string]string, ids ...string) error
- func (c *ChromemDB) GetByID(id string) (types.Result, error)
- func (c *ChromemDB) GetEmbeddingDimensions() (int, error)
- func (c *ChromemDB) Reset() error
- func (c *ChromemDB) Search(s string, similarEntries int) ([]types.Result, error)
- func (c *ChromemDB) Store(s string, metadata map[string]string) (Result, error)
- func (c *ChromemDB) StoreDocuments(s []string, metadata map[string]string) ([]Result, error)
- type LocalAIRAGDB
- func (db *LocalAIRAGDB) Count() int
- func (db *LocalAIRAGDB) Delete(where map[string]string, whereDocuments map[string]string, ids ...string) error
- func (db *LocalAIRAGDB) GetByID(id string) (types.Result, error)
- func (db *LocalAIRAGDB) GetEmbeddingDimensions() (int, error)
- func (db *LocalAIRAGDB) Reset() error
- func (db *LocalAIRAGDB) Search(s string, similarEntries int) ([]types.Result, error)
- func (db *LocalAIRAGDB) Store(s string, metadata map[string]string) (Result, error)
- func (db *LocalAIRAGDB) StoreDocuments(s []string, metadata map[string]string) ([]Result, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChromemDB ¶
type ChromemDB struct {
// contains filtered or unexported fields
}
func NewChromemDBCollection ¶
func (*ChromemDB) GetEmbeddingDimensions ¶ added in v0.4.1
type LocalAIRAGDB ¶
type LocalAIRAGDB struct {
// contains filtered or unexported fields
}
func NewLocalAIRAGDB ¶
func NewLocalAIRAGDB(storeClient *localai.StoreClient, openaiClient *openai.Client, embeddingsModel string) *LocalAIRAGDB
func (*LocalAIRAGDB) Count ¶
func (db *LocalAIRAGDB) Count() int
func (*LocalAIRAGDB) GetByID ¶ added in v0.3.0
func (db *LocalAIRAGDB) GetByID(id string) (types.Result, error)
func (*LocalAIRAGDB) GetEmbeddingDimensions ¶ added in v0.4.1
func (db *LocalAIRAGDB) GetEmbeddingDimensions() (int, error)
func (*LocalAIRAGDB) Reset ¶
func (db *LocalAIRAGDB) Reset() error
func (*LocalAIRAGDB) StoreDocuments ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.