-
Notifications
You must be signed in to change notification settings - Fork 2
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
API Does Not Return a Web Format #9
Comments
To be clear, are we looking for: {
"msg": [
{ "score": 0.994469,
"incident_id": 73 },
{ "score": 0.994411,
"incident_id": 160 }
]
} or similar? |
With |
Encapsulation is fine, but it isn't really a message, it is a result, a collection of But Python understands JSON as well...
|
We were specifically using the string because it can be Would |
Isn't this the result of cosine similarity and not the input to that function? Result works. Something more specific is a bit better though. |
It is the result but also may be the input for future endeavors in additional lambdas and such, we were wanting to talk about that this coming meeting, and I talk about it briefly in the PR I just opened |
The API is currently returning data in string format like,
'[(0.9944695830345154, 73), (0.9944115281105042, 160), (0.994175374507904, 81)]'
is not a web format. It should return JSON formatted data.The text was updated successfully, but these errors were encountered: