Open vintrocode opened 3 years ago
I spotted one issue in app.py
. In the code below...
@app.route("/vectorize")
def vectorize():
content = request.args.get('q')
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