Saltar al contenido principal

Summarize it

Pasosummarizeaiobsoleto

Replaced by an AI agent step. Give the agent the instruction "Write a short summary of the document".

De un vistazo​

PropiedadValor
Nombre del pasosummarize
RecursoClusterStep (lumen.ai/v1alpha1)
Grupo de la paleta, categoríaai, ai
Créditos0.5 créditos cada vez que tiene éxito
Efectos externosno
La instalación debe aportarnada

Entradas​

PropiedadValor
Necesitatext
Producefields
Trabaja sobreitem un documento cada vez

Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.

Salidas​

Sin salidas con nombre. Los nodos posteriores siguen viendo todo lo producido antes en el camino, y este paso pasa los documentos sin cambios.

Ajustes​

Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.

AjusteTipoValor por defectoDescripción
filesobject-
files.modestring"attach"Mode is attach (the model reads each file whole when it can, its text otherwise), text (only the text read out of each file) or none (no file at all). Unset is attach. ifNoText attaches them only when the document has no text, and sends none otherwise.one of attach, text, none, ifNoText
files.maxFilesinteger10MaxFiles is the most files one document may bring; the rest are skipped. Unset is 10.minimum 1; maximum 100
files.maxPagesinteger100MaxPages is the most PDF pages across all files together; a PDF that crosses it is read up to the pages left. Unset is 100.minimum 1; maximum 1000
files.maxBytesinteger20971520MaxBytes is the most bytes, all files together. Unset is 20 MB.minimum 1; maximum 104857600

El JSON Schema completo de estos ajustes: summarize.schema.json.

Úsalo en un flujo​

Un nodo que ejecuta summarize va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: summarize-example
namespace: tenant-acme
spec:
displayName: "Summarize it"
triggers:
- id: start
ref: {name: manual-run}
next: [summarize]
nodes:
- id: summarize
stepRef: {name: summarize}