LeoGitGuy
commited on
Commit
·
5db380b
1
Parent(s):
f8b79d2
in memory doc store
Browse files- setup_database.py +3 -0
setup_database.py
CHANGED
|
@@ -16,3 +16,6 @@ def add_data(filenames, document_store, document_index):
|
|
| 16 |
document_store.write_documents(file, index=document_index)
|
| 17 |
return document_store, data
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
document_store.write_documents(file, index=document_index)
|
| 17 |
return document_store, data
|
| 18 |
|
| 19 |
+
def get_in_memory_document_store(document_index):
|
| 20 |
+
document_store = InMemoryDocumentStore(index=document_index)
|
| 21 |
+
return document_store
|