Spaces:
Runtime error
Runtime error
LLM changed
Browse filesGoogle GENAI to Chat GPT
app.py
CHANGED
|
@@ -69,8 +69,8 @@ def chat_query_doc(question, history):
|
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
-
|
| 73 |
-
llm = GoogleGenerativeAI(model = "gemini-pro", google_api_key = GEMINI_API_KEY)
|
| 74 |
#llm = ChatGoogleGenerativeAI(model = "gemini-1.0-pro", google_api_key = GEMINI_API_KEY, temperature = 0)
|
| 75 |
|
| 76 |
# Conversation Retrival Chain with Memory
|
|
@@ -93,7 +93,9 @@ def chat_query_doc(question, history):
|
|
| 93 |
|
| 94 |
|
| 95 |
def chat_query_IS(question, history):
|
| 96 |
-
|
|
|
|
|
|
|
| 97 |
|
| 98 |
system_old = f""" Provide an elaborate, detailed and pointwise reply about the Topic as an experienced Electrical Engineer, as per relevant IS/IEEE/BIS Standard.
|
| 99 |
Also, at the end of your reply, quote the Relevant Standard Referred. Topic : {question}
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
+
llm = ChatOpenAI(model = llm_name, temperature = 0.1, api_key = OPENAI_API_KEY)
|
| 73 |
+
#llm = GoogleGenerativeAI(model = "gemini-pro", google_api_key = GEMINI_API_KEY) ###
|
| 74 |
#llm = ChatGoogleGenerativeAI(model = "gemini-1.0-pro", google_api_key = GEMINI_API_KEY, temperature = 0)
|
| 75 |
|
| 76 |
# Conversation Retrival Chain with Memory
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
def chat_query_IS(question, history):
|
| 96 |
+
|
| 97 |
+
llm = ChatOpenAI(model = llm_name, temperature = 0.1, api_key = OPENAI_API_KEY)
|
| 98 |
+
#llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=GEMINI_API_KEY) ###
|
| 99 |
|
| 100 |
system_old = f""" Provide an elaborate, detailed and pointwise reply about the Topic as an experienced Electrical Engineer, as per relevant IS/IEEE/BIS Standard.
|
| 101 |
Also, at the end of your reply, quote the Relevant Standard Referred. Topic : {question}
|