Spaces:
Sleeping
Sleeping
BP_CBG faiss_1m_v2
Browse files
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/
|
17 |
-
binary_index: faiss.IndexBinaryFlat = faiss.read_index_binary("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
|