Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkFiles ¶
type ChunkFiles struct {
// contains filtered or unexported fields
}
ChunkFiles creates fixed-size text chunks from commit files.
func NewChunkFiles ¶
func NewChunkFiles( repoStore repository.RepositoryStore, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, lineRangeStore chunk.LineRangeStore, fileStore repository.FileStore, fileContent FileContentSource, params chunking.ChunkParams, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) *ChunkFiles
NewChunkFiles creates a new ChunkFiles handler.
type CreateBM25Index ¶
type CreateBM25Index struct {
// contains filtered or unexported fields
}
CreateBM25Index creates BM25 keyword index for commit enrichments.
func NewCreateBM25Index ¶
func NewCreateBM25Index( bm25Service *domainservice.BM25, enrichmentStore enrichment.EnrichmentStore, trackerFactory handler.TrackerFactory, logger zerolog.Logger, subtype enrichment.Subtype, ) *CreateBM25Index
NewCreateBM25Index creates a new CreateBM25Index handler. The subtype parameter controls which enrichments to index (e.g. SubtypeSnippet or SubtypeChunk).
type CreateCodeEmbeddings ¶
type CreateCodeEmbeddings struct {
// contains filtered or unexported fields
}
CreateCodeEmbeddings creates vector embeddings for commit enrichments.
func NewCreateCodeEmbeddings ¶
func NewCreateCodeEmbeddings( codeIndex handler.VectorIndex, enrichmentStore enrichment.EnrichmentStore, trackerFactory handler.TrackerFactory, logger zerolog.Logger, subtype enrichment.Subtype, ) (*CreateCodeEmbeddings, error)
NewCreateCodeEmbeddings creates a new CreateCodeEmbeddings handler. The subtype parameter controls which enrichments to embed (e.g. SubtypeSnippet or SubtypeChunk).
type CreateExampleCodeEmbeddings ¶
type CreateExampleCodeEmbeddings struct {
// contains filtered or unexported fields
}
CreateExampleCodeEmbeddings creates vector embeddings for extracted example code.
func NewCreateExampleCodeEmbeddings ¶
func NewCreateExampleCodeEmbeddings( codeIndex handler.VectorIndex, enrichmentStore enrichment.EnrichmentStore, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) (*CreateExampleCodeEmbeddings, error)
NewCreateExampleCodeEmbeddings creates a new CreateExampleCodeEmbeddings handler.
type CreateExampleSummaryEmbeddings ¶
type CreateExampleSummaryEmbeddings struct {
// contains filtered or unexported fields
}
CreateExampleSummaryEmbeddings creates vector embeddings for example summary enrichments.
func NewCreateExampleSummaryEmbeddings ¶
func NewCreateExampleSummaryEmbeddings( textIndex handler.VectorIndex, enrichmentStore enrichment.EnrichmentStore, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) (*CreateExampleSummaryEmbeddings, error)
NewCreateExampleSummaryEmbeddings creates a new CreateExampleSummaryEmbeddings handler.
type CreateSummaryEmbeddings ¶
type CreateSummaryEmbeddings struct {
// contains filtered or unexported fields
}
CreateSummaryEmbeddings creates vector embeddings for snippet summary enrichments.
func NewCreateSummaryEmbeddings ¶
func NewCreateSummaryEmbeddings( textIndex handler.VectorIndex, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) (*CreateSummaryEmbeddings, error)
NewCreateSummaryEmbeddings creates a new CreateSummaryEmbeddings handler.
type ExtractSnippets ¶
type ExtractSnippets struct {
// contains filtered or unexported fields
}
ExtractSnippets extracts code snippets from commit files using AST parsing.
func NewExtractSnippets ¶
func NewExtractSnippets( repoStore repository.RepositoryStore, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, fileStore repository.FileStore, slicerInstance *slicing.Slicer, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) *ExtractSnippets
NewExtractSnippets creates a new ExtractSnippets handler.