hbui commited on
Commit
819e466
·
1 Parent(s): c0766fc

Update models/llamaCustom.py

Browse files
Files changed (1) hide show
  1. models/llamaCustom.py +3 -3
models/llamaCustom.py CHANGED
@@ -54,7 +54,7 @@ model_pipeline = pipeline(
54
  do_sample=True,
55
  top_p=0.95,
56
  top_k=50,
57
- temperature=0.7,
58
  )
59
 
60
 
@@ -101,8 +101,8 @@ class LlamaCustom:
101
  # index = pickle.loads(file.readlines())
102
  return index
103
  else:
104
- # documents = prepare_data(r"./assets/regItems.json")
105
- documents = SimpleDirectoryReader(input_dir="./assets/pdf").load_data()
106
 
107
  index = GPTVectorStoreIndex.from_documents(
108
  documents, service_context=self.service_context
 
54
  do_sample=True,
55
  top_p=0.95,
56
  top_k=50,
57
+ temperature=0.0,
58
  )
59
 
60
 
 
101
  # index = pickle.loads(file.readlines())
102
  return index
103
  else:
104
+ documents = prepare_data(r"./assets/regItems.json")
105
+ #documents = SimpleDirectoryReader(input_dir="./assets/pdf").load_data()
106
 
107
  index = GPTVectorStoreIndex.from_documents(
108
  documents, service_context=self.service_context