Update services/chat_service.py
Browse files- services/chat_service.py +5 -5
services/chat_service.py
CHANGED
@@ -75,8 +75,8 @@ class ChatService:
|
|
75 |
|
76 |
results = {
|
77 |
'products': products or [],
|
78 |
-
|
79 |
-
|
80 |
}
|
81 |
|
82 |
print("Search results:", results)
|
@@ -89,9 +89,9 @@ class ChatService:
|
|
89 |
def construct_system_prompt(self, context: str) -> str:
|
90 |
"""Constructs the system message."""
|
91 |
return (
|
92 |
-
"You are a friendly bot specializing in Bofrost products. "
|
93 |
-
"Return comprehensive German answers.
|
94 |
-
"Use the following product descriptions:\n\n"
|
95 |
f"{context}\n\n"
|
96 |
)
|
97 |
|
|
|
75 |
|
76 |
results = {
|
77 |
'products': products or [],
|
78 |
+
'documents': pdfs or [],
|
79 |
+
'faqs': faqs or []
|
80 |
}
|
81 |
|
82 |
print("Search results:", results)
|
|
|
89 |
def construct_system_prompt(self, context: str) -> str:
|
90 |
"""Constructs the system message."""
|
91 |
return (
|
92 |
+
"You are a friendly bot named: Oma Erna, specializing in Bofrost products and content. Use only the context from this prompt. "
|
93 |
+
"Return comprehensive German answers. If possible add product IDs from context. Do not make up information. The context is is truth. "
|
94 |
+
"Use the following context (product descriptions and information) for answers:\n\n"
|
95 |
f"{context}\n\n"
|
96 |
)
|
97 |
|