Are there good examples for using with public REST APIs? #153
Answered
by
Danielskry
entact-rabo
asked this question in
Q&A
-
I am curious if Gorilla can be directly applied (zero-shot) to public REST APIs, in particularly for biomedical databases, like UniProt? Are there simple examples already created to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
Danielskry
Dec 13, 2023
Replies: 1 comment
-
I created a small Flask API repository Gorilla-Interaction-API to showcase just how good Gorilla can be, even at random tasks like: # Given query
query: str = "I need to react with three words, word wow, word test, word acting"
# With schema
functions = [
{
"name": "React",
"api_name": "functioncall_react",
"description": "Find three words from the sentence",
"parameters": [
{"name": "word1", "description": "A word"},
{"name": "word2", "description": "A word"},
{"name": "word3", "description": "A word"}
]
}
] Gives: {
"function_calls": {
"api_name": "functioncall_react",
"parameters": {
"word1": "\"wow\"",
"word2": "\"test\"",
"word3": "\"acting\""
}
}
} Which is easy to pass around in REST APIs, like so:
Added a PR for the same on #150. It is easy to adjust the methods, schema and queries to the APIs you want to interact with, such as biomedical databases. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ShishirPatil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a small Flask API repository Gorilla-Interaction-API to showcase just how good Gorilla can be, even at random tasks like:
Gives: