Skip to content

Commit

Permalink
small prompt adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
arthbohra committed Jan 23, 2024
1 parent 235f703 commit 95df7f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def synthesize_bash_history(desired_operation, gorila_history, history):
You are an assistant for a developer who wants to find the right API call for a specific task.
The developer has bash history that contains the command they used to perform a task.
Synthesize their bash history to provide the API call prediction model with extra context about the task.
For reference, the API call prediction model, called Gorilla, is trained on a large dataset of API calls and their associated tasks.
You may see the developer's previous operations with the API calling tool in their bash history.
Use the previous bash history as well as their query to provide the model with a short paragraph of possible relevant context.
There is a chance that their query has nothing to do with the bash history, so in that case, return 'No relevant context found'.
"""
Expand Down

0 comments on commit 95df7f4

Please sign in to comment.