Documentation ¶
Index ¶
- func FilterFromChannelName(name string) map[string]string
- func FilterFromChannelTopic(topic string) map[string]string
- type Catalog
- func (cat *Catalog) CommandMagic() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandMore() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandResultSize() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandSearch() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandSearchKNN() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandSimilar() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandSimilarKNN() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) CommandText() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
- func (cat *Catalog) GetDocuments(identifier ...string) (map[string]*schema.UBSchema, error)
- func (cat *Catalog) GetEmbedding(queryString string) (embedding []float32, resultErr error)
- func (cat *Catalog) InitCommands(session *discord.Session) error
- func (cat *Catalog) Query2Embedding(queryString string) (string, error)
- func (cat *Catalog) Result2MessageEmbed(result *index.Result, stat *channelStatus) ([]*discordgo.MessageEmbed, error)
- func (cat *Catalog) Search(queryString string, filter map[string]string, embedding []float32, ...) (*index.Result, error)
- func (cat *Catalog) SearchKNN(filter map[string]string, embedding []float32, searchType SearchType, k int64, ...) (*index.Result, error)
- type SearchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterFromChannelName ¶
func FilterFromChannelTopic ¶
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func NewCatalogue ¶
func (*Catalog) CommandMagic ¶
func (cat *Catalog) CommandMagic() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandMore ¶
func (cat *Catalog) CommandMore() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandResultSize ¶
func (cat *Catalog) CommandResultSize() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandSearch ¶
func (cat *Catalog) CommandSearch() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandSearchKNN ¶
func (cat *Catalog) CommandSearchKNN() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandSimilar ¶
func (cat *Catalog) CommandSimilar() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandSimilarKNN ¶
func (cat *Catalog) CommandSimilarKNN() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) CommandText ¶
func (cat *Catalog) CommandText() (cmdFunc discord.CommandCreate, appCmd *discordgo.ApplicationCommand)
func (*Catalog) GetDocuments ¶
func (*Catalog) GetEmbedding ¶
func (*Catalog) Query2Embedding ¶
func (*Catalog) Result2MessageEmbed ¶
type SearchType ¶
type SearchType int
const ( SearchTypeSimple SearchType = iota SearchTypeEmbeddingMARC SearchTypeEmbeddingProse SearchTypeEmbeddingJSON )
Click to show internal directories.
Click to hide internal directories.