Abstract class representing a store of vectors. Provides methods for adding vectors and documents, deleting from the store, and searching the store.

Hierarchy

Constructors

Properties

FilterType: CollectionFilter

Methods

  • Method to save vectors to AstraDB.

    Parameters

    • vectors: number[][]

      Vectors to save.

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

      The documents associated with the vectors.

    • Optional options: string[]

    Returns Promise<void>

    Promise that resolves when the vectors have been added.

  • Parameters

    • Optional _params: Record<string, any>

    Returns Promise<void>

  • Create a new collection in your Astra DB vector database and then connects to it. If the collection already exists, it will connect to it as well.

    Returns Promise<void>

    Promise that resolves if connected to the collection.

  • Parameters

    Returns Promise<DocumentInterface<Record<string, any>>[]>

  • Parameters

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

Generated using TypeDoc