LocalAI/backend
Richard Palethorpe 3bcd238ed4 fix(stores): Actually check a vector is a unit vector/normalized
Instead of just summing the components to see if they equal 1.0, take
the actual magnitude/p-norm of the vector and check that is
approximately 1.0.

Note that this shouldn't change the order of results except in edge
cases if I am too lax with the precision of the equality
comparison. However it should improve performance for normalized
vectors which were being misclassified.

Signed-off-by: Richard Palethorpe <io@richiejp.com>
2025-01-22 11:44:59 +00:00
..
cpp chore(llama.cpp): update dependency (#4628) 2025-01-18 11:55:13 +01:00
go fix(stores): Actually check a vector is a unit vector/normalized 2025-01-22 11:44:59 +00:00
python chore(deps): pin numba 2025-01-19 09:07:56 +01:00
backend.proto feat: add machine tag and inference timings (#4577) 2025-01-17 17:05:58 +01:00