Nalanda
Prompts
Log InGet invite
HomeAll PromptsTagsUsersBadges
Categories
WritingCodingMarketingBusinessEducationImage GenerationVideoDataOther
AboutPrivacyTermsSecurityContact
Nalanda Prompts · Where prompts are perfected · Inspired by the ancient university of Nalanda (~427 CE)

Data Extraction

+ Share a Prompt

Trending Tags

template ×31system-prompt ×27anthropic ×22xml-structured ×20agent ×17reasoning ×17chain-of-thought ×15guardrails ×15tool-use ×13role-play ×13

Top Prompters

S
Sagar Verma
1krep
Prompt Curator
Prompt Curator
120rep
Q
Quantum-loop
1rep
7 shown
0
votes
0
resp
4
views
Tutorial Ch.7: few-shot people-extractor with <individuals> output and bracketed roles

Chapter 7 Using Examples / Few Shot . Demonstrates how two worked examples of a paragraph structured individuals list train Claude to produce the same shape on a new paragraph, no

few-shottemplatedata-extractionxml-structuredanthropicClaude Sonnet 4.6Claude Opus 4.7Claude 3.5 Sonnet
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
4
views
Anthropic Cookbook: content-moderation classifier with chain-of-thought reasoning

From the Anthropic cookbook's building moderation filter.ipynb . A production style moderation prompt that uses explicit ALLOW/BLOCK guidelines, a <thinking scratchpad, and an <out

chain-of-thoughtxml-structuredguardrailsanthropicanalysisClaude Haiku 4.5Claude Sonnet 4.6Claude 3 Haiku
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
6
views
Anthropic Cookbook: few-shot content moderation classifier (ALLOW / BLOCK)

The few shot variant of Anthropic's moderation cookbook. Demonstrates that, for short labels, well chosen positive and negative examples often beat chain of thought. Source: https:

few-shotdata-extractionxml-structuredguardrailsanthropicClaude Haiku 4.5Claude Sonnet 4.6
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
3
views
OpenAI Cookbook: retrieval-augmented QA prompt with a "give the model an out" clause

RAG system prompt from the embeddings QA recipe. The closing sentence is what stops hallucinations on questions outside the retrieved articles. Paired role message: You answer ques

system-promptopenaiguardrailsanalysisGPT-4oGPT-4 Turbo
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
5
views
OpenAI Cookbook: structured outputs system prompt for article summarization to a typed schema

OpenAI's recommended pattern for summarizing an article into a fixed schema. Each field is described inline so the model knows exactly what the JSON shape means. Source: https://co

summarizationdata-extractionsystem-promptopenaijson-outputGPT-4oGPT-4.1
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
5
views
Tutorial Ch.8: hallucination-resistant QA with <scratchpad>, <answer>, and the 'demur' option

Chapter 8 Avoiding Hallucinations . A grounded QA template: extract the most relevant quote into <scratchpad , judge whether it answers the question, and only then write a brief nu

chain-of-thoughtdata-extractionxml-structuredguardrailsanthropicClaude Sonnet 4.6Claude Opus 4.7Claude 3.5 Sonnet
S
Sagar Verma1krepasked 6 days ago
0
votes
0
resp
4
views
OpenAI Cookbook: NER extraction prompt with closed entity-type vocabulary

Named entity recognition prompt that locks the model to a single, closed label set. Pinning the categories is what makes the output safe to feed into a downstream parser. User turn

data-extractionsystem-promptopenaianalysisGPT-4oGPT-4 Turbo
S
Sagar Verma1krepasked 6 days ago