index

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexResult

type IndexResult struct {
	IndexedFiles    int   `json:"indexed_files"`
	IndexedItems    int   `json:"indexed_items"`
	SkippedFiles    int   `json:"skipped_files"`
	IndexTimeMs     int64 `json:"index_time_ms"`
	EmbeddingTimeMs int64 `json:"embedding_time_ms"`
}

IndexResult contains the results of an indexing operation

type Indexer

type Indexer struct {
	// contains filtered or unexported fields
}

Indexer indexes code for semantic search

func NewIndexer

func NewIndexer(embedder *embedding.Engine, store *vectorstore.Store, tracker *filetracker.Tracker, logger *logrus.Logger) *Indexer

NewIndexer creates a new indexer

func (*Indexer) Index

func (i *Indexer) Index(ctx context.Context, paths []string) (*IndexResult, error)

Index indexes the specified paths

func (*Indexer) IndexFiles

func (i *Indexer) IndexFiles(ctx context.Context, files []string) (*IndexResult, error)

IndexFiles indexes specific files without checking if already indexed Used for reindexing stale files

Jump to

Keyboard shortcuts

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