ppsingh commited on
Commit
3f08d09
·
verified ·
1 Parent(s): ccb887a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -94,7 +94,7 @@ def get_chunks():
94
  # #"status":giz_df.loc[i,'status'],
95
  # }))
96
  # return placeholder
97
-
98
  def embed_chunks(chunks):
99
  """
100
  takes the chunks and does the hybrid embedding for the list of chunks
@@ -118,7 +118,6 @@ def embed_chunks(chunks):
118
 
119
  print(qdrant_collections)
120
  print("vector embeddings done")
121
- return qdrant_collections
122
 
123
  @st.cache_resource
124
  def get_local_qdrant():
@@ -158,8 +157,7 @@ chunks = get_chunks()
158
  print("chunking done")
159
 
160
  # once the chunks are done, we perform hybrid emebddings
161
- qdrant_collections = embed_chunks(chunks)
162
- print(qdrant_collections.keys())
163
 
164
  # vectorstores = get_local_qdrant()
165
  # vectorstore = vectorstores['all']
 
94
  # #"status":giz_df.loc[i,'status'],
95
  # }))
96
  # return placeholder
97
+ @st.cache_data
98
  def embed_chunks(chunks):
99
  """
100
  takes the chunks and does the hybrid embedding for the list of chunks
 
118
 
119
  print(qdrant_collections)
120
  print("vector embeddings done")
 
121
 
122
  @st.cache_resource
123
  def get_local_qdrant():
 
157
  print("chunking done")
158
 
159
  # once the chunks are done, we perform hybrid emebddings
160
+ embed_chunks(chunks)
 
161
 
162
  # vectorstores = get_local_qdrant()
163
  # vectorstore = vectorstores['all']