docs: update SQL QA prompt (#30728)

Resolves https://github.com/langchain-ai/langchain/issues/30724

The [prompt in
langchain-hub](https://smith.langchain.com/hub/langchain-ai/sql-query-system-prompt)
used in this guide was composed of just a system message, but the guide
did not add a human message to it. This was incompatible with some
providers (and is generally not a typical usage pattern).

The prompt in prompt hub has been updated to split the question into a
separate HumanMessage. Here we update the guide to reflect this.
This commit is contained in:
ccurme
2025-04-08 09:42:49 -04:00
committed by GitHub
parent 9cbe91896e
commit 163730aef4
13 changed files with 21 additions and 19 deletions

File diff suppressed because one or more lines are too long