Prompt Engineering
Prompt Engineering
Artificial intelligence isn't just knocking on the door of stock analysis; it's already
remodeling the house. Large language models (LLMs) like the GPT series are stepping
up as tireless, 24/7 research assistants for investors like you. Imagine a tool that can sift
through mountains of financial news, regulatory filings, and market data at speeds no
human could dream of, pulling out key insights and potential investment signals. That's
the power on offer. But to truly harness this power and make smarter investment
decisions, there's a new skill to master: prompt engineering. Think of it as learning the
art of conversation with AI – giving it clear, concise instructions and the right context so
it delivers sharp, useful analysis instead of generic fluff or, worse, misleading answers.
In this e-book, we'll dive into why prompt engineering is becoming indispensable for
both everyday retail investors and seasoned professionals in the world of equities. We'll
explore how LLMs are already being put to work in equity research, walk through
essential prompting techniques, and introduce custom frameworks I've developed – 🟦
F.A.I.R., 🟩T.A.S.K., and 🟧C.O.M.P.S. – specifically tailored to the workflows of stock
analysis. We'll then level up with advanced strategies, like guiding the AI through step-
by-step reasoning and using few-shot examples, to elevate your analytical game.
Crucially, we'll tackle the thorny issues of compliance and data privacy, so you can use
these powerful tools responsibly and ethically in the highly regulated financial
landscape.
🔍 Real-world case studies – from a DIY retail investor digging into annual reports
to sophisticated systems like Morgan Stanley's internal AskResearchGPT.
🧰 Practical, copy-paste prompt library – ready-made templates to get you
started immediately.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 1/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
⚠️ Note: Using an LLM for stock research will not, and should not,
replace your human judgment or the guidance of a professional financial
advisor. Making investment decisions based solely on an AI's output is a
risky proposition. These models, for all their strengths, have limitations:
they often lack real-time data, they can (and do) make errors (sometimes
called "hallucinations"), and they certainly aren't licensed to give
financial advice. However, armed with the right prompts and a critical
eye, an LLM can become an incredible productivity booster –
summarizing dense filings in minutes, sparking new insights, and even
suggesting questions you might not have thought to ask. This e-book is
your guide to unlocking that potential, step by step, so you can work
smarter with AI as your powerful ally, not a pitfall. Ready to begin? Let's
dive in!
But here's the catch: simply having access to a powerful LLM doesn't automatically
translate to high-quality, actionable outputs. The old adage "garbage in, garbage out"
applies with full force. Ask a vague question like, "What's the outlook for TechCorp?",
and you'll likely get a bland, generic answer filled with platitudes. However, if you learn
to ask the right questions, infused with the right context, you can unlock deeply
relevant and surprisingly accurate insights. Crafting these effective queries is the very
essence of prompt engineering.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 2/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
So, why does prompt engineering really matter? It's the crucial bridge between your
expertise and the AI's vast capabilities. As an investor, you bring domain knowledge,
specific goals (like understanding why a stock plummeted after an earnings miss, or
how two competitors stack up), and critical thinking. The AI brings its enormous
knowledge base (trained on a significant portion of the internet, including a wealth of
financial texts) and incredible processing speed. The prompt is your way of clearly
communicating your goals and providing that vital context to the AI. Well-crafted
prompts unlock the AI's full potential, transforming it from a simple Q&A bot into a
sophisticated analytical partner. A good prompt can guide an LLM to produce a focused
valuation analysis instead of a Wikipedia-style summary. It can nudge the model to
consider important nuances (like distinguishing whether revenue growth was organic or
driven by acquisitions) rather than just skating on surface-level observations.
More than that, prompt engineering actually sharpens your own analytical and
communication skills. As one forward-thinking investment firm noted, to harness LLMs
effectively, analysts must amplify one of their most critical abilities: communication.
When you clearly specify what you need from the model, you're essentially formalizing
your own thought process. This not only leads to better AI output but often clarifies
your own understanding of the problem you're trying to solve. It forces you to think
precisely about the information you need and the questions you should be asking.
Relevance: It empowers you to direct the AI to the most pertinent insights for your
specific investment thesis or question. Precise prompts yield answers that are
directly on-point for your needs.
Depth: It enables you to go beyond superficial facts and obtain deeper, more
nuanced analysis. You can instruct the model to adopt expert personas or delve
into the underlying causes and potential implications of events.
Efficiency: It saves you precious time by delivering higher-quality outputs faster. A
poorly phrased query might lead to a frustrating back-and-forth of clarifications; a
well-crafted prompt can often get you the answer you need in a single attempt.
Customization: You gain fine-grained control over the output. You can tailor the
format (bullets, tables, narrative), the tone (formal, informal, cautious), and the
level of detail to match your exact requirements. Need a concise five-bullet
summary for a quick read? Or a detailed report section for a deeper dive? Prompt
engineering makes it possible.
Risk Mitigation: Thoughtful prompts can help mitigate some of the inherent risks
associated with LLMs, such as bias or the tendency to "hallucinate" (invent facts). By
carefully constraining the model's focus and providing factual grounding, you can
https://davidwang95.github.io/Equities_Prompting_Ebook/ 3/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
improve the reliability of its outputs. (We'll explore this in more detail in the
troubleshooting section.)
These benefits are crucial for everyone, from retail investors (who often act as "one-
person research teams" juggling limited time) to professional analysts at large
institutions (who face a daily deluge of information and the pressure to cover more
ground, faster). It's no surprise that investment firms are actively training their staff in
prompt engineering, viewing it as a new core competency and, as some have put it,
"capital well spent" in the pursuit of better investment outcomes. Just as proficiency in
Excel or Bloomberg terminals became essential tools in previous decades, knowing how
to effectively leverage AI through skilled prompting is becoming critical in today's
investment landscape.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 4/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
BigAuto and FastCar Inc. in terms of their recent revenue growth, profit margins,
and debt levels." The model could then produce a side-by-side analysis, perhaps
even in a simple table format, highlighting which company appears stronger on
each specified metric (based on the information it has).
Sentiment & Trend Analysis: More advanced applications involve tasking the LLM
with gauging sentiment from news articles, social media (if it has access or is
provided with the data), or even analyzing the tone of management in earnings
calls. A prompt like, "Summarize the market sentiment surrounding FinTechCorp
over the past month based on these news headlines," (followed by the headlines)
could yield an indication of whether the prevailing tone has been positive, neutral,
or negative, potentially citing key events.
Drafting Narratives & Reports: An LLM can serve as a starting point for drafting
various written materials, such as investment theses, sections of research reports,
or even explanations of complex financial concepts in plain English. Some investors
even leverage the code generation abilities of models like GPT-4 to assist with
quantitative analysis, such as writing Python scripts to fetch and analyze stock data.
Domain-Specific LLMs: Recognizing the immense value of specialized financial
knowledge, we're seeing the emergence of LLMs trained specifically on financial
data. BloombergGPT, a 50-billion parameter model developed by Bloomberg, was
trained on a massive corpus of financial information (news, filings, transcripts,
proprietary data, etc.). It has demonstrated superior performance on many
financial tasks compared to general-purpose models, while still retaining strong
general language capabilities. Open-source initiatives like FinGPT are also gaining
traction, aiming to democratize financial AI by fine-tuning publicly available models
on financial datasets. These domain-specific models can often provide more
nuanced or accurate responses on finance-related topics (e.g., correctly parsing a
complex balance sheet item or understanding niche financial jargon in context)
than a general model. However, even general-purpose models have shown striking
competence in the financial domain.
Despite these impressive strengths, it's crucial to be aware of the notable limitations of
LLMs in equity research:
Knowledge Cutoff and Real-Time Data: Most publicly accessible LLMs (unless
specifically designed with live internet access or updated via plugins) have a
"knowledge cutoff" date. This means their training data, and thus their knowledge
of events and data, ends at a certain point in the past. Consequently, the model
might be unaware of the latest quarter's earnings, recent market-moving news, or
current stock prices. This limitation means you often need to provide the most
current information within your prompts if you want the model to consider it in its
analysis.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 5/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
All that said, the adoption of LLMs in the financial industry is undeniably real and
accelerating. Major financial institutions are increasingly integrating these technologies.
For example, Morgan Stanley developed an internal GPT-4-powered assistant for its
wealth management advisors, allowing them to quickly query the firm's extensive
research library and intellectual capital in natural language, receiving summarized
answers with source citations in seconds. This significantly augments analyst workflow,
https://davidwang95.github.io/Equities_Prompting_Ebook/ 6/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
saves time, and enables quicker, more informed client service. Many investment firms,
both large and small, are actively prototyping similar internal tools or establishing clear
guidelines for their analysts to use public tools like ChatGPT with appropriate oversight
and data protection measures. As these models continue to improve, gain access to
more real-time data through secure integrations, and become more adept at
specialized financial tasks, their role in equity research is set to expand even further.
For an individual investor, this is incredibly empowering. You essentially have a tool at
your fingertips that can function like a personal research assistant – one that has "read"
a vast library of financial information (up to its knowledge cutoff) and can communicate
its findings reasonably well. But to truly unlock the value from this sophisticated
assistant, you need to learn how to ask it the right way. In the next section, we'll get into
the practical nuts and bolts of prompt engineering essentials – the core techniques you
can start using immediately to dramatically improve the relevance, accuracy, and
quality of the AI outputs you receive in your stock research endeavors.
Prompt engineering is often described as both an art and a science. The good news?
You don't need a degree in computer science or a deep understanding of the model's
internal architecture to become effective at it. At its heart, it's about clear
communication, logical thinking, and a bit of experimentation – skills you likely already
use in your daily analysis and writing. Let's break down the essential principles for
getting better results from an LLM:
If you're asking about a specific company, always use its full name and perhaps its
industry to avoid ambiguity. Instead of a vague, "What's the outlook for Delta?", a much
better prompt would be, "What's the outlook for Delta Air Lines (DAL) over the next 12
months, considering the recent trends in fuel costs and passenger demand?" Just saying
"Delta" could lead the model down a rabbit hole, perhaps confusing the airline with the
https://davidwang95.github.io/Equities_Prompting_Ebook/ 7/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Greek letter used in options trading, or another company entirely. Clarifying the scope
(company, industry), timeframe, and the particular aspect you're interested in is crucial.
If necessary, add a sentence or two of background to set the scene. For example: "I'm a
retail investor analyzing TechCorp after its Q3 earnings release. The stock dropped 15%
immediately following the announcement. Could you provide some potential insights
into why the market might have reacted so negatively, based on common investor
concerns after such an event?" Here, you've given the model crucial context about the
event (earnings release, stock drop) and clearly stated your objective (insights into the
negative reaction). This is far more effective than a simple, context-free, "Why did
TechCorp stock go down?"
If you want the answer tailored to a certain style, depth, or level of technicality, explicitly
state it. For instance, compare:
The first will yield a simpler, more accessible explanation, while the second will invite a
more technical and nuanced deep-dive. In fact, explicitly telling the LLM to adopt a
specific role can significantly sharpen its responses. If you preface your query with, "Act
as a seasoned portfolio manager. Analyze the key risks and opportunities for this stock
in the current macroeconomic environment," the AI will attempt to frame its answer
with the tone, considerations, and insights characteristic of that professional persona.
This "role-playing" technique is surprisingly effective.
Prompt (B) is far superior. It sets the scene with concrete information (debt doubled to
$10B, acquisition context, ticker for clarity), assigns a clear task (analyze the danger to
financial health and growth funding), and specifies a viewpoint (equity analyst). You can
easily imagine that prompt (B) will elicit a much more informative and structured
answer than the ambiguous prompt (A).
For example:
Clear and Effective: "Explain the impact of rising interest rates on BigBank's net
interest margin in simple, direct terms."
Muddled and Ineffective: "So, I was kind of wondering, you know, with the rates
going up and all, how that might, like, maybe, affect BigBank, 'cause they do a lot
with mortgages and loans, or something? What's the deal there?"
The second version is far more likely to lead to an off-target or unhelpful answer
because the model is struggling to parse your actual question from the noise.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 9/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Too broad or generic: Add more specific details, constraints, or context. Ask for
concrete examples.
Missed the point: Try rephrasing using different keywords or a clearer structure.
Incorrect information: Provide correct information in your next prompt.
Wrong tone/style: Explicitly instruct the desired tone or format.
👥 Role-Playing Examples
"You are a veteran stock analyst with deep expertise in the semiconductor sector.
Explain the primary competitive advantages and disadvantages of ChipMaker Inc. in
the current market."
"Explain the concept of 'economic moat' like I'm a high school student just
beginning to learn about stocks."
With these essential principles covered, you now have a solid foundation for effective
prompt engineering. Next, we'll build upon this by introducing some structured prompt
https://davidwang95.github.io/Equities_Prompting_Ebook/ 10/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Each framework is tailored to a common workflow in stock analysis. Let's break them
down one by one, with clear examples.
F = Facts 📋
Begin your prompt by clearly establishing the relevant facts or the essential context.
These could be key financial figures, recent noteworthy events, specific data points
from a report, or any other foundational information the model should factor into its
analysis. Essentially, you're feeding the AI the raw material or drawing its attention to
the most pertinent information.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 11/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Example: "Fact: XYZ Corp's revenue grew by 5% in the last reported quarter, but its net
income surprisingly fell by 10%. The company also announced the appointment of a
new CEO in June."
A = Analysis 🔍
Next, ask the model to analyze or interpret these facts. This is the core analytical task –
the "why" or "how" behind the stated facts. You're prompting the AI to connect the dots
and explain the dynamics at play.
Example: "Analyze the potential reasons why XYZ Corp's net income could have
dropped despite revenue growth. Consider factors such as changes in gross or
operating margins, increased operating expenses, one-time charges, or shifts in
product mix."
I = Insights 💡
Now, push the model to deliver higher-level insights or discuss the broader implications
of its analysis. This moves the answer beyond a simple interpretation of facts into the
"so what does this mean?" territory. Insights could relate to the company's future
outlook, its competitive positioning, investor sentiment, or strategic direction.
Example: "Provide insights into what these financial results and the CEO change might
indicate about XYZ Corp's current operational efficiency, its strategic priorities, and its
overall business health."
R = Risks ⚠️
Finally, instruct the model to identify and discuss any potential risks, uncertainties, or
red flags related to the scenario or its analysis. No thorough analysis is complete
without considering what could go wrong, what challenges lie ahead, or what key
unknowns remain.
Example: "Also, discuss any significant risks or red flags that investors should be
mindful of in light of these developments (e.g., potential impact of rising input costs,
challenges related to the CEO transition, competitive pressures, or evolving market
conditions)."
years. Analysis: Explain the primary factors that likely drove this net loss despite the
solid revenue growth. Consider potential reasons such as increased research and
development expenses, higher sales and marketing costs associated with market
expansion, supply chain disruptions impacting cost of goods sold, or one-time
restructuring charges. Insights: What does this combination of strong revenue growth
and a net loss suggest about CleanTech's current business model, its investment
priorities, and the competitive dynamics in the renewable energy market? Risks:
Highlight any significant risks or concerns for investors that emerge from these Q4
results, such as potential ongoing cash burn, the sustainability of its growth strategy if
profitability doesn't improve, or increased vulnerability to financing conditions if losses
continue."
T = Target 🎯
Clearly define the target outcome, the specific question you're trying to answer, or the
precise objective you want to accomplish. This focuses the model squarely on the end
goal.
Example: "Target: Determine whether Company ABC's current stock valuation appears
justified by its historical growth performance and future growth prospects."
A = Approach 📋
Suggest or ask for a specific approach or methodology to tackle the target. This could
involve naming a particular analytical method (like Discounted Cash Flow analysis,
comparables analysis, or ratio analysis) or simply instructing the model to adopt a
logical, step-by-step approach. Essentially, you're guiding how the AI should go about
addressing the task.
Example: "Approach: First, assess Company ABC's historical revenue and earnings
growth rates over the past 3-5 years. Then, compare its key valuation multiples (e.g., P/E
ratio, P/S ratio) to those of its closest industry peers. Finally, consider any significant
qualitative factors that might influence its future growth trajectory."
S = Steps 👣
https://davidwang95.github.io/Equities_Prompting_Ebook/ 13/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Encourage or instruct the model to break down the problem into distinct steps (if the
chosen approach didn't already explicitly lay them out). For more complex questions,
you can even explicitly number the steps within your prompt. LLMs generally handle
such structured instructions well and will often mirror the stepped format in their
answer.
Example: "Steps:
1. Calculate or retrieve Company ABC's average annual earnings growth rate for the
last three fiscal years.
2. State Company ABC's current Price-to-Earnings (P/E) ratio and compare it to the
average P/E ratio of its primary industry competitors.
3. Evaluate whether ABC's historical growth rate and any stated future growth
initiatives can reasonably justify its current P/E multiple relative to its peers."
Instruct the model to conclude with the key takeaways, the main findings, or the answer
derived from executing the specified steps. This ensures you get a clear, concise
bottom-line summary of the analysis.
C = Context 🌍
Set the context by clearly specifying what is being compared. List the companies, assets,
time periods, or scenarios you want the AI to focus on.
Example: "Context: Compare AutoCo (NYSE: ACO), TruckCo (NASDAQ: TKO), and
MotoCo (OTC: MCO) – three publicly traded companies operating within the broader
vehicle manufacturing sector."
https://davidwang95.github.io/Equities_Prompting_Ebook/ 14/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
O = Objective 🎯
State the primary objective or the main goal of the comparison. What are you trying to
achieve or find out? Are you looking to identify which entity is "best" on a particular
metric, highlight key differences, rank them according to certain criteria, or understand
relative positioning?
M = Metrics 📊
Specify the exact metrics or criteria that should be used for the comparison. This is a
crucial step. Without clear metrics, the model might guess what to compare (e.g.,
revenue size? stock price performance? number of employees?), leading to an irrelevant
analysis. You should clearly state the financial ratios, growth rates, qualitative factors,
or other data points that matter for your specific analytical objective.
Example: "Metrics: For each company, compare their (a) year-over-year revenue growth
percentage, (b) gross profit margin, (c) operating profit margin, and (d) debt-to-equity
ratio for the most recent fiscal year."
Indicate any particular perspective, timeframe, or desired presentation format for the
comparison.
Example: "Perspective/Presentation: Focus on the data from the last completed fiscal
year (e.g., FY2024). Please present the comparison in a table with columns for each
company and rows for each of the specified metrics."
S = Summary 📝
Ask the AI to provide a summary of its findings or a concise conclusion drawn from the
comparison. This ensures the model not only lists numbers or facts but also interprets
them and offers a bottom-line assessment based on the requested analysis.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 15/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
For a fundamental analysis, did I cover all the F.A.I.R. elements to get a thorough
view?
For a complex problem or process explanation, did I guide the AI through the
necessary steps using T.A.S.K.?
For a comparison, did I clearly specify all the C.O.M.P.S. components, especially the
metrics and objective?
Often, you'll quickly identify a missing piece in your original prompt and can then re-
prompt with a more complete and structured query, leading to a significantly better
outcome.
We've now covered some custom frameworks to help you systematically structure your
prompts for common stock analysis workflows. Next, we'll explore some advanced
prompting techniques that go beyond basic Q&A. These techniques can further
enhance the depth, reliability, and sophistication of the AI's responses, especially when
you're tackling more complex equity analysis tasks.
explicitly guiding the model to "think out loud" or articulate its reasoning process step
by step before arriving at a final answer.
💡 Why It Helps:
By forcing the model to enumerate and work through intermediate steps, CoT
prompting often leads to more accurate, logical, and transparent answers. It can reduce
the likelihood of "hallucinations" or nonsensical conclusions because the model is
constrained to follow a more structured thought path, making it easier for you to verify
each part of its logic.
"ABC Corp reported a 15% increase in net earnings for the last quarter, but its operating
cash flow decreased by 10% year-over-year. Explain step-by-step how such a divergence
between earnings and operating cash flow can occur. In your explanation, consider the
potential impacts of changes in working capital (accounts receivable, inventory,
accounts payable), non-cash revenues or expenses, and significant one-time items.
After detailing the possible reasons, provide a concluding thought on why investors
might not need to panic if this divergence is due to temporary factors."
💡 Why It Helps:
For very complex analytical tasks, trying to achieve everything in a single, massive
prompt can be counterproductive and lead to suboptimal results. Instead, you can
often achieve better outcomes by decomposing the complex task into a series of
smaller, more manageable sub-tasks, addressing each with a separate, focused prompt.
📝 How to Do It:
Identify the distinct sub-tasks within your larger analytical goal. Address them
sequentially, potentially using the output from one prompt as an input or context for
the next. For example, if you want to assess the long-term viability of a company:
💡 Benefits:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 18/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
📝 What is RAG?
In a RAG system, when you ask a question, the system first retrieves relevant
information from a specified knowledge base (e.g., your firm's internal research
documents, recent SEC filings, a curated set of news articles, or even live web search
results). This retrieved information is then provided to the LLM as part of the context
along with your original prompt.
Reduces Hallucinations
Improves Factual Accuracy
Overcomes Knowledge Cutoff
Enables Analysis of Private/Proprietary Data
"I want to analyze Company ABC's competitive advantages compared to its main
peers, focusing on its technology, brand, and market share. What would be an
effective way to prompt an AI like you to get a detailed and well-structured analysis
of this?"
"I'm trying to get an LLM to summarize the key financial takeaways from an
earnings call transcript, but my prompts are giving me very generic answers. Can
you suggest a more specific prompt structure that would encourage a more
insightful summary?"
https://davidwang95.github.io/Equities_Prompting_Ebook/ 19/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
These advanced techniques can often be combined for even greater effect. For
instance, you might use a few-shot prompt that includes an example of a chain-of-
thought reasoning process. Or you could use a tool (like code execution) to perform a
calculation as one step in a prompt chain, then feed that calculated result into a
subsequent prompt that asks for an explanation or interpretation.
💡 Core Principles:
Tell the model how to think: Guide it step by step, encourage logical deduction
Show the model what "good" looks like: Provide clear examples of the desired
output format, style, or content
Break big problems into smaller, manageable pieces: Don't try to do everything in
one go; decompose complex tasks
Bring in real, relevant data whenever needed: Don't rely solely on the model's
internal knowledge if you can provide factual, up-to-date information
By applying these more sophisticated approaches, you can elicit surprisingly nuanced,
detailed, and reliable outputs from LLMs. You can essentially co-pilot with the AI
through complex tasks like stress-testing your investment assumptions, performing
rudimentary scenario analysis, or even drafting substantial portions of a research
report.
However, always remember the golden rule: you remain the human in charge. You are
the analyst, the critical thinker, the decision-maker. Oversee each step of the AI's
process, rigorously verify any critical facts or figures, and ultimately use your own
judgment and expertise to draw the final conclusions and make investment decisions.
Now that we've armed you with a range of prompting techniques from basic to
advanced, we must turn our attention to a critical aspect of using these tools in the
financial world: compliance and data privacy. The next section focuses on how to use AI
responsibly and ethically, ensuring you operate within regulatory boundaries, company
policies, and protect sensitive information.
Here's a breakdown of key considerations and best practices to keep you on the right
side of the line:
Never, ever input sensitive non-public information into a public AI service like the free
versions of ChatGPT or other general-purpose LLMs accessible via the web. This is the
most critical rule. Such information includes:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 21/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
If you need to explore a scenario that is based on a real but sensitive case, you must
anonymize the data thoroughly. Change company names, alter specific figures to be
representative rather than exact, and remove any details that could identify the specific
entity or individuals involved. For instance, instead of typing, "Our client, ACME Corp.,
based in Springfield, has an EBITDA of $15.7 million and total debt of $50.2 million.
Analyze its debt service capacity," you might generalize it to: "Consider a hypothetical
mid-sized manufacturing company in the Midwest with an EBITDA of approximately
$15-20 million and total debt around $50 million. Discuss the typical factors an analyst
would consider when assessing its debt service capacity."
If you work for a financial institution, your firm may provide access to LLM capabilities
through secure, internal platforms or private instances hosted by approved vendors
(e.g., using Azure OpenAI Service or similar enterprise solutions). These environments
are typically designed with data security and privacy controls that prevent your data
from being exposed publicly or used for training general models. Always prioritize using
firm-approved tools for any work involving sensitive information. Morgan Stanley's
internal AskResearchGPT, which operates on their proprietary data within a controlled
environment, is a prime example of this approach.
For any AI tool you use, carefully review its data usage and privacy policies. Pay
attention to whether your data is used for training, how long it's retained, and what
security measures are in place. For API usage, data is often not used for training by
default, but it's crucial to verify.
This is the safest mantra. If you have even the slightest concern that information might
be sensitive or confidential, do not include it in a prompt sent to a public AI service.
does not possess. Therefore, think of LLMs as powerful information retrieval and
analysis tools, not as advisory tools.
Avoid phrasing queries as if you're seeking personal advice. Instead, focus your
prompts on eliciting analysis, information, or explanations.
Avoid ❌: "Tell me which of these five semiconductor stocks is the best one for me
to buy for long-term growth." (This is asking for a prediction and a personal
recommendation – not appropriate.)
Prefer ✅: "Compare the recent financial performance (revenue growth,
profitability) and current valuation multiples (P/E, P/S) of these five semiconductor
stocks: [List them]. Then, list the potential pros and cons of each as a long-term
investment, considering common market perspectives." (This requests objective
analysis and a summary of different viewpoints, not a directive for your action.)
📝 Documentation
Depending on your firm's policies and any applicable regulatory requirements, you
might need to document when and how AI was used in the preparation of research,
reports, or client communications. Some compliance regimes are beginning to
formulate guidelines around AI usage, and internal firm policies are often ahead of
formal regulations.
⚠️ Disclaimers
https://davidwang95.github.io/Equities_Prompting_Ebook/ 23/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Always include clear and conspicuous disclaimers when AI-assisted content is shared,
especially externally. A good disclaimer might read something like:
"This analysis was prepared with the assistance of artificial intelligence (AI) Large
Language Models. While efforts have been made to ensure accuracy, AI models may
have limitations, produce errors, or generate incomplete information. All information,
analysis, and opinions presented should be independently verified from reliable
sources before making any investment decisions. This content is for informational
purposes only and does not constitute financial advice or a recommendation to buy or
sell any security. This covers both the AI assistance factor and the standard no-advice
stipulation. Many reputable financial education websites and research providers are
adopting similar transparency practices.
Data Protection and Privacy Laws (e.g., GDPR in Europe, CCPA in California): If
you are handling personal data, especially of clients or individuals in jurisdictions
with strong data privacy laws, be extremely cautious. Sending such data to an
external AI service could be considered data processing and might require explicit
consent and adherence to strict data handling protocols. For personal investing
research not involving others' data, this is less of an issue, but for any professional
context involving client information, it's a major red flag unless done through
secure, compliant channels.
Research Objectivity and Disclosure Rules (e.g., SEC, FINRA rules in the U.S.): If
you publish equity research or make recommendations, there are stringent rules
about ensuring the information is fair, balanced, not misleading, and that any
potential conflicts of interest are disclosed. If AI contributes to your research, you
are still responsible for ensuring the final output meets all these regulatory
standards. The AI won't understand these nuances; you must.
Intellectual Property (IP) and Copyright: Be mindful if you're prompting an AI
with large verbatim chunks of text from copyrighted materials, such as paid
research reports, books, or proprietary databases. You are essentially sharing that
potentially protected content with the AI service provider, which could raise IP
infringement concerns. It's generally safer to use publicly available information,
your own original writing, or concise summaries (rather than extensive verbatim
copies) for inputs, especially when dealing with third-party copyrighted content.
Anti-Manipulation and Market Integrity Rules: Ensure that your use of AI
doesn't inadvertently lead to the creation or dissemination of false or misleading
https://davidwang95.github.io/Equities_Prompting_Ebook/ 24/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
information that could manipulate markets. This ties back to the critical need for
accuracy and verification.
We've covered the essential cautionary tales and guidelines – but don't let this
discourage you. The potential benefits of using LLMs in equity research are immense,
and many investors and institutions are already finding ways to harness this potential
safely and effectively. It's about smart, informed usage.
Next, let's bring all this theory to life by looking at some real-world and illustrative case
studies. We'll see how different types of investors (from retail to professional) have
applied prompt engineering in their workflows, and what practical lessons we can draw
from their experiences.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 25/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
🎯 Background
Jane is a diligent retail investor who holds shares in AlphaTech Corp. (fictional). The
company has just released its annual report (10-K), a dense 120-page document. Jane
wants to quickly grasp the key takeaways – the company's strategic direction, any
significant new risk factors, and a summary of its financial performance – but she
doesn't have several hours to meticulously comb through the entire filing.
Jane decides to leverage an LLM like ChatGPT to get a head start. She identifies the
most critical sections: "Business Overview," "Management's Discussion and
Analysis (MD&A)" for performance, and "Risk Factors." She carefully copies key
excerpts from these sections (being mindful of prompt length limits, perhaps taking the
introductory paragraphs and a few key sentences from major risk descriptions). She
then crafts the following prompt:
"Context: Below are selected excerpts from AlphaTech Corp.'s recently released 10-K
annual report. I've included parts of the Business Overview, MD&A, and Risk Factors
sections. [<< Jane pastes the selected text from the 10-K here >>]
Summarize AlphaTech's core business model and its stated strategy for the upcoming
year in 2-3 sentences.
Identify and list the top 3 most significant risk factors highlighted in the
provided text, explaining each in simple terms.
Briefly mention any key financial performance trends (e.g., revenue growth,
profitability changes) discussed in the MD&A excerpt.
Format: Please provide the answer in three distinct sections corresponding to the
tasks above."
✅ Result: The AI processes the provided text and produces a structured summary. For
example:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 26/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
💡 Outcome & Lesson: Jane quickly gets a coherent overview of the crucial points from
the dense 10-K. This allows her to focus her subsequent manual review on the areas
flagged by the AI. Importantly, during her own skim-through, she notices the AI's
summary of one risk factor was slightly oversimplified. She then refines her approach
for future summaries by prompting the AI to "quote the exact sentence fragment that
best describes each risk before explaining it in simpler terms." This iterative learning
improves her prompting skill. The AI provided an excellent first-pass summary, saving
significant time, but her verification and iterative refinement were key to maximizing its
utility and accuracy.
🎯 Background
Maria is an equity analyst at a large investment bank that has deployed an internal,
secure LLM assistant (let's call it "AskFinanceGPT"). This tool is fine-tuned on the firm's
proprietary research reports, internal market commentary, and approved financial data
sources. Ahead of an urgent client meeting, Maria needs to quickly get the firm's latest
consolidated view on BioPharma Co. (fictional), a company covered by multiple analysts
across different therapeutic areas within the firm.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 27/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Maria opens AskFinanceGPT (which, crucially, only accesses the firm's internal, vetted
knowledge base, ensuring compliance and data security). She types a natural language
query:
The current official rating (e.g., Buy, Hold, Sell) and 12-month price target.
The key bullish drivers and bearish risks highlighted in our latest research.
Any recent significant updates or changes to our thesis.
If there are differing views or scenario analyses (e.g., bull vs. bear case
valuations) from different analysts covering aspects of BPHM, please highlight
them.
Ensure all information is sourced from reports published in the last 3 months and
provide direct links or references to the source documents within our system."
📈 Result
AskFinanceGPT processes the query against the firm's internal research database and
swiftly returns a synthesized summary:
Firm Outlook: Our firm's current outlook on BioPharma Co. (BPHM) is 'Overweight' with
a 12-month price target of $45.00 (as of March 15, 2025, Report #XYZ123).
Strong Phase 3 trial data for its lead oncology drug, OncoVance
Expanding market share in autoimmune therapies
Robust pipeline with 3 upcoming catalysts in H2 2025 (Report #ABC789)
Recent Updates:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 28/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Scenario Analysis:
All statements would ideally be followed by internal links to the cited reports.
🎯 Background
A widely discussed 2023 study from the University of Chicago explored GPT-4's ability to
analyze standardized financial statements to predict future earnings changes. The
researchers effectively prompted the model with financial data and asked it to make a
directional earnings prediction.
While the exact prompts aren't always public, the methodology involved providing GPT-
4 with structured financial statement data (e.g., revenue, various expense items, assets,
liabilities from income statements and balance sheets for several periods) for a given
company. The prompt would have then asked the model to:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 29/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
"Analyze the provided historical financial statement data for Company X. Based on
trends in revenues, expenses, margins, assets, and liabilities, predict whether the
company's earnings per share are more likely to increase or decrease in the next
reported period. Explain your reasoning step-by-step, highlighting the key financial
indicators that support your prediction."
📊 Result
The study found that GPT-4, even without industry-specific context or news (relying
solely on the patterns in the financial statements), achieved a notable accuracy in
predicting the direction of next-period earnings, in some cases outperforming human
financial analysts who were also given the same limited information. The LLM appeared
to identify subtle patterns and relationships within the financial data that were
indicative of future earnings trends. Follow-up research through 2024 and early 2025
has continued to explore these capabilities, with some studies focusing on the LLM's
ability to interpret the nuances in MD&A sections or identify early warning signs of
financial distress from footnote disclosures when prompted appropriately.
This type of research underscores the potential of LLMs, when skillfully prompted with
relevant data, to perform sophisticated pattern recognition and analytical tasks that
were previously the exclusive domain of human experts. It doesn't mean LLMs will
replace analysts (real-world analysis involves far more qualitative factors, industry
knowledge, and forward-looking insights). However, it shows that LLMs can be a
powerful tool for generating initial hypotheses, identifying anomalies, or providing a
"second opinion" on financial data. An individual investor could adapt this by feeding a
few quarters of a company's key financial data into an LLM and asking for an analysis of
trends and potential future direction, always to be cross-referenced with their own
broader research. The key is providing structured data and asking for reasoned
explanations.
Background
Sam, an investor, is trying to use a general-purpose LLM to quickly compare the Price-
to-Earnings (P/E) ratios of two companies in the same sector, CompanyX and
https://davidwang95.github.io/Equities_Prompting_Ebook/ 30/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
CompanyY. He asks a simple prompt: "Which company has a higher P/E ratio,
CompanyX or CompanyY, and what does their P/E suggest about their valuation?"
The LLM responds: "CompanyX has a P/E ratio of 25, while CompanyY has a P/E ratio of
18. This suggests that CompanyX's stock is relatively more expensive compared to its
earnings than CompanyY's." Sam is puzzled because he doesn't recall those exact P/E
figures, and upon checking a reliable financial data source (like Yahoo Finance or his
brokerage platform), he finds that CompanyX's current P/E is actually 30, and
CompanyY's is 22.
The LLM likely hallucinated the P/E numbers or retrieved outdated information from its
training data. It tried to be helpful by providing specific figures, but in doing so, it
presented incorrect data. This is a common pitfall when asking LLMs for precise, real-
time, or frequently changing numerical data without providing it directly.
Sam learns from this experience. He realizes he needs to supply the factual data
himself to ensure accuracy. He looks up the current P/E ratios and then crafts a new,
improved prompt:
"I am comparing the valuations of CompanyX and CompanyY. According to recent market
data (as of May 2025), CompanyX has a Price-to-Earnings (P/E) ratio of approximately
30, and CompanyY has a P/E ratio of approximately 22. Task:
Improved Result
Now, grounded with the correct factual data, the LLM produces a much more reliable
and useful analysis: "Acknowledged: CompanyX P/E is ~30, CompanyY P/E is ~22. The
higher P/E ratio of 30 for CompanyX compared to 22 for CompanyY indicates that
https://davidwang95.github.io/Equities_Prompting_Ebook/ 31/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
investors are currently willing to pay more for each dollar of CompanyX's earnings than
they are for CompanyY's. This often suggests that the market has higher expectations
for CompanyX's future earnings growth, perceives it as having a lower risk profile, or
believes it possesses stronger competitive advantages or profitability prospects.
CompanyX might command this premium if, for example, it operates in a faster-growing
sub-sector, has a more innovative product pipeline, or has demonstrated more
consistent historical growth than CompanyY..."
By taking the extra step to provide the critical factual data directly in the prompt and
explicitly instructing the AI not to guess, Sam transformed a misleading output into a
valuable analytical insight. This case study highlights a crucial general rule for using
LLMs in finance: whenever precise, current data is essential, provide that data to the AI.
Don't assume it knows the latest statistics. This approach significantly improves the
reliability of the output and ensures that the AI's analytical capabilities are applied to an
accurate factual basis. It might involve a little more upfront work for the user (looking
up the numbers), but the improvement in output quality and trustworthiness is well
worth the effort.
These case studies illustrate that effective prompt engineering is often an iterative and
context-dependent process. Different scenarios – whether summarizing lengthy texts,
querying a specialized knowledge base, performing data analysis, or correcting an AI's
error – benefit from different techniques and levels of user input. The common threads
are:
Leverage internal, secure tools when dealing with proprietary or sensitive information.
Always, always verify important outputs and use your own critical judgment.
With these real-world and illustrative examples in mind, you might be eager to start
trying out similar approaches yourself. To help you hit the ground running, the next
section provides a library of example prompts – a kind of "cheat sheet" that you can
copy, paste, and adapt for a variety of common stock investing tasks.
designed for various common tasks in stock analysis and investing. You can copy, paste,
and then modify these prompts to suit the specific companies, situations, or data you're
working with. They are organized by common analytical categories.
Think of these as starting points or inspiration. Feel free to tweak the phrasing, add
more context, combine elements from different prompts, or adjust the level of detail to
match your needs.
(Use these to analyze company financials, earnings reports, and core business
fundamentals.)
"Context: Below is the 'Management's Discussion and Analysis' (MD&A) section from
[Company Name]'s Q[X] [Year] earnings report. [Paste MD&A text here]
Summarize the key revenue and profit figures and their year-over-year changes.
List the top 2-3 reasons management cited for the company's performance in this
quarter.
What was mentioned about the company's outlook or guidance for the next
quarter/full year?"
(Self-correction: Always verify numbers from a reliable financial source after using
this.)
"[Company Name] currently has a Debt-to-Equity ratio of [X.X] and a Return on Equity
(ROE) of [YY]%. Explain in simple terms:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 33/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
What these two ratios indicate about [Company Name]'s financial health and
efficiency.
How these figures might compare to typical ranges for companies in the [Specific
Industry, e.g., 'mature software'] industry.
One potential positive and one potential negative implication of these ratio
levels for an investor."
"Based on publicly available information up to your last knowledge update, how does
[Company Name] (Ticker: [Symbol]) primarily generate its revenue? Describe its main
business segments or product/service categories and, if possible, give an approximate
percentage breakdown of revenue contribution from each. What are the key growth
drivers for its largest segment(s)?"
What are its primary competitive advantages (e.g., brand, network effects,
patents, cost advantages)?
How sustainable do these advantages appear to be in the face of current and
potential competition in the [Specific Industry] sector?
Identify one key threat that could erode its moat over the next 5 years."
"Imagine we are trying to conceptually value [Company Name] (Ticker: [Symbol]) using a
Discounted Cash Flow (DCF) approach. Assume the company is projected to grow its free
cash flow at an average of [e.g., 12%] per year for the next 5 years, and then at a
terminal growth rate of [e.g., 3%] thereafter. Assume a discount rate (WACC) of [e.g.,
9%]. Without performing precise calculations, explain the key sensitivities in such a
DCF model. For instance, how would the valuation be impacted if:
https://davidwang95.github.io/Equities_Prompting_Ebook/ 34/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Next up, we'll tackle the inevitable: what to do when the AI doesn't quite give you what
you want. Our troubleshooting playbook will provide solutions for common issues,
ensuring you can navigate these powerful tools with confidence and get the information
you need.
Even with the best-laid prompts, you'll occasionally encounter responses from LLMs
that are off-target, incorrect, confusing, or simply unhelpful. Don't get discouraged! This
is a normal part of interacting with these complex systems. This troubleshooting
playbook outlines common problems and offers practical solutions to help you quickly
get back on track and coax the desired information from your AI assistant.
Symptom: The AI's output includes a financial figure, a specific fact (e.g., a date of an
event, a product detail), or even a cited "source" or "CEO quote" that you know to be
incorrect, seems suspicious, or you simply can't verify. For example, it states,
"CompanyX's Q3 revenue was $5.2 billion," when you believe (or later verify) it was $4.8
billion.
Solution(s):
Direct Correction & Re-Prompt: If you know the correct information, provide it
and ask for a revised analysis. "Actually, CompanyX's Q3 revenue was $4.8 billion,
not $5.2 billion. Please re-evaluate its revenue growth based on the correct figure."
The model will usually acknowledge the correction and adjust.
Constrain to Provided Data: This is the most robust solution for data-sensitive
queries. Explicitly instruct the model to use only the information you provide.
"Using only the financial data provided in the table below, calculate the gross profit
margin for CompanyY. [Paste table here]. Do not use any external knowledge or
make assumptions beyond this data."
Request Sources (and be skeptical): You can ask, "Can you provide the source for
that statement/figure?" Sometimes, this prompts the AI to admit uncertainty or
even retract the claim if it can't substantiate it from its reliable training data.
However, be aware that LLMs can also hallucinate plausible-sounding sources, so
always verify any critical source if possible.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 35/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Symptom: You receive a fluffy, high-level answer that lacks specific details, actionable
insights, or concrete examples. E.g., "CompanyX is a dynamic company operating in a
competitive market. It has several strengths and also faces some challenges. Its future
prospects could be positive if it executes its strategy effectively." – This tells you virtually
nothing.
Solution(s):
Symptom: The AI produces an exhaustive essay when you needed a few quick bullet
points, or it starts to ramble and deviate from your core question.
Solution(s):
Politely Interrupt and Refocus/Summarize: In a chat interface, you can often just
start typing your next prompt. You can then say, "Okay, thank you. Can you
summarize the main points of your previous response in just three bullet points?"
https://davidwang95.github.io/Equities_Prompting_Ebook/ 36/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
or "Let's pause that line of thought. Can we focus specifically on [the original core
topic]?"
Specify Length and Format Upfront: The best prevention is to clearly state your
desired output length and format in your initial prompt. Use directives like:
"Provide a concise summary in no more than 100 words." or "List the key factors in
5 bullet points." or "Keep the explanation to one paragraph."
Define the Audience and Purpose: Framing the request for a specific audience
with limited time can also imply brevity. "Explain this concept as if you're briefing a
busy CEO who has only two minutes before a meeting."
Symptom: The AI responds with a message like, "I'm sorry, but I cannot fulfill that
request," or "As an AI, I cannot provide financial advice," possibly because it
misinterpreted your analytical query as a request for prohibited content (like
investment advice, predictions of future stock prices, or illegal activities).
Solution(s):
Reframe the Request for Analysis, Not Advice: This is the most common fix. If
you asked, "Should I invest in Stock X?" it will likely refuse. Change it to: "What are
the potential pros and cons of investing in Stock X from a fundamental analysis
perspective?" or "Analyze the investment case for Stock X, considering its growth
prospects, profitability, and valuation relative to its peers." The key is to remove any
phrasing that implies a personal recommendation or a guaranteed outcome.
Clarify Your Intent: You can politely clarify, "I understand you cannot give financial
advice. I am only asking for an objective analysis of [specific factors] based on
publicly available information, not a recommendation for action. Could you provide
that analytical perspective?"
Avoid Trigger Words: Be mindful of words that might trigger safety protocols, such
as "guarantee profit," "predict the exact price," "insider information," or terms
related to gambling or illicit activities.
Check for Genuine Policy Violations: In rare cases, your request might genuinely
toe the line of what the AI is permitted to discuss. If rephrasing doesn't work,
reconsider if your query could be interpreted as seeking harmful, unethical, or
legally problematic information. For 99% of legitimate equity research queries, a
simple rephrase to focus on objective analysis will resolve the issue.
Symptom: The response uses overly technical financial jargon that you don't
understand, or it employs terms in a way that seems ambiguous or poorly defined in
https://davidwang95.github.io/Equities_Prompting_Ebook/ 37/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
context.
Solution(s):
Symptom: The model provides a strong argument for one side of an issue (e.g., only
the bullish case for a stock) but neglects the counterarguments, risks, or alternative
viewpoints, even when a balanced perspective is needed.
Solution(s):
Explicitly Request the Other Side: If you received a one-sided answer, simply
prompt for the missing perspective. "Thank you for outlining the bullish case. Now,
could you please detail the primary bearish arguments or key risks associated with
this stock?"
Ask for Balanced Views Upfront: To get a balanced view from the start, phrase
your initial prompt accordingly: "Provide a balanced analysis of [Company X],
discussing both its potential strengths and opportunities, as well as its weaknesses
and the risks it faces." or "Present both the bullish and bearish viewpoints currently
circulating in the market regarding [Company Y]'s prospects."
The AI doesn't typically have its own "agenda"; it often focuses on the aspect most
directly implied by your initial framing. By explicitly asking for multiple perspectives,
you'll usually get a more well-rounded and useful answer.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 38/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Symptom: You requested the information in a specific format (e.g., a table, a bulleted
list, a specific number of paragraphs), but the AI delivered it in a different, less useful
format (e.g., a long wall of text instead of a requested table).
Solution(s):
Reiterate Format Instructions Politely: You can often get the AI to reformat its
previous response. "That's good information. Could you please present that same
analysis in a table with columns for 'Factor,' 'Potential Impact,' and 'Confidence
Level'?" (Adjust columns as needed).
Be Very Specific with Formatting in the Initial Prompt: The best prevention is to
be crystal clear about your desired format from the outset. We've seen many
examples of this in the prompt library (e.g., "Provide a numbered list of 5 key
points," "Answer in the form of an executive memo...").
Check for Complexity: If the AI consistently fails to adhere to a complex
formatting request, the information itself might be too intricate or lengthy to fit
neatly into that structure. Consider if a simpler format or breaking the information
into multiple formatted parts might be more feasible.
Nudge Gently: "Great insights. Now, could you rephrase that as three concise
bullet points?" The AI should generally oblige if the request is reasonable.
Symptom: The AI is generating a very long response and seems to be typing very slowly
(in some interfaces), or the response abruptly stops mid-sentence, possibly due to an
output length limit.
Solution(s):
"Continue" Command: If a response is cut off, you can usually just type "Continue"
or "Please continue" and the model will attempt to pick up where it left off.
Request Summaries or Break Up the Task: To avoid cut-offs with very long
expected outputs, proactively ask for summaries or break the complex query into
smaller parts (prompt chaining). Instead of asking for "everything about Topic X,"
ask for "the three main aspects of Topic X," then delve into each.
Simplify the Question: If the AI seems to be struggling or taking an excessively
long time to generate a response to a very complex, open-ended prompt, try
simplifying the question or narrowing its scope.
Be Aware of Token Limits: Remember that LLMs have input and output token
limits. While these are increasing with newer models, extremely long prompts or
requests for extremely long outputs can still hit these boundaries.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 39/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Symptom: The model's response adopts a tone that isn't appropriate for your needs. It
might sound like a marketing brochure ("This revolutionary company is poised for
incredible success!"), excessively hedge every statement ("It is possible that perhaps,
under certain circumstances, this might potentially be the case..."), or be too
formal/informal for your intended use.
Solution(s):
Explicitly Instruct the Desired Tone: You can directly guide the tone.
For an overly promotional tone: "Please provide a more critical and objective
analysis. Identify potential weaknesses or downsides as well. I need a realistic
assessment, not a sales pitch."
For excessive uncertainty: While some hedging is good (as the AI cannot predict the
future with certainty), you can ask for a bit more conviction where appropriate:
"Based on the factors discussed, which scenario do you believe is more probable,
and what is your primary reasoning? Please be as clear as possible while
acknowledging inherent uncertainties."
For general tone: "Please respond in a neutral, analytical, and professional tone.
Avoid marketing language or overly casual phrasing." Or, "Explain this in a friendly
and approachable tone, suitable for someone new to the topic."
Solution(s):
Simplify and Clarify Your Prompt: Your original prompt might have been too
complex, ambiguous, or contained phrasing the model struggled with. Try
rephrasing it using shorter sentences, more direct language, and ensuring all terms
(especially proper nouns like company names) are spelled correctly and are
unambiguous. If you asked multiple questions in one prompt, try asking them one
at a time.
Add Context: Sometimes, providing a little more background or context can help
the AI grasp your intent.
Check for Ambiguity: Did you use a term that could have multiple meanings? For
example, if you asked about "Apple," did you mean the tech company or the fruit?
(Usually, context makes this clear, but it's a good check).
https://davidwang95.github.io/Equities_Prompting_Ebook/ 40/41
12/08/2025, 20:57 Prompt Engineering for Equity Investors
Politely Restate and Refocus: You can calmly guide the AI back. "I apologize if my
previous prompt was unclear. That's not quite what I was looking for. I am
specifically trying to understand [restate your core objective clearly and concisely].
Could you please focus your response on that aspect?" The model will usually try
again, often with better results once clarified.
Remember, you are the director, and the AI is a very capable but sometimes literal-
minded actor. If the scene isn't playing out as you envisioned, adjust your direction (the
prompt) and try another take. LLMs do not get annoyed or frustrated by requests for
clarification or refinement – they are designed to be iterative tools. The troubleshooting
techniques above are largely about applying the core principles we've already
discussed: clarity, specificity, context, providing examples, and iterative refinement.
As you practice, you'll develop an intuition for diagnosing these common issues and will
become much faster at tweaking your prompts to get the AI back on track. Many users
naturally start giving the AI feedback like, "That's not quite right, try focusing on X
instead" – when you find yourself doing this, congratulations, you're effectively prompt
engineering on the fly!
© 2025 Dave Wang. All rights reserved. Not financial advice, for educational and
entertainment purposes only.
https://davidwang95.github.io/Equities_Prompting_Ebook/ 41/41