Update app.py
Browse files
app.py
CHANGED
@@ -113,11 +113,10 @@ def handle_userinput(user_question,retriever):
|
|
113 |
st.chat_message("assistant").write(response)
|
114 |
|
115 |
with st.sidebar:
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
st.write(f"Document: {doc}")
|
121 |
|
122 |
|
123 |
|
@@ -132,7 +131,7 @@ def create_conversational_rag_chain(retriever):
|
|
132 |
llm = llamacpp.LlamaCpp(
|
133 |
model_path=model_path,
|
134 |
n_gpu_layers=0,
|
135 |
-
temperature=0.
|
136 |
top_p=0.9,
|
137 |
n_ctx=22000,
|
138 |
max_tokens=200,
|
|
|
113 |
st.chat_message("assistant").write(response)
|
114 |
|
115 |
with st.sidebar:
|
116 |
+
st.subheader("Your documents")
|
117 |
+
with st.spinner("Processing"):
|
118 |
+
for doc in docs:
|
119 |
+
st.write(f"Document: {doc}")
|
|
|
120 |
|
121 |
|
122 |
|
|
|
131 |
llm = llamacpp.LlamaCpp(
|
132 |
model_path=model_path,
|
133 |
n_gpu_layers=0,
|
134 |
+
temperature=0.0,
|
135 |
top_p=0.9,
|
136 |
n_ctx=22000,
|
137 |
max_tokens=200,
|