topk 2
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def generate_agent_answer(context: str, question: str) -> str:
|
|
| 105 |
return response.text.strip()
|
| 106 |
|
| 107 |
def rag_answer(question: str, collection) -> str:
|
| 108 |
-
context = retrieve_context(question, collection, top_k=
|
| 109 |
return generate_agent_answer(context, question)
|
| 110 |
|
| 111 |
# βββ 5. Gradio Interface Function βββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 105 |
return response.text.strip()
|
| 106 |
|
| 107 |
def rag_answer(question: str, collection) -> str:
|
| 108 |
+
context = retrieve_context(question, collection, top_k=2)
|
| 109 |
return generate_agent_answer(context, question)
|
| 110 |
|
| 111 |
# βββ 5. Gradio Interface Function βββββββββββββββββββββββββββββββββββββββββββββ
|