recommend

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package recommend provides AI-powered repository recommendations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecommendOptions

type RecommendOptions struct {
	Query             string
	Limit             int
	Filters           search.SearchFilters
	DB                *sql.DB
	EmbeddingProvider provider.EmbeddingProvider
	LLMProvider       provider.LLMProvider
}

RecommendOptions configures the recommendation query.

type RecommendResult

type RecommendResult struct {
	Recommendations      []Recommendation
	Query                string
	CandidatesConsidered int
	InputTokens          int
	OutputTokens         int
	DurationMs           int64
}

RecommendResult contains the recommendation results.

func RecommendRepos

func RecommendRepos(ctx context.Context, opts RecommendOptions) (RecommendResult, error)

RecommendRepos gets AI-powered repository recommendations.

type Recommendation

type Recommendation struct {
	Rank         int
	RepoFullName string
	HTMLURL      string
	Reasoning    string
}

Recommendation represents a single repository recommendation.

Jump to

Keyboard shortcuts

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