iamviveksrk commited on
Commit
2bc0739
1 Parent(s): 166d3de

Create document_store.py

Browse files

Document store creation (in-memory)

Files changed (1) hide show
  1. 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)