API
Last updated
Last updated
Consulta la para ver la lista completa de APIs públicas
Flowise proporciona 2 librerías:
Sobrescribe la configuración de entrada existente del chatflow con la propiedad overrideConfig.
Por razones de seguridad, la sobrescritura de configuración está deshabilitada por defecto. El usuario debe habilitarla yendo a Chatflow Configuration -> pestaña Security. Luego seleccionar la propiedad que puede ser sobrescrita.
Puedes anteponer mensajes del historial para dar contexto al LLM. Por ejemplo, si quieres que el LLM recuerde el nombre del usuario:
Puedes pasar un sessionId
para persistir el estado de la conversación, de modo que cada llamada API posterior tendrá contexto sobre la conversación anterior. De lo contrario, se generará una nueva sesión cada vez.
Cuando Allow Image Upload está habilitado, las imágenes pueden ser cargadas desde la interfaz de chat.
Cuando Speech to Text está habilitado, los usuarios pueden hablar directamente en el micrófono y la voz se transcribirá en texto.
Algunos document loaders en Flowise permiten al usuario cargar archivos:
Those video tutorials cover the main use cases for implementing the Flowise API.
: pip install flowise
: npm install flowise-sdk
Pasa variables en la API para ser utilizadas por los nodos en el flujo. Ver más:
Si el flujo contiene con la funcionalidad de carga de archivo, la API se ve ligeramente diferente. En lugar de pasar el cuerpo como JSON, form data se utiliza. Esto te permite enviar archivos a la API. If the flow contains with Upload File functionality, the API looks slightly different. Instead of passing body as JSON, form data is being used. This allows you to send files to the API.
To avoid having separate loaders for different file types, we recommend to use
For other nodes without Upload File functionality, the API body is in JSON format similar to .
Refer to section for more information about how to use the API.
Create a new prediction
Chatflow ID
The question being asked
The configuration to override the default prediction settings (optional)
Upsert vector embeddings of documents in a chatflow
Chatflow ID
In cases when you have multiple vector store nodes, you can specify the node ID to store the vectors
node_1
The configuration to override the default vector upsert settings (optional)
Upsert new document to document store
Document store ID
Document ID within the store. If provided, existing configuration from the document will be used for the new document
Re-process and upsert all existing documents in document store
Document store ID
No content