Type alias WithSim<Schema>

WithSim<Schema>: Schema & {
    $similarity?: number;
}

Adds $similarity?: number to the given type, representing the vector similarity score of the document if a vector search was performed.

Type Parameters

Type declaration

  • Optional $similarity?: number