Open dawenxi-007 opened 2 months ago
Here is what is shown in the mesop WebUI.
I believe the instructions are outdated :/ We will fix that but the move to distributions and moving the agentic_system implementation to the llama-toolchain
repository means that you need to do the following:
llama distribution start
)Then the mesop
UI should work. Let me know if this works.
Thank @ashwinb for your quick response. Yes, I do have .env (content is BRAVE_SEARCH_API_KEY=xxxxx
) file under the llama-agentic-system
folder before I launched the distribution (llama distribution start --name local-llama-8b --port 5000
).
The mesop
UI works, but the Brave Search Engine was not working, at least, it is not fetching the right results.
Let me know if there is anything I can try.
From which directory did you launch the llama distribution start
command? Did that directory have the .env
file?
(llama_stack_inference_demo) tao@r7625h100:~/local/llama-agentic-system$ ll total 180 drwxrwxr-x 7 tao tao 4096 Aug 21 00:20 ./ drwxrwxr-x 4 tao tao 4096 Aug 20 22:23 ../ drwxrwxr-x 4 tao tao 4096 Aug 20 22:21 app/ -rw-rw-r-- 1 tao tao 3537 Aug 20 22:12 CODE_OF_CONDUCT.md -rw-rw-r-- 1 tao tao 1339 Aug 20 22:12 CONTRIBUTING.md -rw-rw-r-- 1 tao tao 87484 Aug 20 22:12 demo.png drwxrwxr-x 2 tao tao 4096 Aug 20 22:12 docs/ -rw-rw-r-- 1 tao tao 53 Aug 20 23:39 .env drwxrwxr-x 6 tao tao 4096 Aug 20 22:12 examples/ -rw-rw-r-- 1 tao tao 1062 Aug 20 22:12 .flake8 drwxrwxr-x 8 tao tao 4096 Aug 20 22:36 .git/ -rw-rw-r-- 1 tao tao 3092 Aug 20 22:12 .gitignore -rw-rw-r-- 1 tao tao 7645 Aug 20 22:12 LICENSE -rw-rw-r-- 1 tao tao 25 Aug 20 22:12 MANIFEST.in -rw-rw-r-- 1 tao tao 1345 Aug 20 22:12 .pre-commit-config.yaml -rw-rw-r-- 1 tao tao 87 Aug 20 22:12 pyproject.toml -rw-rw-r-- 1 tao tao 18289 Aug 20 22:12 README.md -rw-rw-r-- 1 tao tao 83 Aug 20 22:12 requirements.txt drwxrwxr-x 2 tao tao 4096 Aug 20 22:12 tests/
@ashwinb Is it any prompt format that I have to follow in the mesop WebUI window for the tool calling function?
@dawenxi-007 I have verified that this is broken right now. For some reason, loading the keys from .env
is not working. We will fix it.
PR has landed, but new packages still need to be deployed.
I am trying the tool calling function with Brave Search engine by following the simple instructions at https://github.com/meta-llama/llama-agentic-system#add-api-keys-for-tools.
Basically, I saved the api key inside an .env file by
BRAVE_SEARCH_API_KEY=xxxxx
run that at the CLI terminal. However, with the commandmesop app/main.py
, the search engine did not seem to work, giving the message like the knowledge is up to Dec. 2023.Also tried
PYTHONPATH=. mesop app/chat_with_custom_tools.py
, didn't work either, it gave the following info:Do we have more docs on how to enable this?