langchain.js
    Preparing search index...
    interface HNSWConfig {
        ef?: number;
        efConstruction?: number;
        m?: number;
    }
    Index

    Properties

    ef?: number

    Size of the dynamic candidate list during search. Higher values improve recall but increase search time. Can be adjusted per query for performance tuning.

    40
    
    efConstruction?: number

    Size of the dynamic candidate list during construction. Higher values improve index quality but increase build time.

    200
    
    m?: number

    Maximum number of connections for each node in the graph. Higher values improve recall but increase memory usage and build time.

    16