Spaces:
Runtime error
Runtime error
new training
Browse files- app.py +1 -1
- index.json +0 -0
- index2.json +0 -0
app.py
CHANGED
@@ -16,7 +16,7 @@ def construct_index(directory_path):
|
|
16 |
|
17 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
18 |
|
19 |
-
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0
|
20 |
|
21 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
22 |
service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor, prompt_helper=prompt_helper)
|
|
|
16 |
|
17 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
18 |
|
19 |
+
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model_name="text-davinci-002", max_tokens=num_outputs))
|
20 |
|
21 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
22 |
service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor, prompt_helper=prompt_helper)
|
index.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
index2.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|