momegas commited on
Commit
30daf06
1 Parent(s): 33f6ee7

✌️ Add some more eamples in README

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md CHANGED
@@ -42,6 +42,14 @@ qnabot = bot("qna-over-docs", index="./index.pkl")
42
 
43
  # Or create the index from a directory of documents
44
  qnabot = bot("qna-over-docs", index="./index")
 
 
 
 
 
 
 
 
45
  ```
46
 
47
  You can also create a FastAPI app that will expose the bot as an API using the create_app function.
 
42
 
43
  # Or create the index from a directory of documents
44
  qnabot = bot("qna-over-docs", index="./index")
45
+
46
+ # Change the model
47
+ qnabot = bot("qna-over-docs", model="text-davinci-003")
48
+
49
+ # Change the prompt
50
+ prompt_template = "Be humourous in your responses. Question: {question}\nContext: {context}, Answer:"
51
+ prompt_variables=["question", "context"]
52
+ qnabot = bot("qna-over-docs", prompt_template=prompt_template, prompt_variables=prompt_variables)
53
  ```
54
 
55
  You can also create a FastAPI app that will expose the bot as an API using the create_app function.