NimrodDev commited on
Commit
cefc270
·
1 Parent(s): 3dd74e6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def smart_reply(text: str, user: str) -> str:
112
  return "Which exact item or package would you like a quote for? (e.g. ‘line-array-top’ or ‘Silver-Package’)"
113
 
114
  # inject live atomic lines
115
- context = "\n".join(hits[:3])
116
  prompt = (
117
  f"Using ONLY the lines below, answer in one short sentence. "
118
  f"Never invent prices. If the exact item is not listed, ask for clarification.\n\n"
 
112
  return "Which exact item or package would you like a quote for? (e.g. ‘line-array-top’ or ‘Silver-Package’)"
113
 
114
  # inject live atomic lines
115
+ context = "\n".join(d.page_content for d in hits[:3]) # <-- FIXED
116
  prompt = (
117
  f"Using ONLY the lines below, answer in one short sentence. "
118
  f"Never invent prices. If the exact item is not listed, ask for clarification.\n\n"