Spaces:
Runtime error
Runtime error
Commit ·
bdce5a1
1
Parent(s): 8a196e8
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def construct_index(directory_path):
|
|
| 34 |
|
| 35 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
| 36 |
|
| 37 |
-
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-
|
| 38 |
|
| 39 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
| 40 |
|
|
|
|
| 34 |
|
| 35 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
| 36 |
|
| 37 |
+
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-4", max_tokens=num_outputs))
|
| 38 |
|
| 39 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
| 40 |
|