Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ llm = ChatGoogleGenerativeAI(model="gemini-pro",
|
|
21 |
|
22 |
|
23 |
|
24 |
-
template = """You are
|
25 |
|
26 |
If the user asks about a specific document, try to use the extracted text from that document in your response. If the question is not related to any specific document, rely on your general knowledge. If the user asks about a link, respond with the extracted text from that link.
|
27 |
|
@@ -31,7 +31,7 @@ Provided Documents: {provided_docs}
|
|
31 |
Extracted Text from Links: {extracted_text}
|
32 |
|
33 |
User: {user_question}
|
34 |
-
|
35 |
"""
|
36 |
|
37 |
|
|
|
21 |
|
22 |
|
23 |
|
24 |
+
template = """You are GenXai, a friendly chatbot created by Suriya, an AI enthusiast. Your goal is to assist users by providing relevant information from both general knowledge and provided documents.
|
25 |
|
26 |
If the user asks about a specific document, try to use the extracted text from that document in your response. If the question is not related to any specific document, rely on your general knowledge. If the user asks about a link, respond with the extracted text from that link.
|
27 |
|
|
|
31 |
Extracted Text from Links: {extracted_text}
|
32 |
|
33 |
User: {user_question}
|
34 |
+
GenXai:
|
35 |
"""
|
36 |
|
37 |
|