Skip to content

parse round floats as integers on payload indexing#8100

Merged
timvisee merged 4 commits intodevfrom
parse-round-floats-as-integers
Feb 11, 2026
Merged

parse round floats as integers on payload indexing#8100
timvisee merged 4 commits intodevfrom
parse-round-floats-as-integers

Conversation

@generall
Copy link
Member

JSON doesn't distinguish 5.0 and 5

Even though itternally in rust those are different types, there is no way to even properly display it in web-ui.
It creates unexpected behaviour.

This PR allows to treat round floats as integers.

@generall generall requested review from coszio and timvisee February 10, 2026 20:28
coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai bot Feb 11, 2026
Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple fix. I like it. Nice.

@qdrant qdrant deleted a comment from coderabbitai bot Feb 11, 2026
@timvisee timvisee merged commit 688c65b into dev Feb 11, 2026
15 checks passed
@timvisee timvisee deleted the parse-round-floats-as-integers branch February 11, 2026 09:39
timvisee added a commit that referenced this pull request Feb 13, 2026
* parse round floats as integers on payload indexing

* use backward conversion to validate if float is actualy integerable

* fmt

* Use then_some

---------

Co-authored-by: timvisee <tim@visee.me>
@timvisee timvisee mentioned this pull request Feb 17, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants