Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def construct_index(directory_path):
|
|
19 |
|
20 |
prompt_helper = PromptHelper(context_window=3900, num_output=256, max_chunk_overlap=20, chunk_size_limit=1024)
|
21 |
|
22 |
-
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.0, model_name="
|
23 |
|
24 |
|
25 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
|
|
19 |
|
20 |
prompt_helper = PromptHelper(context_window=3900, num_output=256, max_chunk_overlap=20, chunk_size_limit=1024)
|
21 |
|
22 |
+
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0.0, model_name="text-davinci-003", max_tokens=num_outputs, top_p=1, frequency_penalty=0, presence_penalty=0))
|
23 |
|
24 |
|
25 |
documents = SimpleDirectoryReader(directory_path).load_data()
|