-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
174 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
[ | ||
{ | ||
"content": "test", | ||
"content": "how does the document define 'Generative AI'", | ||
"role": "user" | ||
}, | ||
{ | ||
"content": "test 1", | ||
"role": "assistant" | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "Continuation of search results" | ||
}, | ||
{ | ||
"content": "test 2", | ||
"role": "assistant" | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "Continuation of search results" | ||
}, | ||
{ | ||
"content": "test 3", | ||
"content": "The user uploaded documents that the user will ask questions about. Please keep your answers related to the documents.", | ||
"role": "assistant" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"type": "function", | ||
"function": { | ||
"name": "search_and_summarize", | ||
"description": "Used to embed users prompt, search database and return summarized results.", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"prompt": { | ||
"description": "The prompt the user is using the search for.", | ||
"type": "string", | ||
"enum": [], | ||
"default": "" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"prompt" | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"id": "chatcmpl-99MsQDhcyADcsehLfCQAwuyhhTxmB", | ||
"object": "chat.completion", | ||
"created": 1712019918, | ||
"model": "gpt-4-0125-preview", | ||
"systemFingerprint": "fp_f38f4d6482", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": null, | ||
"toolCalls": [ | ||
{ | ||
"id": "call_u3GOeiE4LaSJvOqV2uOqeXK2", | ||
"type": "function", | ||
"function": { | ||
"name": "search_and_summarize", | ||
"arguments": "{\"prompt\":\"define 'Generative AI'\"}" | ||
} | ||
} | ||
], | ||
"functionCall": null | ||
}, | ||
"finishReason": "tool_calls" | ||
} | ||
], | ||
"usage": { | ||
"promptTokens": 101, | ||
"completionTokens": 22, | ||
"totalTokens": 123 | ||
} | ||
} |