Skip to content

Commit

Permalink
Update qa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmitlaies authored Feb 23, 2023
1 parent c743a18 commit e1bcc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_serach_streamlit/qa.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import openai
openai.api_key="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"
openai.api_key="api-key"
def create_prompt(context,query):
header = "Answer the question as truthfully as possible using the provided context, and if the answer is not contained within the text and requires some latest information to be updated, print 'Sorry Not Sufficient context to answer query' \n"
return header + context + "\n\n" + query + "\n"
Expand Down

0 comments on commit e1bcc99

Please sign in to comment.