anurag-s-39 commited on
Commit
63e8cad
·
verified ·
1 Parent(s): 2ae9c27

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +7 -4
  2. 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(*relevant_c, sep="\n=======================\n")
 
 
 
 
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
- # print(f"##FULL:\n\n{full_response}")
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:119984379fe0e5404b0099cd3a1a6b24640a8c7f6ea2cbb5e218aaa2883b45d4
3
- size 102674432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31f147692520b2415dd4f3e74dd3b0825875579198002b6928608c4fafb05b03
3
+ size 108224512