Project

General

Profile

Bug #3260

Tweak to 3103 (OpenAI API call) - 30->50words, 'do not make up answer'

Added by Ram Kordale about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
10/08/2023
Due date:
10/14/2023
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

Change needed is only in ourPrompt and max_tokens.

Current:
POST /v1/completions {
"model": "text-davinci-003",
"prompt": <ourPrompt>,
"temperature": 0,
"max_tokens": 60,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0
}

ourPrompt = concat("explain", <what user typed>, "with one example in 30 words or less")

Change needed:
ourPrompt = concat("Only if you know the answer, explain", <what user typed>, "with one example in 50 words or less. Do not make up an answer.")
max_tokens: change from 60 to 90

Also available in: Atom PDF