Hierarchy

  • VectorStore
    • TurbopufferVectorStore

Constructors

Properties

batchSize: number = 3000
caller: AsyncCaller
apiKey: string
apiUrl: string = "https://api.turbopuffer.com/v1"
distanceMetric: TurbopufferDistanceMetric = "cosine_distance"
namespace: string = "default"

Methods

  • Parameters

    • documents: DocumentInterface<Record<string, any>>[]
    • Optional options: {
          ids?: string[];
      }
      • Optional ids?: string[]

    Returns Promise<string[]>

  • Parameters

    • vectors: number[][]
    • documents: DocumentInterface<Record<string, any>>[]
    • Optional options: {
          ids?: string[];
      }
      • Optional ids?: string[]

    Returns Promise<string[]>

Generated using TypeDoc