Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +7 -4
- db/main/chroma.sqlite3 +2 -2
app.py
CHANGED
@@ -47,10 +47,14 @@ if prompt := st.chat_input("Disclaimer: I am still a product in developement"):
|
|
47 |
msg_placeholder = st.empty()
|
48 |
msg_placeholder.markdown("Thinking...")
|
49 |
|
50 |
-
print("Querying the Agent
|
51 |
cntxt = app.search(prompt)
|
52 |
relevant_c = [i["context"] for i in cntxt if i["metadata"]["score"] <= 0.6]
|
53 |
-
print(
|
|
|
|
|
|
|
|
|
54 |
if len(relevant_c) != 0:
|
55 |
full_response = app.llm.query(
|
56 |
input_query=prompt,
|
@@ -61,8 +65,7 @@ if prompt := st.chat_input("Disclaimer: I am still a product in developement"):
|
|
61 |
full_response = (
|
62 |
"Sorry but I don't have relevant knowledge to asnwer that query."
|
63 |
)
|
64 |
-
|
65 |
-
print(f"#ANSWER\n\n{full_response}")
|
66 |
|
67 |
msg_placeholder.markdown(full_response)
|
68 |
st.session_state.messages.append(
|
|
|
47 |
msg_placeholder = st.empty()
|
48 |
msg_placeholder.markdown("Thinking...")
|
49 |
|
50 |
+
print("Querying the Agent.\n")
|
51 |
cntxt = app.search(prompt)
|
52 |
relevant_c = [i["context"] for i in cntxt if i["metadata"]["score"] <= 0.6]
|
53 |
+
print(
|
54 |
+
"\n===================\n",
|
55 |
+
*relevant_c,
|
56 |
+
sep="\n===================\n",
|
57 |
+
)
|
58 |
if len(relevant_c) != 0:
|
59 |
full_response = app.llm.query(
|
60 |
input_query=prompt,
|
|
|
65 |
full_response = (
|
66 |
"Sorry but I don't have relevant knowledge to asnwer that query."
|
67 |
)
|
68 |
+
print(f"\n#ANSWER\n\n{full_response}")
|
|
|
69 |
|
70 |
msg_placeholder.markdown(full_response)
|
71 |
st.session_state.messages.append(
|
db/main/chroma.sqlite3
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:31f147692520b2415dd4f3e74dd3b0825875579198002b6928608c4fafb05b03
|
3 |
+
size 108224512
|