NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4.24k stars 403 forks source link

Unable to Run fact check #357

Open analyticalpicasso opened 9 months ago

analyticalpicasso commented 9 months ago

Hi I was running actions.py via self_fact_check but unsuccessful. As I am getting below error.

Error 'LLMTaskManager' object has no attribute 'get_stop_tokens' while execution self_check_facts Traceback (most recent call last): File "path\lib\site-packages\nemoguardrails\actions\action_dispatcher.py", line 178, in execute_action result = await result File "path\Temp\ipykernel_64220\828413097.py", line 36, in self_check_facts stop = llm_task_manager.get_stop_tokens(task=Task.SELF_CHECK_FACTS) AttributeError: 'LLMTaskManager' object has no attribute 'get_stop_tokens'

drazvan commented 9 months ago

Hi @analyticalpicasso! It seems that somehow you're mixing an older installed version with the latest code. If you've pulled the latest changes, make sure you also do pip install -e . again.

analyticalpicasso commented 9 months ago

I have tried to reinstall as per your suggestion. This is still not working.

drazvan commented 9 months ago

Can you try to install from scratch version 0.8.0, which is now published, in a fresh venv? And if it's still reproducible, do share the steps with a minimal configuration so we can look into it.