Documentation
¶
Index ¶
- func LoadOPENAI_API_KEY() (string, error)
- func WithConfig(openai_apikey string, conf config.Configuration) types.TzapConnector
- type PartialComposite
- func (pc PartialComposite) AddEmbeddingDocument(ctx context.Context, docID string, embedding [1536]float32, ...) error
- func (pc PartialComposite) CountTokens(ctx context.Context, content string) (int, error)
- func (pc PartialComposite) DeleteEmbeddingDocument(ctx context.Context, docID string) error
- func (pc PartialComposite) DeleteEmbeddingDocuments(ctx context.Context, ids []string) error
- func (pc PartialComposite) FetchEmbedding(ctx context.Context, content ...string) ([][1536]float32, error)
- func (pc PartialComposite) GenerateChat(ctx context.Context, messages []types.Message, stream bool, functions string) (types.CompletionMessage, error)
- func (pc PartialComposite) GetEmbeddingDocument(ctx context.Context, docID string) (types.Vector, bool, error)
- func (pc PartialComposite) ListAllEmbeddingsIds(ctx context.Context) (types.SearchResults, error)
- func (pc PartialComposite) OffsetTokens(ctx context.Context, content string, from int, to int) (string, int, error)
- func (pc PartialComposite) SearchWithEmbedding(ctx context.Context, embedding types.QueryFilter, k int) (types.SearchResults, error)
- func (pc PartialComposite) TextToSpeech(ctx context.Context, content, language, voice string) (*[]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadOPENAI_API_KEY ¶ added in v0.9.3
func WithConfig ¶
func WithConfig(openai_apikey string, conf config.Configuration) types.TzapConnector
Types ¶
type PartialComposite ¶
type PartialComposite struct { *types.UnimplementedTGenerator OpenaiTgenerator *openaiconnector.OpenaiTgenerator VoiceGenerator types.TGenerator }
func (PartialComposite) AddEmbeddingDocument ¶ added in v0.7.12
func (PartialComposite) CountTokens ¶
func (PartialComposite) DeleteEmbeddingDocument ¶ added in v0.7.12
func (pc PartialComposite) DeleteEmbeddingDocument(ctx context.Context, docID string) error
func (PartialComposite) DeleteEmbeddingDocuments ¶ added in v0.9.3
func (pc PartialComposite) DeleteEmbeddingDocuments(ctx context.Context, ids []string) error
func (PartialComposite) FetchEmbedding ¶ added in v0.7.12
func (PartialComposite) GenerateChat ¶
func (pc PartialComposite) GenerateChat(ctx context.Context, messages []types.Message, stream bool, functions string) (types.CompletionMessage, error)
func (PartialComposite) GetEmbeddingDocument ¶ added in v0.7.12
func (PartialComposite) ListAllEmbeddingsIds ¶ added in v0.7.12
func (pc PartialComposite) ListAllEmbeddingsIds(ctx context.Context) (types.SearchResults, error)
func (PartialComposite) OffsetTokens ¶
func (PartialComposite) SearchWithEmbedding ¶ added in v0.7.12
func (pc PartialComposite) SearchWithEmbedding(ctx context.Context, embedding types.QueryFilter, k int) (types.SearchResults, error)
func (PartialComposite) TextToSpeech ¶
Click to show internal directories.
Click to hide internal directories.