Framework for finetunning the ToolFormer-based LM in a few shots manner
- Using zero-shot learning figure out what API to use given users' prompt;
- Build a prompt for the task and figure out the parameters of API call in "ToolFormer" way;
- Call the API
- Concatenate everything to return to user;
- Zero-shot learning for the task of intent classification
- Simple and intuitive integration for new API's
- Can be easily adopted for some chatbots (e.g. 🧩 Regis)
To work with this framework you need to create an .env file in the root of the repo with the following values:
HUGGINGFACE_API_TOKEN=api_key
OPEN_AI_API_TOKEN=api_key