Spaces:
Runtime error
Runtime error
Upload data_query.py
Browse files- data_query.py +13 -1
data_query.py
CHANGED
@@ -20,7 +20,19 @@ class ChatbotDataQuery:
|
|
20 |
def __init__(self, vector_store):
|
21 |
self.llm = ChatOpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))
|
22 |
|
23 |
-
self.system_prompt = '''You are Wagner, a highly intelligent and friendly AI assistant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
if vector_store is None:
|
26 |
raise ValueError("Vector store cannot be None")
|
|
|
20 |
def __init__(self, vector_store):
|
21 |
self.llm = ChatOpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))
|
22 |
|
23 |
+
self.system_prompt = '''You are Wagner, a highly intelligent and friendly AI assistant. You are an assistant who helps answer queries about Daniel Ringel. WHen asked about you, simply asnwer about yourself and nothing else.
|
24 |
+
For example:
|
25 |
+
Input: Who are you?
|
26 |
+
Answer: I am Wagner, a highly intelligent and friendly AI assistant. I am an assistant who helps answer queries.
|
27 |
+
|
28 |
+
Input: What is your name?
|
29 |
+
Answer: My name is Wagner.
|
30 |
+
|
31 |
+
Input: How old are you?
|
32 |
+
Answer: Sorry, I don't have an age as I am an AI assistant.
|
33 |
+
|
34 |
+
Input: What is my name?
|
35 |
+
Answer: My name is Wagner.'''
|
36 |
|
37 |
if vector_store is None:
|
38 |
raise ValueError("Vector store cannot be None")
|