Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +2 -2
- requirements.txt +0 -1
app.py
CHANGED
@@ -57,10 +57,10 @@ if prompt := st.chat_input("Disclaimer: I am still a product in developement"):
|
|
57 |
|
58 |
print("Querying the Agent.")
|
59 |
cntxt = app.search(prompt)
|
60 |
-
print(*cntxt, sep="\n
|
61 |
full_response = app.llm.query(
|
62 |
input_query=prompt,
|
63 |
-
contexts=[i["context"] for i in cntxt],
|
64 |
)
|
65 |
# print(f"##FULL:\n\n{full_response}")
|
66 |
full_response = full_response.rpartition("Answer:")[-1].strip()
|
|
|
57 |
|
58 |
print("Querying the Agent.")
|
59 |
cntxt = app.search(prompt)
|
60 |
+
print(*cntxt, sep="\n=======================\n")
|
61 |
full_response = app.llm.query(
|
62 |
input_query=prompt,
|
63 |
+
contexts=[i["context"] for i in cntxt if i["metadata"]["score"] <= 0.6],
|
64 |
)
|
65 |
# print(f"##FULL:\n\n{full_response}")
|
66 |
full_response = full_response.rpartition("Answer:")[-1].strip()
|
requirements.txt
CHANGED
@@ -208,7 +208,6 @@ rsa==4.9
|
|
208 |
safetensors==0.4.2
|
209 |
schema==0.7.5
|
210 |
scikit-learn==1.4.1.post1
|
211 |
-
scikit-surprise==1.1.3
|
212 |
scipy==1.12.0
|
213 |
Send2Trash==1.8.2
|
214 |
sentence-transformers==2.5.1
|
|
|
208 |
safetensors==0.4.2
|
209 |
schema==0.7.5
|
210 |
scikit-learn==1.4.1.post1
|
|
|
211 |
scipy==1.12.0
|
212 |
Send2Trash==1.8.2
|
213 |
sentence-transformers==2.5.1
|