Skip to content

Commit

Permalink
Use gpt-4 in chat-with-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
ttthree committed Sep 11, 2023
1 parent 2077f58 commit 51dc151
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/flows/chat/chat-with-pdf/chat-with-pdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"\n",
"config_2k_context = {\n",
" \"EMBEDDING_MODEL_DEPLOYMENT_NAME\": \"text-embedding-ada-002\",\n",
" \"CHAT_MODEL_DEPLOYMENT_NAME\": \"gpt-35-turbo\",\n",
" \"CHAT_MODEL_DEPLOYMENT_NAME\": \"gpt-4\", # change this to the name of your deployment if you're using Azure OpenAI\n",
" \"PROMPT_TOKEN_LIMIT\": 2000,\n",
" \"MAX_COMPLETION_TOKENS\": 256,\n",
" \"VERBOSE\": True,\n",
Expand Down Expand Up @@ -241,7 +241,7 @@
"source": [
"config_3k_context = {\n",
" \"EMBEDDING_MODEL_DEPLOYMENT_NAME\": \"text-embedding-ada-002\",\n",
" \"CHAT_MODEL_DEPLOYMENT_NAME\": \"gpt-35-turbo\",\n",
" \"CHAT_MODEL_DEPLOYMENT_NAME\": \"gpt-4\", # change this to the name of your deployment if you're using Azure OpenAI\n",
" \"PROMPT_TOKEN_LIMIT\": 3000,\n",
" \"MAX_COMPLETION_TOKENS\": 256,\n",
" \"VERBOSE\": True,\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/flows/chat/chat-with-pdf/flow.dag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
type: object
default:
EMBEDDING_MODEL_DEPLOYMENT_NAME: text-embedding-ada-002
CHAT_MODEL_DEPLOYMENT_NAME: gpt-35-turbo # change to gpt-3.5-turbo when using openai
CHAT_MODEL_DEPLOYMENT_NAME: gpt-4
PROMPT_TOKEN_LIMIT: 3000
MAX_COMPLETION_TOKENS: 256
VERBOSE: true
Expand Down

0 comments on commit 51dc151

Please sign in to comment.