Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. set temporature

  2. give some examples

  3. leverage built tools provided by LLM products. For example, Google AI Studio provides tools

    • grounding with google search, etc.

  4. A single comprehensive prompt including all details is better than interactively improving your prompt.

    • Due to the say LLM works, output of previous prompts are fed into it with new prompts. This might cause the LLM tool to output non-sense if there’s mistakes or halluciation in previous output.

    • A single comprehensive prompt including all details is also easier to manage (save, edit and rerun) later.

  5. For a large task, you can first ask a LLM tool to write a very detailed execution plan, polish it based on your expertise, and then feed the execution plan to a LLM tool to execute.

Tools for Generating and Managing Prompts

Feature/ToolVellum.aiPromptPerfect (Jina AI)HumanloopDust.ttLangChain (+LangSmith)LlamaIndexLiteLLMSpreadsheets (Sheets/Excel)Text Editors + GitAI Model PlaygroundsMeta-Prompting (LLMs)
Primary FocusEnd-to-end PlatformPrompt OptimizationFeedback & Iteration PlatformBuilding LLM AppsDeveloper FrameworkRAG Developer FrameworkLLM API AbstractionSimple Org & VariationFlexible Text & VersioningInteractive ExperimentationAI-Assisted Prompt Creation
Prompt GenerationPlayground, TemplatingAI-driven optimization, VariationsPlayground, TemplatingTemplating, ChainingAdvanced Templating, ParsersTemplating (RAG-focused)N/A (tests same prompt)Component CombinationManual Text EntryDirect IterationLLM-generated suggestions
Prompt ManagementVersioning, A/B, Eval, DeployLimitedVersioning, A/B, Feedback LoopApp Versioning, CollabCode (Git), LangSmith (Observability)Code (Git)Model RoutingManualGit for Versioning, FoldersBasic Saving/PresetsN/A
CollaborationYesLimitedYesYesVia Git, LangSmithVia GitN/ABasic SharingVia GitLimitedN/A
A/B TestingYesNoYesVia app versionsManual or via LangSmithManualFacilitatesManualManualManualN/A
VersioningYesNoYesYes (for apps)Yes (Git)Yes (Git)N/AManualYes (Git)LimitedN/A
Key LLM IntegrationsOpenAI, Anthropic, etc.Many modelsOpenAI, Anthropic, etc.OpenAI, Anthropic, etc.All major LLMsAll major LLMs100+ LLMsN/A (manual)N/A (manual)Provider-specificVia API
Target UserTeams, ProductionIndividuals, Teams (Refinement)Teams, Product BuildersDevs, Internal ToolsDevelopersDevelopers (RAG)DevelopersIndividuals, Simple NeedsIndividuals, DevsIndividuals, Quick TestsAnyone
Pricing ModelPaidFreemiumPaidOpen Source, Paid CloudOS (LangChain), LangSmith (Paid)Open SourceOpen SourceFreeFree (most tools)Usage-based (API)Usage-based (API)
Learning CurveModerateEasyModerateModerate-SteepModerate-SteepModerate-SteepEasy-ModerateEasyEasy (Editors), Mod (Git)EasyEasy
Key StrengthComprehensive, Prod-readyOptimizes existing promptsEvaluation & Feedback LoopBuilding internal LLM appsVersatility, Ecosystem, ObservabilityBest for RAGMulti-model API easeAccessible, No costFlexible, Robust VersioningImmediate FeedbackIdea generation, Phrasing
Potential WeaknessPaid, Overkill for soloNot full management suitePaidSteeper curveCode-heavy, LangSmith setupRAG-specificNot prompt content itselfManual, Not scalableManual setup for mgmtBasic mgmt, Not for teamsOutput quality varies

Examples of Prompt

You are an expert at making ascii art. Given a text prompt of an object or animal, you can make an image depicting the prompt, using only ascii text. Please be creative, and make liberal use of whitespace characters. Please use code blocks as needed. Avoid repeating the same lines. Prefer profile reviews, not top down views or face views. Please feel free to output many characters in order to have a picture with better resolution and bigger dimensions.

You are a meticulous content moderator specializing in identifying abusive language related to the Israel-Palestine conflict.
Your task is to classify input text (review_text) as either “Abuse” or “Not Abuse” based on the provided definitions.
These reviews capture users’ experiences and opinions after visiting a place and sharing them on Google maps. “Abuse” is defined as any content expressing war-related sentiments, protest discussions like zionism immigration issues or political statements . “Not Abuse” encompasses all other content not related to the conflict. Provide the Label: [Abuse or Not Abuse]

You are the best sales man at a kia ev9 dealership. I’m interested in kia ev9, either the land or the gt-line trim. Would you help me understand the difference between the land and the gt-line trim to decide which one to buy?

Step by Step Instructions

  1. Read the input: Carefully review the provided review_text variable. The review_text contains the text to be classified.

  2. Identify keywords and sentiments: Analyze the review_text for keywords and phrases related to the Israel-Palestine conflict, including but not limited to: war, violence, conflict, political statements, immigration.

  3. Classify the text: Based on your analysis in step 2, determine whether the review_text falls under the “Abuse” or “Not Abuse” category according to the provided definitions.

  4. Format the output: Label: [Abuse or Not Abuse]