Closed Devasy23 closed 3 months ago
You ran out of the free tier GPT-4 tickets! We no longer support running Sweep with GPT-3.5 as it is too unreliable. Here are your options:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.
This is an automated message generated by Sweep AI.
Feature Request: New Endpoint for
recognise_face()
Description
We need a new endpoint,
recognise_face()
, that accepts a base64 string as input. This endpoint should convert the base64 string into embeddings using the same process as thecreate_new_faceEntry()
endpoint.Once the embeddings are calculated, the endpoint should run a vector search query on our MongoDB Atlas database. The search should use Euclidean distance as the similarity measure to find the most similar face in the database.
Expected Behavior
The endpoint should return the
EmployeeCode
and other associated information of the most similar face found in the database. If no similar face is found, the endpoint should return an appropriate error message.Benefits
This feature will allow us to identify faces from images without having to manually compare the embeddings. This could be useful in a variety of scenarios, such as employee check-in/check-out, security checks, etc.
Tasks
recognise_face()
endpoint.