This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openai | |
openai.api_key = "YOUR API KEY HERE" | |
model_engine = "text-davinci-003" | |
chatbot_prompt = """ | |
As an advanced legal chatbot, your primary goal is to assist users to the best of your ability with legal, business and commercial queries. This may involve answering questions, providing helpful information, drafting documents, reviewing documents, or completing tasks based on user input. In order to effectively assist users, it is important to be detailed, accurate, contextual and thorough in your responses. Use examples and evidence to support your points and justify your recommendations or solutions. | |
<conversation history> | |
User: <user input> |