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

AB-415: Create similarity API endpoints #355

Closed
wants to merge 181 commits into from

Conversation

aidanlw17
Copy link
Contributor

@aidanlw17 aidanlw17 commented Jun 25, 2019

AB-415: Create similarity API endpoints

After building indices, we need to create endpoints that will allow users to interact with the similarity data that we have computed. In order to do this, we should start by creating the following endpoints:

Get similar recordings

/api/v1/uuid:mbid/similarity

This endpoint should take required parameters that are the metric to be used, and the MBID in question, with an optional parameter for the offset. For now, it will also accept index parameters which are the number of trees in the index, and the distance type. These parameters will allow us to select specific index builds while we are evaluating the effectiveness of parameter combinations.

Get bulk similar recordings

/api/v1/similarity

This endpoint takes the same index parameters metric, distance type, and number of trees as the single get similar recordings endpoint, however instead of taking mbid and offset parameters, it should accept a list of recordings similarly to other bulk endpoints.

Get similarity between recordings

/api/v1/<uuid(strict=False):mbid>/<uuid(strict=False):mbid>/similarity
This will return the distance (vector) for similarity between two specified recordings.

@aidanlw17 aidanlw17 changed the title [WIP] AB-415: Create similarity API endpoints AB-415: Create similarity API endpoints Jul 10, 2019
@aidanlw17
Copy link
Contributor Author

Closed as the content of this PR is covered in #364.

@aidanlw17 aidanlw17 closed this Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants