rag

package
v0.0.0-...-7daaf31 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchMode

type MatchMode string
const (
	MatchModeAny MatchMode = "any"
	MatchModeAll MatchMode = "all"
)

type SearchToolsOptions

type SearchToolsOptions struct {
	Query     string
	Tags      []string
	MatchMode MatchMode
	Limit     int
}

type ToolSearchResult

type ToolSearchResult struct {
	ToolName        string
	Tags            []string
	SimilarityScore float64
}

ToolSearchResult represents a search result with tool name and similarity score.

type ToolsetVectorStore

type ToolsetVectorStore struct {
	// contains filtered or unexported fields
}

func NewToolsetVectorStore

func NewToolsetVectorStore(logger *slog.Logger, tracerProvider trace.TracerProvider, db *pgxpool.Pool, chatClient *openrouter.ChatClient) *ToolsetVectorStore

func (*ToolsetVectorStore) GetToolsetAvailableTags

func (s *ToolsetVectorStore) GetToolsetAvailableTags(ctx context.Context, toolset types.Toolset) ([]string, error)

func (*ToolsetVectorStore) IndexToolset

func (s *ToolsetVectorStore) IndexToolset(ctx context.Context, toolset types.Toolset) (err error)

func (*ToolsetVectorStore) SearchToolsetTools

func (s *ToolsetVectorStore) SearchToolsetTools(ctx context.Context, toolset types.Toolset, opts SearchToolsOptions) (matches []*ToolSearchResult, err error)

func (*ToolsetVectorStore) ToolsetToolsAreIndexed

func (s *ToolsetVectorStore) ToolsetToolsAreIndexed(ctx context.Context, toolset types.Toolset) (indexed bool, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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