"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

June 24, 2023

My Langchain Notes - Day 1

  • LLM are good at conditional generation
  • P(next token | prompt)
  • LLMs are not storing state
  • Token size is key for better answers
  • Langchain - Build apps with LLM

The different types of prompts - zero shot with limited prompts, reasoning preserve states, simplified step by step prompts

Prompt Template

A prompt template can contain:

  • instructions to the language model,
  • a set of few shot examples to help the language model generate a better response,
  • a question to the language model.

FewShotPromptTemplate

A few shot prompt template can be constructed from either a set of examples, or from an Example Selector object.

Few shot examples for chat models






Ref - Link


Keep Exploring!!!


No comments: