Spaces:
Runtime error
Runtime error
Refactor needed
#4
by
thomasmz1
- opened
I would like to propose refactoring the project.
- We have multiple different functions doing the same thing (constructing the prompt)
- GPT-4 model selection does not do anything, the query is answered by davinci, see this block:
if model == "text-davinci-003" or model == "gpt-4" or model == "gpt-4-32k":
answer = generate_answer_text_davinci_003(question, openAI_key)
else:
answer = generate_answer(question, openAI_key, model)
- Everything is one file. It would be good to split it up into UI, Prompt Generation and Semantic Search