MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / build_system_prompt

Function build_system_prompt

explorer/assistant/utils.py:97–100  ·  view source on GitHub ↗
(flavor)

Source from the content-addressed store, hash-verified

95
96
97def build_system_prompt(flavor):
98 bsp = ExplorerValue.objects.get_item(ExplorerValue.ASSISTANT_SYSTEM_PROMPT).value
99 bsp += f"\nYou are an expert at writing SQL, specifically for {flavor}, and account for the nuances of this dialect of SQL. You always respond with valid {flavor} SQL." # noqa
100 return bsp
101
102
103def get_relevant_annotation(db_connection, t):

Callers 1

build_promptFunction · 0.85

Calls 1

get_itemMethod · 0.80

Tested by

no test coverage detected