Documentation ¶
Index ¶
- Constants
- func NewSharedKnowledgeBaseID() string
- type Config
- type CreateKnowledgeBaseRequest
- type CreateKnowledgeBaseResponse
- type IngestFileRequest
- type KnowledgeBaseManager
- func (m *KnowledgeBaseManager) AddFile(ctx context.Context, id string, fileID string) error
- func (m *KnowledgeBaseManager) CreateKnowledgeBase(ctx context.Context, id string) (string, error)
- func (m *KnowledgeBaseManager) DeleteKnowledgeBase(ctx context.Context, id string) error
- func (m *KnowledgeBaseManager) ListFiles(ctx context.Context, id string) ([]string, error)
- func (m *KnowledgeBaseManager) NewAssistantKnowledgeBase(ctx context.Context, assistantID string) (string, error)
- func (m *KnowledgeBaseManager) NewSharedKnowledgeBase(ctx context.Context) (string, error)
- func (m *KnowledgeBaseManager) RemoveFile(ctx context.Context, id string, fileID string) error
Constants ¶
View Source
const (
)Variables ¶
This section is empty.
Functions ¶
func NewSharedKnowledgeBaseID ¶
func NewSharedKnowledgeBaseID() string
Types ¶
type Config ¶
type Config struct {
KnowledgeRetrievalAPIURL string `usage:"Knowledge retrieval API URL" env:"CLICKY_CHATS_KNOWLEDGE_RETRIEVAL_API_URL"`
}
type CreateKnowledgeBaseResponse ¶
type CreateKnowledgeBaseResponse struct {
CreateKnowledgeBaseRequest `json:",inline"`
}
type IngestFileRequest ¶
type KnowledgeBaseManager ¶
type KnowledgeBaseManager struct { Config // contains filtered or unexported fields }
func NewKnowledgeBaseManager ¶
func (*KnowledgeBaseManager) CreateKnowledgeBase ¶
func (*KnowledgeBaseManager) DeleteKnowledgeBase ¶
func (m *KnowledgeBaseManager) DeleteKnowledgeBase(ctx context.Context, id string) error
func (*KnowledgeBaseManager) NewAssistantKnowledgeBase ¶
func (*KnowledgeBaseManager) NewSharedKnowledgeBase ¶
func (m *KnowledgeBaseManager) NewSharedKnowledgeBase(ctx context.Context) (string, error)
func (*KnowledgeBaseManager) RemoveFile ¶
Click to show internal directories.
Click to hide internal directories.