using memory storage for sql
Browse files
app.py
CHANGED
@@ -154,11 +154,19 @@ docs = convert_files_to_docs(dir_path=doc_dir,
|
|
154 |
# %% Document Store
|
155 |
|
156 |
print('---> Creating document store ...')
|
|
|
157 |
# document_store = FAISSDocumentStore(embedding_dim=128,
|
158 |
# faiss_index_factory_str="Flat",
|
159 |
# sql_url=f"sqlite:///{sql_file}")
|
|
|
|
|
160 |
document_store = FAISSDocumentStore(embedding_dim=128,
|
161 |
-
faiss_index_factory_str="Flat"
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
|
164 |
|
|
|
154 |
# %% Document Store
|
155 |
|
156 |
print('---> Creating document store ...')
|
157 |
+
# # custom path for sql file
|
158 |
# document_store = FAISSDocumentStore(embedding_dim=128,
|
159 |
# faiss_index_factory_str="Flat",
|
160 |
# sql_url=f"sqlite:///{sql_file}")
|
161 |
+
|
162 |
+
# In memory database
|
163 |
document_store = FAISSDocumentStore(embedding_dim=128,
|
164 |
+
faiss_index_factory_str="Flat",
|
165 |
+
sql_url=f"sqlite://")
|
166 |
+
|
167 |
+
# # default path for sql file
|
168 |
+
# document_store = FAISSDocumentStore(embedding_dim=128,
|
169 |
+
# faiss_index_factory_str="Flat")
|
170 |
|
171 |
|
172 |
|