Update app.py
Browse files
app.py
CHANGED
|
@@ -73,6 +73,7 @@ def chatbotCustom(input):
|
|
| 73 |
retriever = VectorIndexRetriever(
|
| 74 |
index=index,
|
| 75 |
similarity_top_k=10,
|
|
|
|
| 76 |
)
|
| 77 |
|
| 78 |
# configure response synthesizer
|
|
@@ -85,7 +86,7 @@ def chatbotCustom(input):
|
|
| 85 |
node_postprocessors=[SimilarityPostprocessor(similarity_cutoff=0.7)],
|
| 86 |
)
|
| 87 |
|
| 88 |
-
response = query_engine.query(input
|
| 89 |
return response.response
|
| 90 |
|
| 91 |
#def chatbotGPT(input):
|
|
|
|
| 73 |
retriever = VectorIndexRetriever(
|
| 74 |
index=index,
|
| 75 |
similarity_top_k=10,
|
| 76 |
+
response_mode="tree_summarize",
|
| 77 |
)
|
| 78 |
|
| 79 |
# configure response synthesizer
|
|
|
|
| 86 |
node_postprocessors=[SimilarityPostprocessor(similarity_cutoff=0.7)],
|
| 87 |
)
|
| 88 |
|
| 89 |
+
response = query_engine.query(input)
|
| 90 |
return response.response
|
| 91 |
|
| 92 |
#def chatbotGPT(input):
|