-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nomic-ai modernbert #4320
add nomic-ai modernbert #4320
Conversation
tests/search/embedding/10-docs.json
Outdated
@@ -0,0 +1,13 @@ | |||
[ | |||
{ "remove": "id:test:doc::1" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the remove operation neccessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's only there to remove the single doc (in docs.json) used by the other tests. Will clean up.
{ | ||
"kw": "hello", | ||
"qtext": "Hello world", | ||
"dtext": "Hello world", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of dtext
?
#puts("OK[#{idx}]: #{expval}") | ||
end | ||
|
||
def check_prefix_suffix(expected_v, actual_v, fixlen) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this method is just to skip comparison of the middle element (index 5
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it's to skip the middle 758 elements in the actual vector - comparing just the 5 first and last. index 5 is a placeholder from where the python "torch" library prints "...".
@bjorncs please review
@glebashnik FYI