Tweak parameters.
Browse files
app.py
CHANGED
|
@@ -9,13 +9,13 @@ from langchain.vectorstores import FAISS
|
|
| 9 |
|
| 10 |
|
| 11 |
# Number of search results to query from the vector database.
|
| 12 |
-
SIMILARITY_SEARCH_COUNT =
|
| 13 |
|
| 14 |
# Size of each document chunk in number of characters.
|
| 15 |
-
CHUNK_SIZE =
|
| 16 |
|
| 17 |
# Maximum number of output tokens.
|
| 18 |
-
MODEL_MAX_LENGTH =
|
| 19 |
|
| 20 |
|
| 21 |
print("Loading documents")
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
# Number of search results to query from the vector database.
|
| 12 |
+
SIMILARITY_SEARCH_COUNT = 7
|
| 13 |
|
| 14 |
# Size of each document chunk in number of characters.
|
| 15 |
+
CHUNK_SIZE = 500
|
| 16 |
|
| 17 |
# Maximum number of output tokens.
|
| 18 |
+
MODEL_MAX_LENGTH = 500
|
| 19 |
|
| 20 |
|
| 21 |
print("Loading documents")
|