mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Added instructions on embedding agent or assistant into a third-party webpage (#4369)
### What problem does this PR solve? ### Type of change - [x] Documentation Update
This commit is contained in:
@ -41,7 +41,7 @@ You can set global variables within the **Begin** component, which can be either
|
||||
- **line**: Accepts a single line of text without line breaks.
|
||||
- **paragraph**: Accepts multiple lines of text, including line breaks.
|
||||
- **options**: Requires the user to select a value for this variable from a dropdown menu. And you are required to set *at least* one option for the dropdown menu.
|
||||
- **file**: Requires the user to upload one or multiple files from their device.
|
||||
- **file**: Requires the user to upload one or multiple files.
|
||||
- **integer**: Accepts an integer as input.
|
||||
- **boolean**: Requires the user to toggle between on and off.
|
||||
- **Optional**: A toggle indicating whether the variable is optional.
|
||||
@ -62,9 +62,13 @@ As mentioned earlier, the **Begin** component is indispensable for an agent. Sti
|
||||
|
||||
No. Files uploaded to an agent as input are not stored in a knowledge base and will not be chunked using RAGFlow's built-in chunk methods. However, RAGFlow's built-in OSR, DLR, and TSR models will still be applied to process the document.
|
||||
|
||||
### File size limit for uploaded file
|
||||
### How to upload a webpage or file from a URL?
|
||||
|
||||
If you set the type of a variable as **file**, your users will be able to upload a file either from their local device or from an accessible URL. For example:
|
||||
|
||||

|
||||
|
||||
### File size limit for an uploaded file
|
||||
|
||||
The maximum file size for each uploaded file is determined by the variable `MAX_CONTENT_LENGTH` in `/docker/.env`. It defaults to 128 MB. If you change the default file size, ensure you also update the value of `client_max_body_size` in `/docker/nginx/nginx.conf` accordingly.
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1726,7 +1726,7 @@ Creates a session with a chat assistant.
|
||||
- `'Authorization: Bearer <YOUR_API_KEY>'`
|
||||
- Body:
|
||||
- `"name"`: `string`
|
||||
- `"user_id"`: `string`(optional)
|
||||
- `"user_id"`: `string` (optional)
|
||||
|
||||
##### Request example
|
||||
|
||||
@ -1801,7 +1801,7 @@ Updates a session of a specified chat assistant.
|
||||
- `'Authorization: Bearer <YOUR_API_KEY>'`
|
||||
- Body:
|
||||
- `"name`: `string`
|
||||
- `"user_id`: `string`(optional)
|
||||
- `"user_id`: `string` (optional)
|
||||
|
||||
##### Request example
|
||||
|
||||
@ -2013,8 +2013,8 @@ Asks a specified chat assistant a question to start an AI-powered conversation.
|
||||
- Body:
|
||||
- `"question"`: `string`
|
||||
- `"stream"`: `boolean`
|
||||
- `"session_id"`: `string`(optional)
|
||||
- `"user_id`: `string`(optional)
|
||||
- `"session_id"`: `string` (optional)
|
||||
- `"user_id`: `string` (optional)
|
||||
|
||||
##### Request example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user