Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + var ErrEmbedderMismatch = errors.New("reindex: embedder identity does not match manifest") + var ErrLocked = errors.New("build: dataset is locked by another ckv build/reindex") + var ErrNoManifest = errors.New("reindex: no manifest at OutDir — run `ckv build` first") + var ErrSchemaCascade = errors.New("reindex: CKG schema_version changed — run `ckv build` for a full rebuild") + func FetchMergedPRs(ctx context.Context, srcRoot string, opts PRFetchOptions) ([]prdoc.PRMeta, error) + func PreCheckByEstimate(rawNeedMB uint64, w io.Writer) error + func PromoteVersion(dataset, version string) error + type MemProvider interface + Read func() (MemStat, error) + type MemStat struct + AvailableMB uint64 + TotalMB uint64 + type Options struct + BatchSize int + CKGPath string + CKVIgnore []string + DisableContextualPrefix bool + DocsRoots []string + Embedder types.Embedder + FilesFromPath string + FlowCorpus string + Footprint *footprint.Logger + LLMPrefixModel string + Now func() time.Time + OutDir string + PRFetch *PRFetchOptions + PolicyPath string + ProgressOut io.Writer + SrcRoot string + Version string + type PRFetchOptions struct + Limit int + Repo string + Since time.Time + type PRTagger interface + UpdateRecentPRs func(ctx context.Context, filePRs map[string][]types.PRRef) (int, error) + type ReindexOptions struct + BatchSize int + CKVIgnore []string + DisableContextualPrefix bool + Embedder types.Embedder + Files []string + Footprint *footprint.Logger + LLMPrefixModel string + Now func() time.Time + OutDir string + PRFetch *PRFetchOptions + PolicyPath string + ProgressOut io.Writer + Since string + SrcRoot string + type ReindexResult struct + BuiltAt string + Chunks chunk.Stats + DBPath string + DocsReindexed int + FilesAdded int + FilesDeleted int + FilesModified int + FilesProcessed int + FilesResumed int + FilesSkipped int + FlowReindexed int + NewHead string + PRsIndexed int + PrevHead string + Validation sqlitevec.Validation + func Reindex(ctx context.Context, o ReindexOptions) (*ReindexResult, error) + type Result struct + BuiltAt string + Chunks chunk.Stats + DBPath string + FilesIndexed int + IndexedHead string + func Run(ctx context.Context, o Options) (*Result, error)