Documentation
¶
Index ¶
- Constants
- type Config
- type KnowledgeService
- func (s *KnowledgeService) Query(ctx context.Context, query string) ([]string, error)
- func (s *KnowledgeService) Store(ctx context.Context, content string) error
- func (s *KnowledgeService) StoreEmbedding(ctx context.Context, content string, embedding []float64) error
- func (s *KnowledgeService) Truncate(ctx context.Context) error
- type MemoryService
- type Service
Constants ¶
View Source
const ( RoleSystem = "system" RoleUser = "user" RoleAssistant = "assistant" RoleTool = "tool" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type KnowledgeService ¶ added in v0.0.4
type KnowledgeService struct {
V *Service
}
func NewKnowledge ¶ added in v0.0.4
func NewKnowledge(ctx context.Context, v *Service) (*KnowledgeService, error)
func (*KnowledgeService) Store ¶ added in v0.0.4
func (s *KnowledgeService) Store(ctx context.Context, content string) error
func (*KnowledgeService) StoreEmbedding ¶ added in v0.0.4
type MemoryService ¶ added in v0.0.5
func (*MemoryService) Store ¶ added in v0.0.5
func (s *MemoryService) Store(ctx context.Context, role, content string) error
func (*MemoryService) StoreEmbedding ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.