Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def construct_index(directory_path):
|
|
10 |
max_input_size = 1000000
|
11 |
num_outputs = 456
|
12 |
max_chunk_overlap = 20
|
13 |
-
chunk_size_limit =
|
14 |
|
15 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
16 |
|
@@ -18,7 +18,7 @@ def construct_index(directory_path):
|
|
18 |
|
19 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
20 |
|
21 |
-
index = GPTSimpleVectorIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper,chunk_size_limit =
|
22 |
|
23 |
index.save_to_disk('index.json')
|
24 |
|
|
|
10 |
max_input_size = 1000000
|
11 |
num_outputs = 456
|
12 |
max_chunk_overlap = 20
|
13 |
+
chunk_size_limit = 10040
|
14 |
|
15 |
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
|
16 |
|
|
|
18 |
|
19 |
documents = SimpleDirectoryReader(directory_path).load_data()
|
20 |
|
21 |
+
index = GPTSimpleVectorIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper,chunk_size_limit = 10040)
|
22 |
|
23 |
index.save_to_disk('index.json')
|
24 |
|