Skip to content

Commit

Permalink
add non agentic pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarrata committed Nov 8, 2024
1 parent 7e0d1b1 commit 9c580bb
Show file tree
Hide file tree
Showing 7 changed files with 2,250 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion content/modules/ROOT/pages/04-01-non-agentic-patterns.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@
include::_attributes.adoc[]
:slide:

TBD
In this section, we explore common patterns in LLM applications that enhance the model's capabilities without relying on agent-based control flows. These non-agentic patterns focus on leveraging the strengths of LLMs in structured and predictable ways.

== 4.1 Chain of Thought
- Fosters logical reasoning by prompting the LLM to break down tasks step-by-step.
- Improves coherence and context retention in multi-step problem-solving scenarios.
- Enhances the model's ability to generate structured, sequential responses.

== 4.2 Tools Usage from LLM Perspective
- Involves the LLM invoking external tools (e.g., APIs, search engines) to gather information.
- Supports tasks requiring real-time data retrieval, complex computations, or system interactions.
- Extends the LLM's functionality beyond its static training data.

== 4.3 ReAct Prompting
- Combines reasoning and action steps, guiding the LLM to think and act iteratively.
- Uses a Thought → Action → Observation loop for dynamic task execution.
- Enhances decision-making by integrating external information into the reasoning process.

== 4.4 Retrieval Augmented Generation (RAG)
- Merges information retrieval with response generation, grounding the LLM’s answers in real-time data.
- Retrieves relevant documents or knowledge snippets to enhance response accuracy.
- Ideal for applications needing up-to-date or domain-specific information, reducing hallucination risks.
Loading

0 comments on commit 9c580bb

Please sign in to comment.