Typesense vector store.

Hierarchy

Constructors

Properties

FilterType: Partial<MultiSearchRequestSchema>
embeddings: Embeddings

Methods

  • Add documents to the vector store. Will be updated if in the metadata there is a document with the same id if is using the default import function. Metadata will be added in the columns of the schema based on metadataColumnNames.

    Parameters

    • documents: Document<Record<string, any>>[]

      Documents to add.

    Returns Promise<void>

  • Delete documents from the vector store.

    Parameters

    • documentIds: string[]

      ids of the documents to delete

    Returns Promise<void>

  • Search for similar documents with their similarity score.

    Parameters

    • vectorPrompt: number[]

      vector to search for

    • Optional k: number

      amount of results to return

    • filter: Partial<MultiSearchRequestSchema> = {}

    Returns Promise<[Document<Record<string, any>>, number][]>

    similar documents with their similarity score

Generated using TypeDoc