indexing

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func (*ChunkFiles) Execute

func (h *ChunkFiles) Execute(ctx context.Context, payload map[string]any) error

Execute processes the EXTRACT_SNIPPETS_FOR_COMMIT task using fixed-size text chunking.

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).

func (*CreateBM25Index) Execute

func (h *CreateBM25Index) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CREATE_BM25_INDEX_FOR_COMMIT task.

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).

func (*CreateCodeEmbeddings) Execute

func (h *CreateCodeEmbeddings) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CREATE_CODE_EMBEDDINGS_FOR_COMMIT task.

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.

func (*CreateExampleCodeEmbeddings) Execute

func (h *CreateExampleCodeEmbeddings) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CREATE_EXAMPLE_CODE_EMBEDDINGS_FOR_COMMIT task.

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.

func (*CreateExampleSummaryEmbeddings) Execute

func (h *CreateExampleSummaryEmbeddings) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CREATE_EXAMPLE_SUMMARY_EMBEDDINGS_FOR_COMMIT task.

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.

func (*CreateSummaryEmbeddings) Execute

func (h *CreateSummaryEmbeddings) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CREATE_SUMMARY_EMBEDDINGS_FOR_COMMIT task.

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.

func (*ExtractSnippets) Execute

func (h *ExtractSnippets) Execute(ctx context.Context, payload map[string]any) error

Execute processes the EXTRACT_SNIPPETS_FOR_COMMIT task.

type FileContentSource

type FileContentSource interface {
	FileContent(ctx context.Context, localPath string, commitSHA string, filePath string) ([]byte, error)
}

FileContentSource reads file content at a specific commit.

Jump to

Keyboard shortcuts

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