annikwag commited on
Commit
7da963b
·
verified ·
1 Parent(s): 67f6d38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,12 +25,12 @@ region_df = load_region_data(region_lookup_path)
25
  #################### Create the embeddings collection and save ######################
26
  # the steps below need to be performed only once and then commented out any unnecssary compute over-run
27
  ##### First we process and create the chunks for relvant data source
28
- chunks = process_giz_worldwide()
29
  ##### Convert to langchain documents
30
- temp_doc = create_documents(chunks,'chunks')
31
  ##### Embed and store docs, check if collection exist then you need to update the collection
32
  collection_name = "giz_worldwide"
33
- hybrid_embed_chunks(docs=temp_doc, collection_name=collection_name, del_if_exists=True)
34
 
35
  ################### Hybrid Search #####################################################
36
  client = get_client()
 
25
  #################### Create the embeddings collection and save ######################
26
  # the steps below need to be performed only once and then commented out any unnecssary compute over-run
27
  ##### First we process and create the chunks for relvant data source
28
+ #chunks = process_giz_worldwide()
29
  ##### Convert to langchain documents
30
+ #temp_doc = create_documents(chunks,'chunks')
31
  ##### Embed and store docs, check if collection exist then you need to update the collection
32
  collection_name = "giz_worldwide"
33
+ #hybrid_embed_chunks(docs=temp_doc, collection_name=collection_name, del_if_exists=True)
34
 
35
  ################### Hybrid Search #####################################################
36
  client = get_client()