You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

The Code Extractor enhancer is designed to extract code snippets from the response of a Large Language Model (LLM). Often, if a prompt is unclear or incomplete, the LLM may provide explanations alongside the code. This tool helps isolate and extract only the code segments from such responses for easier use.

Get started

How to use it

To use the Code Extractor Element:

Adding the Code Extractor enhancer

  1. Locate the Code Extractor element under the Enhancer Plugin section.
  2. Drag and drop the File element into the Drop an enhancer here section.

Configure form properties

To properly integrate and configure the Code Extractor, set the following fields:

  • Purpose: Provide a short, clear description of what the OpenAI element is being used for. This helps the AI agent understand the context and tailor its response appropriately, improving code extraction accuracy.
  • No labels