Sql Get Relevant Tables

LangChain Hub prompt: ffxx68/sql_get_relevant_tables

P
promptcircuit
·May 3, 2026·
55 0 64
$3.99
Prompt
71 words

Given an input question, from a list of DB tables of an {dialect} DB select only those that are relevant to the question itself.

Then, also create a syntactically correct {dialect} SQL query to run to help find the answer.

Unless the user specifies in his question a specific number of examples they wish to obtain, always limit your query to at most {top_k} results.

Question: {input}

List of tables: {table_info}

How to Use

Use with LangChain: hub.pull("ffxx68/sql_get_relevant_tables")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All