Sathvika-Alla commited on
Commit
8fda4c7
·
verified ·
1 Parent(s): eef047b

Update chatbot-gradio.py

Browse files
Files changed (1) hide show
  1. chatbot-gradio.py +2 -1
chatbot-gradio.py CHANGED
@@ -135,7 +135,7 @@ class NL2SQLPlugin:
135
  - For exact matches use: WHERE c.[field] = value
136
  - For ranges use: WHERE c.[field].min = X AND c.[field].max = Y
137
  - Check for dimmability support by using either != "NOT DIMMABLE" or = "NOT DIMMABLE"
138
- - Do not use subqueries
139
  - Do not use AS and cast key names
140
  - For lamp compatibility: Use WHERE IS_DEFINED(c.lamps["lamp_name"]) to check if a specific lamp is supported, or WHERE IS_DEFINED(c.lamps) for any lamp support.
141
 
@@ -148,6 +148,7 @@ class NL2SQLPlugin:
148
  - Find converters with a specific IP rating (e.g., 67): SELECT * FROM c WHERE c.ip = 67
149
  - List of 350mA converters compatible with Haloled: SELECT * FROM c WHERE IS_DEFINED(c.lamps["Haloled"]) ANlist oD c.type="350mA"
150
  - List 700mA drivers: SELECT * FROM c WHERE c.type="700mA"
 
151
  Return ONLY SQL without explanations""")
152
 
153
  response = await chat_service.get_chat_message_content(
 
135
  - For exact matches use: WHERE c.[field] = value
136
  - For ranges use: WHERE c.[field].min = X AND c.[field].max = Y
137
  - Check for dimmability support by using either != "NOT DIMMABLE" or = "NOT DIMMABLE"
138
+ - Do not use subqueries or nested queries
139
  - Do not use AS and cast key names
140
  - For lamp compatibility: Use WHERE IS_DEFINED(c.lamps["lamp_name"]) to check if a specific lamp is supported, or WHERE IS_DEFINED(c.lamps) for any lamp support.
141
 
 
148
  - Find converters with a specific IP rating (e.g., 67): SELECT * FROM c WHERE c.ip = 67
149
  - List of 350mA converters compatible with Haloled: SELECT * FROM c WHERE IS_DEFINED(c.lamps["Haloled"]) ANlist oD c.type="350mA"
150
  - List 700mA drivers: SELECT * FROM c WHERE c.type="700mA"
151
+ - Most efficient ip20 driver: SELECT TOP 1 FROM c WHERE c.ip=20 ORDER BY c.efficiency_full_load DESC
152
  Return ONLY SQL without explanations""")
153
 
154
  response = await chat_service.get_chat_message_content(