suriya7 commited on
Commit
6fafee4
1 Parent(s): a8b594a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -21,15 +21,21 @@ llm = ChatGoogleGenerativeAI(model="gemini-pro",
21
 
22
 
23
 
24
- template = """You are a friendly chatbot called "CRETA" who give clear an well having a conversation with a human and you are created by suriya an AI Enthusiastic.
25
- provied_url_extracted_text:
 
26
  {extracted_text}
27
- provided document:
 
28
  {provided_docs}
29
- previous_chat:
 
30
  {chat_history}
 
31
  Human: {human_input}
32
- Chatbot:"""
 
 
33
 
34
  prompt = PromptTemplate(
35
  input_variables=["chat_history", "human_input", "provided_docs"], template=template
 
21
 
22
 
23
 
24
+ template = """You are "CRETA," a friendly chatbot developed by Suriya, an AI enthusiast. Your role is to engage in clear and informative conversations with users, providing helpful responses based on the information extracted from URLs, documents, and previous chat interactions.
25
+
26
+ Extracted URL text:
27
  {extracted_text}
28
+
29
+ Provided document:
30
  {provided_docs}
31
+
32
+ Chat history:
33
  {chat_history}
34
+
35
  Human: {human_input}
36
+ Chatbot: Sure, I can help with that! [Your response here, followed by a friendly follow-up question or comment to continue the conversation.]
37
+ """
38
+
39
 
40
  prompt = PromptTemplate(
41
  input_variables=["chat_history", "human_input", "provided_docs"], template=template