MCPcopy Index your code
hub / github.com/dataease/SQLBot / chart_sys_question

Method chart_sys_question

backend/apps/chat/models/chat_model.py:287–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

285 change_title=change_title)
286
287 def chart_sys_question(self):
288 templates: dict[str, str] = {
289 'system': get_chart_template()['system'].format(lang=self.lang, sqlbot_name=self.sqlbot_name),
290 'rules': get_chart_template()['generate_rules'].format(lang=self.lang)
291 }
292 return templates
293
294 def chart_user_question(self, chart_type: Optional[str] = '', schema: Optional[str] = ''):
295 return get_chart_template()['user'].format(lang=self.lang, sql=self.sql, question=self.question, rule=self.rule,

Callers 1

init_messagesMethod · 0.80

Calls 2

get_chart_templateFunction · 0.90
formatMethod · 0.80

Tested by

no test coverage detected