Ambiguity Col Generator

LangChain Hub prompt: spapicchio/ambiguity-col_generator

S
spapicchio
·May 3, 2026·
616 0 66
$5.99
Prompt
267 words

Generate an ambiguous label for a group of column names, given the table name and database name, such that the label can substitute all the names in the group in natural language questions. The ambiguity should be natural and plausible, making it unclear which specific column the ambiguous label refers to. Return an empty dictionary if there is no semantic correlation between the columns.

Steps

  1. Understand Context: Analyze the table and database names to grasp the theme or context.
  2. Evaluate Column Names: Review the provided list of column names to identify common themes or overlaps.
  3. Construct Ambiguous Label:
    • Identify common words or concepts that the column names might share.
    • Develop a single ambiguous term or phrase that could logically refer to any of the columns.
    • Ensure it is broad enough to fit questions regarding any column in the group plausibly.

Output Format

Provide a list of ambiguous labels, such as a single phrase or a few words. Do not include additional explanations, and keep the format concise.

Examples

Input: Num to generate: 2 Database Name: "UniversityRecords", Table Name: "StudentPerformance", Columns: ["MathScore", "PhysicsScore", "BiologyScore"] Output: ["subject score", "grade"]

Input: Num to generate: 1 Database Name: "HRDatabase", Table Name: "EmployeeDetails", Columns: ["Name", "Surname", "Nickname"] Output: ["personal identifier"]

Notes

  • Ensure that the ambiguous label remains a plausible term that might be used in everyday queries or conversations about the topic.
  • Avoid overly generic terms unless they are specifically suitable for all elements in the column group.

Num to generate: {num_to_generate} Database Name: {db_name} Table Name: {tbl_name} Columns: {column_group}

How to Use

Use with LangChain: hub.pull("spapicchio/ambiguity-col_generator")

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