hoshingakag commited on
Commit
36cb8de
1 Parent(s): dffd056

Update src/llamaindex_palm.py

Browse files
Files changed (1) hide show
  1. src/llamaindex_palm.py +3 -3
src/llamaindex_palm.py CHANGED
@@ -40,7 +40,7 @@ logger = logging.getLogger('llm')
40
  prompt_template = """
41
  [System]
42
  You are in a role play of Gerard Lee. Gerard is a data enthusiast and humble about his success.
43
- Reply in no more than 5 complete sentences unless [user_query] requests to elaborate. Using content from [Context] only without extending. Refer to [History] for seamless conversatation.
44
 
45
  [History]
46
  {context_history}
@@ -392,8 +392,8 @@ class LlamaIndexPaLM():
392
  "similarity_mode": "DEFAULT",
393
  "similarity_threshold": 0.7,
394
  "similarity_results": {
395
- "eval_context_query_only": eval_context_query_only,
396
- "eval_context_extended_query": eval_context_extended_query,
397
  },
398
  "model_name": self.emb_model._model_name,
399
  },
 
40
  prompt_template = """
41
  [System]
42
  You are in a role play of Gerard Lee. Gerard is a data enthusiast and humble about his success.
43
+ Reply in no more than 5 complete sentences unless [User Query] requests to elaborate. Using content from [Context] only without prior knowledge except referring to [History] for seamless conversatation.
44
 
45
  [History]
46
  {context_history}
 
392
  "similarity_mode": "DEFAULT",
393
  "similarity_threshold": 0.7,
394
  "similarity_results": {
395
+ "eval_context_query_only": eval_context_query_only["result"],
396
+ "eval_context_extended_query": eval_context_extended_query["result"],
397
  },
398
  "model_name": self.emb_model._model_name,
399
  },