AI Flow feature
Part of issue #1484
Description
Create a chain of LLMs (and other blocks) so that user can perform more complex tasks, involving several steps. The chain must be defined from the app-definition and it should be customizable by the user (input, output, instructions, training data).
Example app-definition
blocks:
- type: form
version: 0.28.7
parameters:
fields:
- type: string
name: message
label: { translate: message }
requirements:
- required: true
actions:
onSubmit:
type: request
method: post
proxy: true
url: http://127.0.0.1:5000/query
body:
object.from:
query_text: { prop: message }
onSuccess:
type: event
event: formResponse
- type: ollama
version: 0.28.7
events:
listen:
formResponse: formResponse
actions:
onSubmit:
type: request
method: post
proxy: true
url: http://127.0.0.1:5000/another_model
body:
object.from:
query_text: { prop: formResponse }
onSuccess:
type: event
event: response
Edited by Alex Svetoslavov