Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def get_chunks():
|
|
94 |
# #"status":giz_df.loc[i,'status'],
|
95 |
# }))
|
96 |
# return placeholder
|
97 |
-
@st.cache_resource
|
98 |
def embed_chunks(chunks):
|
99 |
"""
|
100 |
takes the chunks and does the hybrid embedding for the list of chunks
|
@@ -114,6 +113,7 @@ def embed_chunks(chunks):
|
|
114 |
sparse_embeddings = sparse_embeddings,
|
115 |
path="/data/local_qdrant",
|
116 |
collection_name='iati',
|
|
|
117 |
)
|
118 |
|
119 |
print(qdrant_collections)
|
|
|
94 |
# #"status":giz_df.loc[i,'status'],
|
95 |
# }))
|
96 |
# return placeholder
|
|
|
97 |
def embed_chunks(chunks):
|
98 |
"""
|
99 |
takes the chunks and does the hybrid embedding for the list of chunks
|
|
|
113 |
sparse_embeddings = sparse_embeddings,
|
114 |
path="/data/local_qdrant",
|
115 |
collection_name='iati',
|
116 |
+
retrieval_mode=RetrievalMode.HYBRID,
|
117 |
)
|
118 |
|
119 |
print(qdrant_collections)
|