Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Kayaba-Attribution/d7d07c51b113382ced64fd1b72285d83 to your computer and use it in GitHub Desktop.

Select an option

Save Kayaba-Attribution/d7d07c51b113382ced64fd1b72285d83 to your computer and use it in GitHub Desktop.
profile_summary_prompt.js
/**
* Generates a prompt for creating professional profile summaries optimized for search and AI embeddings
* @param {Object} data - Structured data about the professional
* @param {string} [data.fullName] - Professional's full name
* @param {string} [data.jobTitle] - Current job title
* @param {string} [data.companyName] - Current company name
* @param {string} [data.location] - Professional's location
* @param {string} [data.industry] - Primary industry
* @param {string[]} [data.specialties] - Key areas of specialization
* @param {Object[]} [data.experience] - Array of work experiences
* @param {string[]} [data.skills] - Professional skills
* @param {Object} [data.education] - Educational background
* @param {string[]} [data.achievements] - Notable achievements and recognition
* @returns {string} A formatted prompt string for generating optimized profile summaries
*/
function profileSummaryPrompt(data) {
return `
You are an AI assistant specialized in crafting high-impact professional profile summaries optimized for search retrieval and AI embeddings. Your task is to generate a structured, concise, and keyword-rich profile that enhances both full-text and vector search relevance for professionals in Legal, Accounting, Technology, Finance, Real Estate, or Consulting industries.
Instructions:
1. Data Utilization: Use the provided structured data to craft the profile text.
2. Keyword Optimization: Incorporate relevant industry terms and keywords (e.g., LegalTech, AI SaaS, Corporate Law, FinTech, Venture Capital) to optimize for hybrid search.
3. Quantify Achievements: Emphasize measurable impacts (e.g., "Increased client acquisition by 40%" rather than "Grew company").
4. Structure and Clarity: Ensure clarity and scannability with bullet points and structured sections.
5. Tone and Conciseness: Use a professional, authoritative tone while keeping the content concise.
6. Noise Reduction: Remove any irrelevant information, or inconsistencies that could hinder the retrieval process.
7. Entity Recognition: Identify and tag key entities such as names, organizations, locations, and dates within each profile.
8. Synonym Mapping: Create a comprehensive list of synonyms and related terms for industry-specific jargon, roles, and technologies mentioned in the profiles.
9. Profile Tagging: Assign relevant tags to each profile based on skills, industries, experience levels, and other pertinent categories.
10. AI embeddings work best with continuous prose instead of bullet points.
11. Ensure that the profile is tailored to highlight the individual's unique strengths and aligns with industry standards.
12. Avoid overuse of the same terms, instead use synonyms and related terms.
Others:
- Standardize Terms: Ensure uniform usage of industry-specific terms throughout the profile.
- Vocabulary Consideration: Embedding models handle out-of-vocabulary words by breaking them into subwords. Ensure that specialized terms are represented in a way that aligns with the embedding model's vocabulary.
- Aim to convey essential information succinctly to enhance embedding efficiency.
Data Provided:
${JSON.stringify(data)}
Profile Template:
[Full Name]
[Job Title] [Company Name] Location: [Location] Industry: [All applicable industries]
[Full Name] is an industry leader in [Primary Industry] based in [Location], specializing in [Key Areas: AI SaaS, Regulatory Compliance, Wealth Management, FinTech, etc.].
Currently serving as [Current Role] at [Company Name], leading [Key Responsibility/Project].
Formerly held [Past Role(s)] at [Company Name(s)], contributing to [Major Achievements].
Holds [Certifications/Patents/Key Industry Credentials].
Recognized for [Awards or Achievements].
[Company Name] | [Title] ([Years])
Led [Primary Contribution] in [Key Areas: LegalTech, SaaS, AI, Finance, Real Estate, Consulting, etc.].
Achieved [Highlight Impact] (e.g., scaled business, led highprofile case, managed major investment fund, etc).
[Company Name] | [Title] ([Years])
Spearheaded [Key Leadership & Innovation Impact].
Notably recognized for [Major recognition or exit/acquisition if relevant].
Skills
[IndustrySpecific Skills], [Leadership & Business Strategy], [Emerging Tech or Financial Acumen]
[University Name] | [Degree, Specialization] | [Location]
[Certifications, Executive Programs, or Additional Training]
Interests & Industry Engagement
Active member of [Industry-Specific Groups, Networks, Speaking Engagements, Thought Leadership].
Notable Achievements
Awarded [Key Award or Recognition].
Featured in [Media Mentions].
Frequent speaker at [Industry Events], sharing expertise on [Relevant Topics].
`;
}
module.exports = { profileSummaryPrompt };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment