docrag

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Answer

func Answer(
	ctx context.Context,
	queries *schema.Queries,
	llmClient llm.Client,
	channelName string,
	conversation []string,
	botRequest string,
) (string, []string, error)

func Compute added in v0.0.18

func Compute(
	ctx context.Context,
	queries *schema.Queries,
	llmClient llm.Client,
	slackIntegration slack_integration.Integration,
	channelID string,
	ts string,
	text string,
) (string, []string, error)

func Debug added in v0.0.13

func Debug(
	ctx context.Context,
	queries *schema.Queries,
	llmClient llm.Client,
	channelName string,
	question string,
	botRequest string,
) ([]schema.DebugGetClosestDocsRow, error)

func New added in v0.0.19

func New(bot *internal.Bot, slackIntegration slack_integration.Integration, llmClient llm.Client) *handler

func Post

func Post(
	ctx context.Context,
	queries *schema.Queries,
	llmClient llm.Client,
	slackIntegration slack_integration.Integration,
	channelID string,
	ts string,
	text string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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