Closed rerngvit closed 2 years ago
Hi there - if you would like to use --knowledge-access-method search_only
, you'll need to provide a search query generator that always generates a search query; the default for BlenderBot2 can additionally generate a token indicating memory retrieval.
I would specify --query-generator-model-file zoo:sea/bart_sq_gen/model
, as this is the search query generator used in the internet-augmented dialogue generation project
Thank you. Specifying the query generator model did resolve the error.
Bug description It seems that the agent BlenderBot2 with the option
knowledge-access-method
set tosearch_only
will have an assertion error at run time. (I have tested for the default access methodclassify
, which works normally as expected.)Reproduction steps
main
branch, e.g.,git clone https://github.com/facebookresearch/ParlAI
python3 -m venv dev_parlai
source dev_parlai/bin/activate
pip install -r requirement.txt
python setup.py develop
git clone https://github.com/JulesGM/ParlAI_SearchEngine
python3 -m venv dev_search_server
source dev_search_server/bin/activate
pip install -r requirement.txt
python search_server.py serve --host 0.0.0.0:8080
parlai interactive --model-file zoo:blenderbot2/blenderbot2_400M/model --search_server 0.0.0.0:8080 --knowledge-access-method search_only
Enter Your Message:
hello
Expected behavior The bot should respond with normal conversation like when
knowledge-access-method
is not specified.Logs Please paste the command line output:
Additional context Add any other context about the problem here. (like proxy settings, network setup, overall goals, etc.)