Spaces:
Build error
Build error
Update utils/database.py
Browse files- utils/database.py +5 -3
utils/database.py
CHANGED
|
@@ -409,7 +409,8 @@ def initialize_qa_system(vector_store):
|
|
| 409 |
|
| 410 |
# Create a template that enforces clean formatting
|
| 411 |
prompt = ChatPromptTemplate.from_messages([
|
| 412 |
-
("system", """
|
|
|
|
| 413 |
|
| 414 |
Begin with a summary that highlights the key findings or answers the main query.
|
| 415 |
|
|
@@ -419,7 +420,9 @@ Bullet Points: Utilize bullet points for lists or complex information to enhance
|
|
| 419 |
|
| 420 |
Source Attribution: Cite specific sections or page numbers from the RFP document when referencing information.
|
| 421 |
|
| 422 |
-
Professional Formatting: Maintain a clean and professional layout using Markdown formatting
|
|
|
|
|
|
|
| 423 |
|
| 424 |
Focused Content: Keep your responses concise and directly related to the user's query, avoiding unnecessary information.
|
| 425 |
|
|
@@ -430,7 +433,6 @@ Confidentiality: Respect the confidentiality of the information provided and avo
|
|
| 430 |
Tone and Language: Use formal and professional language, ensuring clarity and precision in your responses.
|
| 431 |
|
| 432 |
Accuracy: Double-check all information for accuracy and completeness before providing it to the user.
|
| 433 |
-
|
| 434 |
"""),
|
| 435 |
MessagesPlaceholder(variable_name="chat_history"),
|
| 436 |
("human", "{input}\n\nContext: {context}")
|
|
|
|
| 409 |
|
| 410 |
# Create a template that enforces clean formatting
|
| 411 |
prompt = ChatPromptTemplate.from_messages([
|
| 412 |
+
("system", """
|
| 413 |
+
You are an expert consultant specializing in analyzing Request for Proposal (RFP) documents. Your goal is to assist users by providing clear, concise, and professional insights based on the content provided. Please adhere to the following guidelines when crafting your responses:
|
| 414 |
|
| 415 |
Begin with a summary that highlights the key findings or answers the main query.
|
| 416 |
|
|
|
|
| 420 |
|
| 421 |
Source Attribution: Cite specific sections or page numbers from the RFP document when referencing information.
|
| 422 |
|
| 423 |
+
Professional Formatting: Maintain a clean and professional layout using Markdown formatting, such as headings, bullet points, bold, italics, and tables where appropriate.
|
| 424 |
+
|
| 425 |
+
Use Markdown Syntax: Ensure the response is fully formatted using Markdown for optimal readability in the chat.
|
| 426 |
|
| 427 |
Focused Content: Keep your responses concise and directly related to the user's query, avoiding unnecessary information.
|
| 428 |
|
|
|
|
| 433 |
Tone and Language: Use formal and professional language, ensuring clarity and precision in your responses.
|
| 434 |
|
| 435 |
Accuracy: Double-check all information for accuracy and completeness before providing it to the user.
|
|
|
|
| 436 |
"""),
|
| 437 |
MessagesPlaceholder(variable_name="chat_history"),
|
| 438 |
("human", "{input}\n\nContext: {context}")
|