passdrill
AI & LLM Engineering · Building with LLM APIs · Card 005/012 easy

How does a typical LLM provider's embeddings endpoint differ from its text-completion/chat-generation endpoint?

  1. The embeddings endpoint is simply a faster version of the generation endpoint that returns shorter natural-language answers to save on output tokens
  2. The embeddings endpoint takes text as input and returns a fixed-length numeric vector representing that text's meaning, rather than generating new natural-language text
  3. The embeddings endpoint only works on images, while the generation endpoint only works on text, so the two cannot be used on the same type of content
  4. The embeddings endpoint requires fine-tuning a custom model first, while the generation endpoint works with any base model out of the box
Next card → Shuffle