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

Sweep: Utility Function for Vector Similarity Search (βœ“ Sandbox Passed) #20

Closed

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Mar 13, 2024

PR Feedback (click)

  • πŸ‘ Sweep Did Well
  • πŸ‘Ž Sweep Needs Improvement

Description

This pull request adds a utility function for vector similarity search in the API/database.py file. It also adds a new route for face recognition in the API/route.py file.

Summary

  • Added find_similar_vectors method to the API/database.py file to find the top n most similar vectors in the database using Euclidean distance.
  • Added a new route /recognise_face to the API/route.py file for face recognition.
  • The /recognise_face route takes an embedding vector and the number of top similar vectors to return.
  • The route calls the find_similar_vectors method to find the most similar face embeddings in the database.
  • Returns a dictionary containing the top n most similar face embeddings.

Fixes #18.


πŸŽ‰ Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

πŸ’‘ To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

Copy link
Author

sweep-ai bot commented Mar 13, 2024

Rollback Files For Sweep

  • Rollback changes to API/route.py
  • Rollback changes to API/database.py

This is an automated message generated by Sweep AI.

@sweep-ai sweep-ai bot added the sweep label Mar 13, 2024
Copy link

Hi there! πŸ‘‹ Thanks for opening a PR. πŸŽ‰ To get the most out of Senior Dev, please sign up in our Web App, connect your GitHub account, and add/join your organization devansh-shah-11. After that, you will receive code reviews beginning on your next opened PR. πŸš€

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 86.98%. Comparing base (91e83d1) to head (7b8ca4e).

Files Patch % Lines
API/route.py 22.22% 7 Missing ⚠️
API/database.py 33.33% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   89.64%   86.98%   -2.66%     
==========================================
  Files           6        6              
  Lines         280      292      +12     
==========================================
+ Hits          251      254       +3     
- Misses         29       38       +9     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Devasy23 Devasy23 closed this Jun 4, 2024
@Devasy23 Devasy23 deleted the sweep/utility_function_for_vector_similarity_s_0cb05 branch October 29, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Utility Function for Vector Similarity Search
3 participants