You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sending a list of sentences to the Flask API being served in the Docker container.
It looks as though it get an embedding for the first sentence and nothing more.
questions = self.target['source'] # self.target is a pd.DataFrame
q_params = {"q": questions, "lang": self.lang}
q_resp = requests.get(url=url, params=q_params).json()
HTTP request looks good, with all my queries showing up...
request.args.get() returns a single value, the first if there are multiple. The solution is to change it to request.args.getlist().
This creates another issue because when the temp file is written out, it's expecting a string instead of a list. I chose not to pursue fixing this because I figured it would cause more downstream errors.
It's unclear to me whether or not the text_processing and encoding functions can handle multiple sentences. If they can, what's the format they expect?
Hello,
I'm sending a list of sentences to the Flask API being served in the Docker container.
It looks as though it get an embedding for the first sentence and nothing more.
HTTP request looks good, with all my queries showing up...
However, when i inspect my objects I'm only seeing one embedding for the first sentence in my dataset
The text was updated successfully, but these errors were encountered: