Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateCollection(name string) error
- func (c *Client) DeleteEntry(collection, entry string) ([]string, error)
- func (c *Client) GetEntryContent(collection, entry string) ([]EntryChunk, 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
- type EntryChunk
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) GetEntryContent ¶ added in v0.5.3
func (c *Client) GetEntryContent(collection, entry string) ([]EntryChunk, error)
GetEntryContent returns the chunks (id, content, metadata) for a specific entry in a collection.
func (*Client) ListCollections ¶
ListCollections lists all collections
func (*Client) ListEntries ¶
ListEntries lists all entries in a collection
Click to show internal directories.
Click to hide internal directories.