Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -116,5 +116,12 @@ vectorstores = get_local_qdrant()
|
|
116 |
vectorstore = vectorstores['all']
|
117 |
button=st.button("search")
|
118 |
results= get_context(vectorstore, f"find the relvant paragraphs for: {var}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
st.write(results)
|
|
|
116 |
vectorstore = vectorstores['all']
|
117 |
button=st.button("search")
|
118 |
results= get_context(vectorstore, f"find the relvant paragraphs for: {var}")
|
119 |
+
st.write(f"Found {len(results)} results for query:{var}")
|
120 |
+
for i in results:
|
121 |
+
st.subheader(i.metadata['iati_id'],":",i.metadata['title_main'])
|
122 |
+
st.write(i.page_content)
|
123 |
+
st.divider()
|
124 |
+
|
125 |
+
|
126 |
|
127 |
st.write(results)
|