Create a Prompt Logger

Created on 14 June 2024, about 1 year ago

Problem/Motivation

Currently many different modules are making AI calls and are using all possible types of clients, the idea is that anything that goes as "normal" calls will use the AI abstraction layer.

Being able to choose to log certain calls or even all would make it easier to understand the actual prompt modules like AI Interpolator or Augmentor is using in the background with all contexts coupled from Tokens or similar. Together with the explorer modules it should even be possible to move these over with a push of a link into one of the Explorer modules. That way you could iterate over these prompt with the configuration exactly as they were.

Proposed resolution

Create a module that uses the PostGenerateResponseEvent from the AI module to log requests.
Make it possible to log responses as well.
Make it possible to log configurations.
Make it possible to log type of operation (Chat, TextToImage etc.)
Make it possible to log provider.
Make it possible to log model.
Make it possible to log based on operation type.
Make it possible to log based on Request tags.
Make it possible if the AI API Explorer module is enabled and dblog is turned on, to link directly to the appropriate explorer with the values set as in the original prompt/generation.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024