Spaces:
Starting
on
T4
Starting
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -91,20 +91,20 @@ def query_hybrid_search(query: str, client: QdrantClient, collection_name: str,
|
|
91 |
with_vector=False,
|
92 |
with_payload=True,
|
93 |
query=FusionQuery(fusion=Fusion.DSBF),
|
94 |
-
limit=3
|
95 |
-
filter=Filter(must_not=[
|
96 |
-
|
97 |
-
])
|
98 |
),
|
99 |
QueryRequest(
|
100 |
prefetch=Prefetch(query=dense_embeddings, using="text-dense", limit=10),
|
101 |
with_vector=False,
|
102 |
with_payload=True,
|
103 |
query=FusionQuery(fusion=Fusion.DSBF),
|
104 |
-
limit=3
|
105 |
-
filter=Filter(must_not=[
|
106 |
-
|
107 |
-
])
|
108 |
)
|
109 |
)
|
110 |
|
@@ -561,10 +561,11 @@ if __name__ == '__main__':
|
|
561 |
|
562 |
st.toast('Deletion Completed !', icon='π')
|
563 |
|
564 |
-
if st.session_state.key_data_editor['edited_rows']:
|
565 |
-
|
566 |
-
|
567 |
-
|
|
|
568 |
|
569 |
|
570 |
if st.session_state.menu_id == 'Documents':
|
|
|
91 |
with_vector=False,
|
92 |
with_payload=True,
|
93 |
query=FusionQuery(fusion=Fusion.DSBF),
|
94 |
+
limit=3
|
95 |
+
#filter=Filter(must_not=[
|
96 |
+
# HasIdCondition(has_id=[])
|
97 |
+
#])
|
98 |
),
|
99 |
QueryRequest(
|
100 |
prefetch=Prefetch(query=dense_embeddings, using="text-dense", limit=10),
|
101 |
with_vector=False,
|
102 |
with_payload=True,
|
103 |
query=FusionQuery(fusion=Fusion.DSBF),
|
104 |
+
limit=3
|
105 |
+
#filter=Filter(must_not=[
|
106 |
+
# HasIdCondition(has_id=[])
|
107 |
+
#])
|
108 |
)
|
109 |
)
|
110 |
|
|
|
561 |
|
562 |
st.toast('Deletion Completed !', icon='π')
|
563 |
|
564 |
+
#if st.session_state.key_data_editor['edited_rows']:
|
565 |
+
# for i in st.session_state.key_data_editor['edited_rows']:
|
566 |
+
# if i['toggle'] == False:
|
567 |
+
# st.session_state.df['toggle'] = False
|
568 |
+
|
569 |
|
570 |
|
571 |
if st.session_state.menu_id == 'Documents':
|