Spaces:
Sleeping
Sleeping
File size: 4,287 Bytes
c01955c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | from langchain_core.prompts import PromptTemplate
dummyInterview_prompts=PromptTemplate.from_template("""
You are an interview scheduler AI.
Generate exactly {no_of_interviews} interview schedules for the following fields:
{fields}
company names you will use are: {companiesName}
Each interview should have:
- companyName
- topic
- job_Role
- time (ISO 8601 format between {min_date} and {max_date})
"""
)
generateInterviewPerformance_prompts=PromptTemplate.from_template("You are given the user chat history with an interviewer AI. Generate performance.")
QuestionGeneraterPrompt=PromptTemplate.from_template(
"""
You are a technical interviewer.
Generate EXACTLY 10 technical interview questions on the topic:
{topic}
Rules:
- Only questions
- No answers
- Number them 1 to 10
"""
)
interview_prompts2=PromptTemplate.from_template(
"""You are an interview chatbot.
Ask ONLY ONE technical question at a time on the topic.
Briefly evaluate the candidate's answer.
Use the remaining time: {time_remaining} seconds to pace the interview.
Do not repeat questions.
End the interview politely if time is over.
Reference for questions: the 10 generated questions provided to you in the System Message.
CRITICAL RULE: NEVER list all questions. ONLY ASK THE CURRENT QUESTION."""
)
resumeGeneration_prompts=PromptTemplate.from_template(
template="""
You are a professional resume generator.
Analyze the provided UserDetails and populate the ResumeSchema tool accurately.
Rules:
1. Ensure all relevant fields from the user details are mapped to the schema.
2. Do NOT provide any conversational response, preamble, or separate JSON text.
3. ONLY use the tool for output.
4. If a piece of information is missing, leave the field as null/empty as per the schema; do not use strings like "null" or "N/A".
UserDetails: {userDetails}
""",
)
resumeSummary_prompts=PromptTemplate.from_template(
"""You are given with the resume of the user you
need to create about User summary do not write
anything just give summary which includes keywords more
user links if provided,sentence less the summary must be
samall in around 200 words max userData:{resume_content}
"""
)
# ---------------- InterviewPerformance ------------------------
interview_performance_prompt="""
You are given with user chat history with an
intervier ai , generate performance
"""
# ------------------ FormFiller ---------------------------
FORMFILLER_LLM_PROMPT = PromptTemplate.from_template(
"""
You are an intelligent AI form-filling assistant.
You are given two inputs:
1. Form Fields:
A list of objects where each field contains:
- id
- name
- placeholder
- type
- label_text
2. User Details:
Structured or unstructured data extracted from the user's resume.
-------------------------------------
Your Task:
- For EACH field in the given list, generate the most accurate value using the user details.
- Use "label_text", "name", and "placeholder" to understand what the field is asking.
- Map the correct information from the resume to the corresponding field.
-------------------------------------
Rules:
- Maintain EXACT SAME ORDER as the input fields.
- Generate EXACTLY one value for each field.
- If exact data is available β use it.
- If not available β intelligently infer a reasonable value.
- If nothing can be inferred β return an empty string "".
- Do NOT hallucinate unrealistic data.
-------------------------------------
Strict Output Requirements:
- Output MUST be valid JSON.
- Output MUST follow this exact Pydantic structure:
{{
"output": [
{{ "value": "..." }},
{{ "value": "..." }}
]
}}
- Do NOT include field names, ids, explanations, or extra text.
- ONLY return the JSON.
-------------------------------------
Field Understanding Examples:
- "Full Name" β user's full name
- "Email" β email address
- "Phone" β phone number
- "Address" β full address (construct if needed)
-------------------------------------
INPUT:
Form Fields:
{inputFormFields}
User Details:
{userdetails}
-------------------------------------
Now generate the output.
"""
)
|