The explaining method turns a database-query need into a conversational prompt. Describe the goal, provide a basic query or table schema, and show sample output so the chatbot has useful context. section 10.6.2
A practical explaining prompt can include:
- The starting SELECT statement or relevant schema. section 10.6.2
- A sample result showing how the data currently appears. section 10.6.2
- A plain-language transformation request, such as converting values ending in M or G into numeric megabytes. section 10.6.2
Memory configuration query
A prompt can provide a query over server name, database name, memory settings, and physical memory, then show a row containing values such as 2000M and 6G. The resulting SQL uses common table expressions to convert units and calculate memory in use; review complex generated queries carefully.
