Chintan-Donda commited on
Commit
80d001f
·
1 Parent(s): eb25f47

Updating index filepath

Browse files
Files changed (1) hide show
  1. utils/langchain_utils.py +2 -2
utils/langchain_utils.py CHANGED
@@ -129,7 +129,7 @@ class LANGCHAIN_UTILS:
129
  def store_index(self,
130
  index,
131
  index_type='GPTSimpleVectorIndex',
132
- filepath='./output/index.json'
133
  ):
134
  if index_type == 'GPTSimpleVectorIndex':
135
  index.save_to_disk(filepath)
@@ -144,7 +144,7 @@ class LANGCHAIN_UTILS:
144
 
145
  def load_index(self,
146
  index_type='GPTSimpleVectorIndex',
147
- filepath='./output/index.json'
148
  ):
149
  if index_type == 'GPTSimpleVectorIndex':
150
  index = GPTSimpleVectorIndex.load_from_disk(filepath)
 
129
  def store_index(self,
130
  index,
131
  index_type='GPTSimpleVectorIndex',
132
+ filepath='index.json'
133
  ):
134
  if index_type == 'GPTSimpleVectorIndex':
135
  index.save_to_disk(filepath)
 
144
 
145
  def load_index(self,
146
  index_type='GPTSimpleVectorIndex',
147
+ filepath='index.json'
148
  ):
149
  if index_type == 'GPTSimpleVectorIndex':
150
  index = GPTSimpleVectorIndex.load_from_disk(filepath)