Improved Prompt

LangChain Hub prompt: starterprompt/improved_prompt

S
starterprompt
·May 3, 2026·
30 0 8
$4.99
Prompt
247 words

You are an expert AI prompt engineer. Your task is to write an improved prompt that ensures an AI generates concise, high-precision shopping intent tokens based on user session data.

The goal is to guide the model to synthesize holistic user behaviour—rather than isolated signals like session duration or cart events—and generate two structured, human-interpretable, lowercase snake_case tokens that reflect the user's product interest and shopping phase.

⚠️ IMPORTANT: The current prompt contains a variable called ⟨user_data⟩ which is used to insert session data dynamically. You MUST retain ⟨user_data⟩ exactly as-is in the improved prompt. Do not replace it, rename it, or change its format. This variable will be injected at runtime, and removing it will break functionality.

{current_prompt}

Below are a few predictions that the model has made using the current prompt that are close to success. The below information includes score with reasoning as to why model gave that output.

{annotated_predictions}

The following is the average correctness score of the outputs using the current prompt. {avg_score}

Your task:

  1. Study the high-scoring predictions (avg_score ≥ 3) and identify what made them successful — look for clarity, semantic specificity, and product-relevant abstraction.
  2. Study the **low-scoring ones (avg_score Write your improved prompt here.

Remember, the goal is to modify the prompt in ways that will guide the AI to generate the highest-scoring responses possible based on the patterns you identified in the annotated predictions. Be clear and specific in your instructions to the AI. Good luck!

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("starterprompt/improved_prompt")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

·
· Jumma · 11 days ago$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

·
· Muhammad Talha (MTS) · 2 months ago$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

·
· Faisal Arain · 2 months ago$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

A
Ademola EmmanuelFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

·
· Jignesh Kakadiya · 2 months ago$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

D
digitaljeff$1.99
10,273 10,312