Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateCollection(name string) error
- func (c *Client) DeleteEntry(collection, entry string) ([]string, error)
- func (c *Client) ListCollections() ([]string, error)
- func (c *Client) ListEntries(collection string) ([]string, error)
- func (c *Client) Reset(collection string) error
- func (c *Client) Search(collection, query string, maxResults int) ([]types.Result, error)
- func (c *Client) Store(collection, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
}
Client is a client for the RAG API
func (*Client) CreateCollection ¶
CreateCollection creates a new collection
func (*Client) DeleteEntry ¶
DeleteEntry deletes an Entry in a collection and return the entries left
func (*Client) ListCollections ¶
ListCollections lists all collections
func (*Client) ListEntries ¶
ListCollections lists all collections
Click to show internal directories.
Click to hide internal directories.