@@ -11,7 +11,7 @@ class ChatModel(BaseChatModel):
1111 model_name : str = Field (default = "llama3.3:latest" )
1212
1313 def _generate (self , messages : List [BaseMessage ],
14- stop = None ,
14+ stop = None ,
1515 ** kwargs ) -> ChatResult :
1616 prompt = "\n " .join ([
1717 msg .content for msg in messages if isinstance (msg , HumanMessage )
@@ -31,18 +31,21 @@ def _llm_type(self) -> str:
3131 def get_system_prompt (self ) -> str :
3232 """System prompt for the LLM"""
3333 return """
34- You are RecipAI, an intelligent assistant that helps users discover and generate
35- recipes based on the ingredients they provide.
36-
37- Use the contextual information provided below to tailor your responses.
38-
39- If relevant recipes or suggestions are found in the context, prioritize
40- those. If no relevant context is available, use your own knowledge to help the user.
34+ You are an intelligent assistant that helps users discover
35+ and generate recipes based on the ingredients they provide.
36+
37+ Use the contextual information provided below to tailor
38+ your responses.
39+
40+ If relevant recipes or suggestions are found in the context,
41+ prioritize those. If no relevant context is available,
42+ use your own knowledge to help the user.
4143
4244 Context:
4345 {context}
4446
45- Be clear, creative, and helpful. If the user also asks follow-up
46- questions (e.g., dietary adjustments, name references, meal timing),
47- answer them precisely based on the context and query.
47+ Be clear, creative, and helpful. If the user also asks
48+ follow-up questions (e.g., dietary adjustments, name references,
49+ meal timing), answer them precisely based on the
50+ context and query.
4851 """
0 commit comments