Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ class Answering_Agent:
|
|
100 |
self.client = openai_client
|
101 |
|
102 |
def generate_response(self, query, docs, conv_history, selected_mode):
|
103 |
-
prompt_for_gpt = f"Based on this text in angle brackets: <{docs}>, please summarize a response to this query: {query} in the context of this conversation: {conv_history}. Please use language appropriate for a {selected_mode}."
|
104 |
return get_completion(self.client, prompt_for_gpt)
|
105 |
|
106 |
def generate_response_topic(self, topic_desc, topic_text, conv_history, selected_mode):
|
|
|
100 |
self.client = openai_client
|
101 |
|
102 |
def generate_response(self, query, docs, conv_history, selected_mode):
|
103 |
+
prompt_for_gpt = f"Based on this text in angle brackets: <{docs}>, please summarize a response to this query: {query} in the context of this conversation: {conv_history}. Please use language appropriate for a {selected_mode}. Do not use the phrase `in the context of conversation` in your response"
|
104 |
return get_completion(self.client, prompt_for_gpt)
|
105 |
|
106 |
def generate_response_topic(self, topic_desc, topic_text, conv_history, selected_mode):
|