Spaces:
Runtime error
Runtime error
Commit
Β·
c12a37c
1
Parent(s):
7223ff6
changed intro_msg
Browse files- email_ai.py +2 -2
email_ai.py
CHANGED
@@ -27,6 +27,8 @@ gemini_api_key = os.getenv("GEMINI_API_KEY")
|
|
27 |
## load the GROQ And OpenAI API KEY
|
28 |
# gemini_api_key = open("gemini_api_key.txt", "r").read().strip()
|
29 |
|
|
|
|
|
30 |
def initialize_conversation():
|
31 |
|
32 |
llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash-latest", api_key=gemini_api_key)
|
@@ -52,8 +54,6 @@ def initialize_conversation():
|
|
52 |
# def get_template_prompt(query):
|
53 |
# return docs, prompt
|
54 |
|
55 |
-
intro_message = 'Hello! π How can I assist you today?'
|
56 |
-
|
57 |
#"""You are a email assistant answering queries on a knowledgebase fo email threads provided in the context:
|
58 |
template = """Answer the question based only on the following context:
|
59 |
{context}
|
|
|
27 |
## load the GROQ And OpenAI API KEY
|
28 |
# gemini_api_key = open("gemini_api_key.txt", "r").read().strip()
|
29 |
|
30 |
+
intro_message = 'Hello! π ask me questions about Enron emails. Sample questions you can ask are \'What is the period of emails?\', \'Who are the people exchanging emails?\', \'What are the decisions made?\', \'What does Enron deals in?\' etc.'
|
31 |
+
|
32 |
def initialize_conversation():
|
33 |
|
34 |
llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash-latest", api_key=gemini_api_key)
|
|
|
54 |
# def get_template_prompt(query):
|
55 |
# return docs, prompt
|
56 |
|
|
|
|
|
57 |
#"""You are a email assistant answering queries on a knowledgebase fo email threads provided in the context:
|
58 |
template = """Answer the question based only on the following context:
|
59 |
{context}
|