alexandraroze commited on
Commit
5766729
·
1 Parent(s): ff6e87f

fixed temp

Browse files
Files changed (2) hide show
  1. src/chat.py +2 -2
  2. templates/template_html.j2 +2 -2
src/chat.py CHANGED
@@ -11,8 +11,8 @@ from langchain_openai.chat_models import ChatOpenAI
11
 
12
 
13
  GENERATE_ARGS = {
14
- 'temperature': max(float(os.getenv("TEMPERATURE", 0.3)), 1e-2),
15
- 'max_tokens': int(os.getenv("MAX_NEW_TOKENS", 512)),
16
  }
17
 
18
  GENERATE_KWARGS = {
 
11
 
12
 
13
  GENERATE_ARGS = {
14
+ 'temperature': max(float(os.getenv("TEMPERATURE", 0.2)), 1e-2),
15
+ 'max_tokens': int(os.getenv("MAX_NEW_TOKENS", 1024)),
16
  }
17
 
18
  GENERATE_KWARGS = {
templates/template_html.j2 CHANGED
@@ -61,6 +61,8 @@
61
  Below is the prompt that is given to the model. <hr>
62
  {#<h2>Instructions</h2>#}
63
  {# <span class="instructions">{{ instructions }}</span>#}
 
 
64
  <h2>Context</h2>
65
  {% for doc in documents %}
66
  <details class="doc-box">
@@ -70,8 +72,6 @@ Below is the prompt that is given to the model. <hr>
70
  <div class="doc-full">{{ doc }}</div>
71
  </details>
72
  {% endfor %}
73
- <h2>Query</h2>
74
- <span class="query">{{ query }}</span>
75
  </div>
76
  <script>
77
  document.addEventListener("DOMContentLoaded", function() {
 
61
  Below is the prompt that is given to the model. <hr>
62
  {#<h2>Instructions</h2>#}
63
  {# <span class="instructions">{{ instructions }}</span>#}
64
+ <h2>Query</h2>
65
+ <span class="query">{{ query }}</span>
66
  <h2>Context</h2>
67
  {% for doc in documents %}
68
  <details class="doc-box">
 
72
  <div class="doc-full">{{ doc }}</div>
73
  </details>
74
  {% endfor %}
 
 
75
  </div>
76
  <script>
77
  document.addEventListener("DOMContentLoaded", function() {