-
Notifications
You must be signed in to change notification settings - Fork 29
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
Utility Function for Vector Similarity Search #18
Comments
🚀 Here's the PR! #20See Sweep's progress at the progress dashboard! ⚡ Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day. (tracking ID:
0b2bf4e2dc )For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets). Install Sweep Configs: Pull Request
Tip I can email you next time I complete a pull request if you set up your email here! Actions (click)
GitHub Actions✓Here are the GitHub Actions logs prior to making any changes: Sandbox logs for
|
Description
We need a new utility function in Database.py that performs a vector similarity search. This function should take an embedding vector as input and return the most similar vectors from the MongoDB Atlas database using Euclidean distance as the similarity measure.
This utility function will be used by the recognise_face() endpoint to find the most similar face in the database.
Expected Behavior
The endpoint should take n as input from the user and return the top n most similar vectors from MongoDB Database
Benefits
This feature will automate the finding of top n most similar vectors to the given face to help identify the employee
Tasks
Explore the MongoDB vector search tutorial
Write a function to return the most similar vectors
Checklist
API/database.py
✓ d6366eb EditAPI/database.py
✓ EditAPI/route.py
✓ 7b8ca4e EditAPI/route.py
✓ EditThe text was updated successfully, but these errors were encountered: