Skip to content
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

Getting 0 score while querying similar products #12

Open
sameersharma00747 opened this issue Jun 10, 2022 · 6 comments
Open

Getting 0 score while querying similar products #12

sameersharma00747 opened this issue Jun 10, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@sameersharma00747
Copy link

What's the reason for getting zero as score while querying similar vector in Redis. All results returned are having 0 as score.

@alonre24
Copy link
Collaborator

Can you describe the use case in more details? How did you create your index? what was your query?

@sameersharma00747
Copy link
Author

Actually I created 0.5 million random vectors of dimension 100. I used numpy.random.random() to generate 100 dimension vectors. As a primary key I had passed randomly generated product IDs. At the query stage as well, I was passing a 100 dimensional vector as a query vector.

@DvirDukhan
Copy link
Contributor

@sameersharma00747 are you using an apple-silicon machine? please notice this issue RediSearch/RediSearch#2725

@sameersharma00747
Copy link
Author

sameersharma00747 commented Jun 12, 2022

@DvirDukhan Yes, I am running it on Apple M1 pro. Also, I am using L2 as the distance metric.

@DvirDukhan
Copy link
Contributor

Can you please try it with Redis stack installation? The docker is x86 build so it is not compatible with m1.

@sameersharma00747
Copy link
Author

Sure, will try that. Hope it works.

@gkorland gkorland added the help wanted Extra attention is needed label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants