Spaces:
Sleeping
Sleeping
Update src/app.py
Browse filesremoved specific reference to k in the "if use_rag:" block to tie it directly to rag_engine.py versus having to change it every time in both scripts
- src/app.py +1 -2
src/app.py
CHANGED
|
@@ -293,8 +293,7 @@ with tab2:
|
|
| 293 |
# 1. Retrieve & Rerank (Now using the fixed function)
|
| 294 |
retrieved_docs = rag_engine.search_knowledge_base(
|
| 295 |
user_input,
|
| 296 |
-
st.session_state.username
|
| 297 |
-
k=3
|
| 298 |
)
|
| 299 |
|
| 300 |
if retrieved_docs:
|
|
|
|
| 293 |
# 1. Retrieve & Rerank (Now using the fixed function)
|
| 294 |
retrieved_docs = rag_engine.search_knowledge_base(
|
| 295 |
user_input,
|
| 296 |
+
st.session_state.username
|
|
|
|
| 297 |
)
|
| 298 |
|
| 299 |
if retrieved_docs:
|