Spaces:
Runtime error
Runtime error
oryx1729
commited on
Commit
•
ea67dd2
1
Parent(s):
4812ff2
Remove indexing
Browse files
app.py
CHANGED
@@ -17,13 +17,13 @@ p_2 = None
|
|
17 |
|
18 |
|
19 |
def app_init():
|
20 |
-
indexing_pipeline = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="indexing")
|
21 |
-
file_paths = glob.glob("data/*")
|
22 |
-
ds = indexing_pipeline.get_node("DocumentStore")
|
23 |
-
ds.delete_all_documents()
|
24 |
-
indexing_pipeline.run(file_paths=file_paths)
|
25 |
-
ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
|
26 |
-
ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
|
27 |
|
28 |
global p_1
|
29 |
p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
|
|
|
17 |
|
18 |
|
19 |
def app_init():
|
20 |
+
# indexing_pipeline = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="indexing")
|
21 |
+
# file_paths = glob.glob("data/*")
|
22 |
+
# ds = indexing_pipeline.get_node("DocumentStore")
|
23 |
+
# ds.delete_all_documents()
|
24 |
+
# indexing_pipeline.run(file_paths=file_paths)
|
25 |
+
# ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
|
26 |
+
# ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
|
27 |
|
28 |
global p_1
|
29 |
p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
|