You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a chatbot and uploading This PDF to use as a context for the chatbot, the upload fails with the following screen pop-up:
By looking at the console logs, it seems like the request size is too large:
However, I wouldn't consider 32 pages or 1.8 Mb (the PDF file used for tests) as large 🤔 . Some LLMs have very large context window size that exceeds 100s of pages.
I am looking forward to a solution for this issue and thanking you in advance! 😊
The text was updated successfully, but these errors were encountered:
To resolve this issue, you need to update the Nginx configuration for the frontend. You should modify the frontend/nginx.conf file by adding the client_max_body_size 50M; directive within the location ~ ^/api(/?)(.*) block.
Open the frontend/nginx.conf file in your preferred text editor.
Locate the location ~ ^/api(/?)(.*) block.
Add the client_max_body_size 50M; directive within this block.
The updated configuration should look like this:
upstream web {
server web:3000;
}
server {
listen 80;
location ~ ^/api(/?)(.*) {
proxy_pass http://web/$2$is_args$args;
client_max_body_size 50M;
}
location / {
root /usr/share/nginx/html/;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html;
}
}
Dear WebWhiz Team,
When trying to create a chatbot and uploading
This PDF to use as a context for the chatbot, the upload fails with the following screen pop-up:
By looking at the console logs, it seems like the request size is too large:
However, I wouldn't consider 32 pages or 1.8 Mb (the PDF file used for tests) as large 🤔 . Some LLMs have very large context window size that exceeds 100s of pages.
I am looking forward to a solution for this issue and thanking you in advance! 😊
The text was updated successfully, but these errors were encountered: