Documentation
¶
Index ¶
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 NewChromemDB ¶
type DeleteRequest ¶
type DeleteRequest struct {
Keys [][]float32 `json:"keys"`
}
type FindRequest ¶
type FindResponse ¶
type GetRequest ¶
type GetRequest struct {
Keys [][]float32 `json:"keys"`
}
type GetResponse ¶
type LocalAIRAGDB ¶
type LocalAIRAGDB struct {
// contains filtered or unexported fields
}
func NewLocalAIRAGDB ¶
func NewLocalAIRAGDB(storeClient *StoreClient, openaiClient *openai.Client) *LocalAIRAGDB
func (*LocalAIRAGDB) Count ¶
func (db *LocalAIRAGDB) Count() int
func (*LocalAIRAGDB) Reset ¶
func (db *LocalAIRAGDB) Reset() error
func (*LocalAIRAGDB) Search ¶
func (db *LocalAIRAGDB) Search(s string, similarEntries int) ([]string, error)
func (*LocalAIRAGDB) Store ¶
func (db *LocalAIRAGDB) Store(s string) error
type SetRequest ¶
Define request and response struct formats based on the API documentation
type StoreClient ¶
Define a struct to hold your store API client
func NewStoreClient ¶
func NewStoreClient(baseUrl, apiToken string) *StoreClient
Constructor for StoreClient
func (*StoreClient) Delete ¶
func (c *StoreClient) Delete(req DeleteRequest) error
Implement Delete method
func (*StoreClient) Find ¶
func (c *StoreClient) Find(req FindRequest) (*FindResponse, error)
Implement Find method
func (*StoreClient) Get ¶
func (c *StoreClient) Get(req GetRequest) (*GetResponse, error)
Implement Get method
Click to show internal directories.
Click to hide internal directories.