Documentation
    Preparing search index...

    Core document processing pipeline.

    Handles extracting text, computing embeddings, and syncing with the vector store.

    Implements

    Index
    • Delete all chunks for a file from the vector store and remove metadata.

      Parameters

      • filePath: string

        The file to delete.

      Returns Promise<void>

    • Move a file's vector points from old path to new path without re-embedding. Re-applies inference rules against the new path.

      Parameters

      • oldPath: string

        The original file path.

      • newPath: string

        The new file path.

      Returns Promise<void>

    • Process a file through the full pipeline: extract, hash, chunk, embed, upsert.

      Parameters

      • filePath: string

        The file to process.

      Returns Promise<void>

    • Process a metadata update: merge into enrichment store, update Qdrant payloads (no re-embed). The stored file_path (casing included) and matched_rules are kept.

      Parameters

      • filePath: string

        The file whose metadata to update.

      • metadata: Record<string, unknown>

        The new metadata to merge.

      Returns Promise<Record<string, unknown> | null>

      The merged payload, or null if the file is not indexed.

    • Re-apply inference rules to a file without re-embedding (see reapplyFileRules: system fields and the stored file_path are re-asserted; interpolation failures are recorded as an issue).

      Parameters

      • filePath: string

        The file to update.

      Returns Promise<Record<string, unknown> | null>

      The merged metadata, or null if the file is not indexed.

    • Update compiled inference rules, template engine, and custom map lib.

      Parameters

      • compiledRules: CompiledRule[]

        The newly compiled rules.

      • OptionaltemplateEngine: TemplateEngine

        Optional updated template engine.

      • OptionalcustomMapLib: Record<string, (...args: unknown[]) => unknown>

        Optional updated custom JsonMap lib functions.

      Returns void