Comments (1)
Hey Keith! Thank you very much for trying our Gorilla OpenFunctions model.
We have read your inputs & outputs. Here are some corrections and suggestions to have it output better result:
- The
messages
variable defines the natural language prompt that you come up with. For example, if you're using theget_current_weather
function, a prompt like "What's the weather like in SF?" will make the most sense for the model to assemble the function call. Here's an example setup:
messages = [{"role": "user", "content": "What's the weather like in SF?"}]
functions = [
{
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA. State must be included",
},
"unit": {"type": "string", "enum": ["celsius", "fahrenheit"]},
},
"required": ["location"],
},
}
]
- If you are experimenting with normal function calling, you should stick with v0 as it provides more stable experience. V1 is specifically designed for parallel function calling and we are making effort to actively improve that model.
- The motivation behind OpenFunctions is making function calls based on function documentation and natural language instruction. As this model is specifically designed for function calling, we donβt know how well it might behave for general purpose chatting :)
- In case you are not aware, we have a sample Jupyter notebook https://colab.research.google.com/drive/16M5J2H9F8YQora_W2PDnp120slZH-Mqd#scrollTo=eBd_fso7qFPX where we provided several examples and instructions to follow.
Again, thank you for using our model and let me know here if you need help!
from gorilla.
Related Issues (20)
- How to create APIBench?
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 1
- Website Assisted ?
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue> HOT 1
- [bug] Hosted Gorilla: <Issue>
- OpenFunctions evaluation dataset inconsistencies HOT 6
- [feature] Implement `function_call` response interface HOT 6
- Mistral HOT 2
- [feature] Guidance on Self-Hosting API Endpoints HOT 7
- Location of gorilla-cli HOT 1
- [bug] Hosted Gorilla: MULTIPLE FUNCTIONS calls HOT 6
- How to get started with OpenFunctions? HOT 4
- [bug] Hosted Gorilla: Running the notebook gives an error as its communicating with OpenAI. Throttling? HOT 1
- when is the training code available? HOT 2
- [RFC] Rearchitect the APIZoo data management
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gorilla.