-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ValidationError from haystack API when attempting curl request to doc-qa #387
Comments
Fix verified for doc-qa route with latest fixes from #390. Thank for for the quick response to this! However, running faq-qa route (ie curl --request POST --url 'http://127.0.0.1:8000/models/1/faq-qa' --data '{"questions": ["How is the virus spreading?"]}') still throws: I figured this was due to EMBEDDING_MODEL_PATH not being set, so I tried setting it as env variable and also as default value in rest_api/config.py ( If this is a separate issue I can log a new defect. |
Beautiful. 2nd issue verified fixed from #389. Thanks! |
Hi, I'm coming again.There may be still a bug need to be fixed~
|
Hey @Graduo do you use latest haystack master? Because there we removed the doc-qa endpoint: |
OK I'll try it ~ |
And by the way , is there any way that I can fix it just by using such as "filter"(don't return " "meta": {"emb": " in results) without updating the latest haystack master? |
Sorry I do not understand what you mean by "it". |
I'm sorry I didn't explain my expectation clearly. I want to use the older version of haystack. I meet a bug as describe above, it's appears to be like as #387.The problem may be that the returned value in ‘’result‘‘ must be a string, but in my result : |
Describe the bug
This appears to be the same issue as #101 , but I'm able to reproduce with the latest release 0.3.0 and the latest master branch. When executing a curl request against the haystack API, I see a ValidationError when requesting to doc-qa and an AttributeError when requesting to faq_qa.
Error message
Here is the stack trace from the haystack server when I attempt to run:
curl --request POST --url 'http://127.0.0.1:8000/models/1/doc-qa' --data '{"questions": ["Where is covid from?"]}':
Here is the haystack stack trace when I attempt to run:
curl --request POST --url 'http://127.0.0.1:8000/models/1/faq-qa' --data '{"questions": ["Where is covid from?"]}':
Expected behavior
I expected a response.
Additional context
I've tried the latest release of haystack from pip as well as the latest directly installed from the github repo master branch.
To Reproduce
Start gunicorn server like: gunicorn rest_api.application:app -b 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker
Execute curl request like: curl --request POST --url 'http://127.0.0.1:8000/models/1/doc-qa' --data '{"questions": ["Where is covid from?"]}':
System:
The text was updated successfully, but these errors were encountered: