Spaces:
Runtime error
Runtime error
iamviveksrk
commited on
Commit
•
2bc0739
1
Parent(s):
166d3de
Create document_store.py
Browse filesDocument store creation (in-memory)
- document_store.py +7 -0
document_store.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from haystack.document_stores import InMemoryDocumentStore
|
2 |
+
import joblib
|
3 |
+
|
4 |
+
docs = joblib.load('docs.joblib')
|
5 |
+
|
6 |
+
document_store = InMemoryDocumentStore()
|
7 |
+
document_store.write_documents(docs)
|