Documentation
¶
Index ¶
- func ResolveCategory(repo *store.Repository, aiTags []string, cats []*store.Category) string
- type AnalysisResult
- type BatchAnalyzer
- type BatchOpts
- type BatchResult
- type Client
- type EmbeddingClient
- type Message
- type QueryIntent
- type SearchHit
- type SearchMode
- type SearchOpts
- type SearchResult
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveCategory ¶
Types ¶
type AnalysisResult ¶
type BatchAnalyzer ¶
type BatchAnalyzer struct {
// contains filtered or unexported fields
}
func NewBatchAnalyzer ¶
func (*BatchAnalyzer) Run ¶
func (b *BatchAnalyzer) Run(ctx context.Context, repos []*store.Repository, opts BatchOpts) (*BatchResult, error)
type BatchResult ¶
type EmbeddingClient ¶ added in v0.0.6
type EmbeddingClient struct {
// contains filtered or unexported fields
}
func NewEmbeddingClient ¶ added in v0.0.6
func NewEmbeddingClient(baseURL, apiKey, model string) *EmbeddingClient
type QueryIntent ¶ added in v0.0.5
type SearchHit ¶
type SearchHit struct {
Repo *store.Repository
Score float64
}
type SearchMode ¶ added in v0.0.6
type SearchMode string
const ( SearchModeVector SearchMode = "vector" SearchModeAI SearchMode = "ai" SearchModeBasicText SearchMode = "basic_text" )
type SearchOpts ¶ added in v0.0.5
type SearchResult ¶ added in v0.0.6
type SearchResult struct {
Hits []*SearchHit
Mode SearchMode
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewServiceWithEmbedding ¶ added in v0.0.6
func NewServiceWithEmbedding(client *Client, gh *github.Client, embeddingClient *EmbeddingClient) *Service
func (*Service) AnalyzeRepository ¶
func (s *Service) AnalyzeRepository(ctx context.Context, repo *store.Repository, readme string, cats []*store.Category) (*AnalysisResult, error)
Click to show internal directories.
Click to hide internal directories.