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.
A document that cannot be read does not stop the commit: the rest of the files are still chunked. Each failure is logged per file, and all failures are reported in one aggregated error after the loop so the unreadable documents are visible in task status without dropping the rest of the commit (issues #576, #553).
func NewChunkFiles ¶
func NewChunkFiles( repoStore repository.RepositoryStore, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, lineRangeStore sourcelocation.Store, fileStore repository.FileStore, commits CommitReader, fileContent FileContentSource, documentText DocumentTextSource, extractors *extraction.Extractors, textRenderers *extraction.TextRendererRegistry, params chunking.ChunkParams, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) *ChunkFiles
NewChunkFiles creates a new ChunkFiles handler. When documentText is nil, document files are skipped. When textRenderers is non-nil, document text is extracted per-page so that each chunk records the page it came from.
type CommitReader ¶ added in v1.4.0
type CommitReader interface {
CommitDetails(ctx context.Context, localPath string, commitSHA string) (git.CommitInfo, error)
}
CommitReader reads a commit from a working copy's git history.
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 CreatePageImageEmbeddings ¶ added in v1.3.0
type CreatePageImageEmbeddings struct {
// contains filtered or unexported fields
}
CreatePageImageEmbeddings rasterizes page-image enrichments and stores their vision embeddings in a dedicated vector store.
func NewCreatePageImageEmbeddings ¶ added in v1.3.0
func NewCreatePageImageEmbeddings( repoStore repository.RepositoryStore, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, sourceLocStore sourcelocation.Store, fileStore repository.FileStore, rasterizers *rasterization.Registry, embedder search.Embedder, store search.Store, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) (*CreatePageImageEmbeddings, error)
NewCreatePageImageEmbeddings creates a new CreatePageImageEmbeddings 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 DocumentTextSource ¶ added in v1.2.0
DocumentTextSource extracts text from binary document files.
type ExtractPageImages ¶ added in v1.3.0
type ExtractPageImages struct {
// contains filtered or unexported fields
}
ExtractPageImages creates one enrichment per renderable page of each document file that the rasterization registry supports.
func NewExtractPageImages ¶ added in v1.3.0
func NewExtractPageImages( repoStore repository.RepositoryStore, enrichmentStore enrichment.EnrichmentStore, associationStore enrichment.AssociationStore, sourceLocStore sourcelocation.Store, fileStore repository.FileStore, commits CommitReader, rasterizers *rasterization.Registry, trackerFactory handler.TrackerFactory, logger zerolog.Logger, ) *ExtractPageImages
NewExtractPageImages creates a new ExtractPageImages handler. When rasterizers is nil, Execute returns immediately (no documents to rasterize).