Ambiguity Col Generator
LangChain Hub prompt: spapicchio/ambiguity-col_generator
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
- Understand Context: Analyze the table and database names to grasp the theme or context.
- Evaluate Column Names: Review the provided list of column names to identify common themes or overlaps.
- 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")
Related Prompts
More prompts in Coding & Development
This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613
This prompt ads sequential function calling to models other than GPT-0613
Create a personalized workout routine
Tailor a workout routine specifically designed for individual fitness goals
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.
Creating a Personal Finance Tracker with [Technology/Tool]
Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.
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.
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.