{ "cells": [ { "metadata": {}, "cell_type": "markdown", "source": [ "# Decomposed Prompting: Enhancing LLM Problem-Solving with Tool-Based Subproblems\n", "\n", "This recipe demonstrates how to implement the Decomposed Prompting (DECOMP) technique using Large Language Models (LLMs) with Mirascope. DECOMP is a prompt engineering method that enhances an LLM's problem-solving capabilities by breaking down complex problems into subproblems and utilizing tools to solve each step.\n", "\n", "
Mirascope Concepts Used
\n", "Background
\n", "\n", "Decomposed Prompting (DECOMP) is an extension of least-to-most whereby tools are used to execute each subproblem in the problem solving process. A pre-trained call (in our case, a one shot prompt) demonstrates how to break a problem down into subproblems within the context of its given tool calls, and the output of each tool call is added to the chat's history until the problem is solved. Just like least-to-most, DECOMP shows improvements on mathematical reasoning and symbolic manipulation tasks, with better results than least-to-most.\n", "
\n", "Additional Real-World Applications
\n", "