Typesense vector store configuration.

interface TypesenseConfig {
    schemaName: string;
    typesenseClient: default;
    columnNames?: {
        metadataColumnNames?: string[];
        pageContent?: string;
        vector?: string;
    };
    searchParams?: MultiSearchRequestSchema;
    import?<T>(data, collectionName): Promise<void>;
}

Hierarchy

  • AsyncCallerParams
    • TypesenseConfig

Properties

schemaName: string

Typesense schema name in which documents will be stored and searched.

typesenseClient: default

Typesense client.

columnNames?: {
    metadataColumnNames?: string[];
    pageContent?: string;
    vector?: string;
}

Column names.

Type declaration

  • Optional metadataColumnNames?: string[]

    Metadata column names.

    Default

    []
    
  • Optional pageContent?: string

    Page content column name.

    Default

    'text'
    
  • Optional vector?: string

    Vector column name.

    Default

    'vec'
    
searchParams?: MultiSearchRequestSchema

Typesense search parameters.

Default

{ q: '*', per_page: 5, query_by: '' }

Methods

  • Replace default import function. Default import function will update documents if there is a document with the same id.

    Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>

    Parameters

    • data: T[]
    • collectionName: string

    Returns Promise<void>

Generated using TypeDoc