Llms

Large language models basics

ffsshhttiikk e9b3516 996 B Updated

File contents

What I do

  • Apply LLMs to solve problems
  • Design LLM applications
  • Create effective prompts
  • Evaluate LLM outputs
  • Optimize LLM usage

When to use me

Use me when:

  • Building AI-powered products
  • Automating text tasks
  • Need natural language understanding

Key Concepts

LLM Capabilities

  • Text generation: Complete, continue, summarize
  • Question answering: Extract, generate
  • Translation: Multilingual
  • Classification: Sentiment, intent
  • Code: Generation, completion
  • Reasoning: Chain-of-thought

Model Selection

  • GPT-4: General purpose, strong reasoning
  • Claude: Helpful, Claude constitutional AI
  • LLaMA: Open source, efficient
  • Mistral: Fast, open source
  • Code models: CodeGen, CodeLlama

Cost Optimization

  • Use smaller models when possible
  • Implement caching
  • Batch requests
  • Optimize prompt length
  • Use streaming for long outputs

ffsshhttiikk/opencode-agents-skills/tree/main/llms commit e9b351678c

Frequently asked questions

npx skillmds@latest add ffsshhttiikk/llms