silvanocerza commited on
Commit
3caae59
·
1 Parent(s): bb4f66e

Set an explicit index for the document store

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -91,9 +91,9 @@ def fetch(documentations: List[Tuple[str, str, str]]):
91
 
92
 
93
  @st.cache_resource(show_spinner=False)
94
- def document_store():
95
  # We're going to store the processed documents in here
96
- return InMemoryDocumentStore()
97
 
98
 
99
  @st.cache_resource(show_spinner=False)
 
91
 
92
 
93
  @st.cache_resource(show_spinner=False)
94
+ def document_store(index: str = "documentation"):
95
  # We're going to store the processed documents in here
96
+ return InMemoryDocumentStore(index=index)
97
 
98
 
99
  @st.cache_resource(show_spinner=False)