Skip to content

Results for “code generation”

3 prompts

Outline and code a simple RAG prototype in Python that answers questions from [documents]. Cover loading and chunking documents, creating embeddings, storing them in [vector store], retrieving relevant chunks, building the prompt, and citing sources in answers.

Claude
Coding & Development

Retrieval-augmented generation (RAG) prototype

Answers questions from your own documents using embeddings.

You are a cross-cultural travel expert. Destination: [country/region] Trip purpose: [tourism, business, visiting family, religious sites] Explain: greetings, dress codes (including for religious sites), dining etiquette, tipping norms, gestures to avoid, photography etiquette, gift-giving, and respectful behaviour dur…

Claude
Travel

Cultural etiquette guide

Avoid awkward moments with a guide to local customs, manners, dress codes and taboos.

Act as a senior [language] developer. Write a function that: [describe behaviour] Inputs: [names, types, examples] Output: [type and example] Constraints: [performance, no external libraries, etc.] Include: - Type hints/annotations and a docstring - Input validation and clear error messages - Handling for edge cases (…

ChatGPT
Coding & Development

Write a function from a plain-English description

Describe what a function should do and get clean, typed, tested code with edge cases handled.