FloraJ commited on
Commit
2bacb33
1 Parent(s): 8b5c603

update good bad example

Browse files
openai_function_utils/openai_function_impl.py CHANGED
@@ -5,6 +5,7 @@ import json
5
  import os
6
  from thefuzz import process
7
  import openai
 
8
 
9
 
10
  def get_lab_member_info(name: str):
 
5
  import os
6
  from thefuzz import process
7
  import openai
8
+ from utils import search_document, search_document_annoy
9
 
10
 
11
  def get_lab_member_info(name: str):
static/index.html CHANGED
@@ -30,11 +30,20 @@
30
  </div>
31
  <h3>Demo Questions</h3>
32
  <p>First enter your own api-key and then ask question through user input or click on one of the demo questions</p>
33
- <button class="question_btn">Give me a pub of J coleman</button>
34
- <button class="question_btn">What is the position of J coleman</button>
35
- <button class="question_btn">Give me a pub on neural network</button>
36
- <button class="question_btn">Give me a pub published in 2023</button>
37
- <button class="question_btn">Give me a pub on math</button>
 
 
 
 
 
 
 
 
 
38
  </div>
39
  </body>
40
  </html>
 
30
  </div>
31
  <h3>Demo Questions</h3>
32
  <p>First enter your own api-key and then ask question through user input or click on one of the demo questions</p>
33
+ <div>
34
+ <strong> Good Examples </strong>
35
+ <button class="question_btn">Give me a pub of J coleman</button>
36
+ <button class="question_btn">What is the position of J coleman</button>
37
+ <button class="question_btn">Give me a pub on neural network</button>
38
+ <button class="question_btn">Give me a pub published in 2023</button>
39
+ <button class="question_btn">Give me a pub on math</button>
40
+ <button class="question_btn">What kind of undergraduate projects does this lab work on?</button>
41
+ </div>
42
+ <div>
43
+ <strong> Bad Examples </strong>
44
+ <button class="question_btn">Where does former member Quynh Nguyen work now?</button>
45
+ <button class="question_btn">What conferences does this lab usually publish to?</button>
46
+ </div>
47
  </div>
48
  </body>
49
  </html>