recent_activity

package
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebug added in v0.0.4

func GetDebug(
	ctx context.Context,
	qtx *schema.Queries,
	llmClient llm.Client,
	lexicalQuery string,
	semanticQuery string,
	interval time.Duration,
	botID string,
) ([]schema.DebugGetLatestServiceUpdatesRow, error)

GetDebug performs the same search as Get but returns additional debug information

Types

type Activity

type Activity struct {
	ChannelID    string
	Ts           string
	Attrs        dto.MessageAttrs
	SemanticRank int64
	LexicalRank  int64
	RRFScore     float64
}

func Get

func Get(
	ctx context.Context,
	qtx *schema.Queries,
	llmClient llm.Client,
	lexicalQuery string,
	semanticQuery string,
	interval time.Duration,
	botID string,
) ([]Activity, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL