suanan commited on
Commit
9bb6fa3
·
verified ·
1 Parent(s): 06bcb46

BP_CBG faiss_1m_v2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ import datetime
13
  title_text_dataset = load_dataset("suanan/BP_CBG_POC", split="train", num_proc=4).select_columns(["url", "title", "text"])
14
 
15
  # Load the int8 and binary indices. Int8 is loaded as a view to save memory, as we never actually perform search with it.
16
- int8_view = Index.restore("index/BP_CBG_int8_usearch_1m.index", view=True)
17
- binary_index: faiss.IndexBinaryFlat = faiss.read_index_binary("index/BP_CBG_ubinary_faiss_1m.index")
18
  # binary_ivf: faiss.IndexBinaryIVF = faiss.read_index_binary("BP_ubinary_ivf_faiss_50m.index")
19
 
20
  # Load the SentenceTransformer model for embedding the queries
 
13
  title_text_dataset = load_dataset("suanan/BP_CBG_POC", split="train", num_proc=4).select_columns(["url", "title", "text"])
14
 
15
  # Load the int8 and binary indices. Int8 is loaded as a view to save memory, as we never actually perform search with it.
16
+ int8_view = Index.restore("index/BP_CBG_int8_usearch_1m_v2.index", view=True)
17
+ binary_index: faiss.IndexBinaryFlat = faiss.read_index_binary("index/BP_CBG_ubinary_faiss_1m_v2.index")
18
  # binary_ivf: faiss.IndexBinaryIVF = faiss.read_index_binary("BP_ubinary_ivf_faiss_50m.index")
19
 
20
  # Load the SentenceTransformer model for embedding the queries