Skip to content

Examine adding more off-heap vector scoring #13515

Open
@ChrisHegarty

Description

@ChrisHegarty

This issue has been filed to give consideration to the possibility of adding more off-heap vector scorers.

We recently added a MemorySegment Vector scorer for scoring byte vectors without copying on-heap - scorer loads values directly from the backing memory segment when available. Benchmarks show an approx 2x performance improvement by avoiding copying the vector data on-heap.

Floats

Loading vector data from float[] (the fallback), is only supported in JDK 22 - which might be fine. See https://bugs.openjdk.org/browse/JDK-8318678

Scalar quantized

Each of the possible quantized vector element sizes can be evaluated separately.

  • int7
  • int4
  • 1 bit ?

relates #13339

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions