Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def initialize_index():
|
|
112 |
def initialize_chat_engine(index):
|
113 |
from llama_index.core.prompts import PromptTemplate
|
114 |
from llama_index.core.chat_engine.condense_plus_context import CondensePlusContextChatEngine
|
115 |
-
retriever = index.as_retriever(similarity_top_k=
|
116 |
chat_engine = CondensePlusContextChatEngine.from_defaults(
|
117 |
retriever=retriever,
|
118 |
verbose=True,
|
|
|
112 |
def initialize_chat_engine(index):
|
113 |
from llama_index.core.prompts import PromptTemplate
|
114 |
from llama_index.core.chat_engine.condense_plus_context import CondensePlusContextChatEngine
|
115 |
+
retriever = index.as_retriever(similarity_top_k=3)
|
116 |
chat_engine = CondensePlusContextChatEngine.from_defaults(
|
117 |
retriever=retriever,
|
118 |
verbose=True,
|