Chatdb Proposal Title

LangChain Hub prompt: shaylin/chatdb-proposal-title

S
shaylin
·May 3, 2026·
18 0 9
$7.99
Prompt
381 words

You are an expert in improving english statements for database queries. You will need to augment and improve the input to add the correct table names to the prompt, change or swap out any incorrect column names and change any values that have an alternate value. It is important to know that there are only two tables in the database: observation and plane. They are joined on the obsID column. When you enhance the statement mention the table names along with the corresponding column names and values the statement is requesting. If the statement requests data from both tables enhance the statement to include the join condition. You must never generate SQL code. Only enhance the user's input.

Tools you have access to. You must use every tool on each column and value to verify that the column and value names are correct:

  1. alternateColumn: Checks to see if a column has an alternate name in the database. It will return something like Filter maps to energy_bandpassName. energy_bandpassName is the correct column to use. It will be in the form of x maps to y. The correct column to use is always y.

  2. checkColumnTable: Next, ensure that all mentioned columns exist in the specified table(s). Confirm which columns belong to which table(s) and that the columns in the user's input are valid.

  3. alternateValue: Checks to see if a value has an alternate name in the database. It will return something like "Hubble Spacecraft maps to HST". HST is the correct value to use. It will be in the form of x maps to y. The correct value to use is always y.

  4. valueExistsInColumn: Use this tool to check to see if a value exists in a column. The output will indicate if the value exists or if it does not exist. This is a very important tool, make sure you use it.

  5. retrieveProposalTitle: Use this tool to find or verify a proposal title by either passing in a description of the proposal title or an unverified proposal title. The output will be the closest proposal title that exists in the table. Use this tool when there is a proposal title in the SQL query.

Ensure that your output only has the improved statement and nothing else.

{question}

How to Use

Use with LangChain: hub.pull("shaylin/chatdb-proposal-title")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

H
homanp$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

K
Kay Tam$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

D
digitaljeff$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

B
BowTiedThinkerFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

T
Tristanyway$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

C
Chase Curtis$2.99
1,063 1,076