Agentic topics

Langchain on agentic planning

  1. function calling
  2. agents
  3. planning
  4. Take a number of actions in sequence
  5. Agent takes more and more actions, the results of those actions are fed back to the LLM
  1. Planning and reasoning is still not at the level it?s needed to be for real-world tasks.
  1. prompt being passed into the LLM simply does not contain enough information for the LLM to make a reasonable decision
  2. Lack of visibility to see intermediate data easily to evaluate what is not working
  3. Test data sets that can be evaluated to understand the calculated flows because the underlying mechanism is brittle
  4. randomness and unpredictability.

LangGraph a link

  1. It is a term that is used to "describe" the "body" or "brain" of your "genai" application.
  2. Particularly used in agentic systems as there is "reasoning" by LLM using a number of strategies including Prompt directing the LLM decisions to call which step next.
  3. It is a way stemming from the desire to classify what kind of logic your have in your genai app and give it a name.
  1. Straight forward question answer
  2. basic RAG (no agentic)
  3. Manual flows to control multiple calls to LLMs
  4. Agentic RAG where "the routing logic is in the prompt" with multiple calls to the LLM and the APIs
  5. Long term planning with goals
  1. Plan and Solve
  2. Reflexion architecture
  3. Or in combination with Domain specific "controlled" flows/architectures

Plan and Solve Prompting

Agentic Reflexion

ReACT:Search On Web

SayCan:Search On Web

ToolFormer:Search On Web

HuggingGPT:Search On Web

generative Agents:Search On Web

WebGPT:Search On Web

  1. And rather than tell the LLM to do in the prompt
  2. - where it may ignore it, not understand it, not have all the details -
  3. they told the system to do it
  4. by constructing a domain specific cognitive architecture.

Understand the ReACT approach

  1. Takes LangChain as an example
  2. Explains: Reason + Act
  3. Introduces "Thought, Action, Observation"
  4. A good article