Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现三个问题:1、上传文件以后,后台报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5064e6dd00>: Failed to establish a new connection: [Errno 110] Connection timed out'))': /v1/engines/text-embedding-ada-002/embeddings #30

Open
jdukwjdo opened this issue May 7, 2023 · 3 comments

Comments

@jdukwjdo
Copy link

jdukwjdo commented May 7, 2023

No description provided.

@jdukwjdo jdukwjdo changed the title 发现三个问题: 发现三个问题:1、上传文件以后,后台报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5064e6dd00>: Failed to establish a new connection: [Errno 110] Connection timed out'))': /v1/engines/text-embedding-ada-002/embeddings May 7, 2023
@jdukwjdo
Copy link
Author

jdukwjdo commented May 7, 2023

2、右下角一直显示索引创建中,这样我是无法对话的,server后台也完全没有日志产生,这样完全不知道索引构建的真实进度,我在其他issue里只看到您回复其他人说UI处理不好,但这个真正的问题是无法了解真实的索引进度,和无法对话呢
3、我在其他issue里看到有人提到过,上传文件的限制是2M,我目前没有找到配置的地方,可否指明下在哪里配置呢?

@daodao97
Copy link
Owner

daodao97 commented May 8, 2023

  1. Proxy一般都是需要科学上网
  2. 索引进度问题 https://github.com/daodao97/chatdoc/blob/master/server/main.py#L88 可以在此处加写日志, 方便终端查看
  3. 上传限制问题 https://github.com/daodao97/chatdoc/blob/master/client/src/views/Upload.vue#L18 可以在前端代码中修改

@jdukwjdo
Copy link
Author

jdukwjdo commented May 8, 2023

  1. Proxy一般都是需要科学上网
  2. 索引进度问题 https://github.com/daodao97/chatdoc/blob/master/server/main.py#L88 可以在此处加写日志, 方便终端查看
  3. 上传限制问题 https://github.com/daodao97/chatdoc/blob/master/client/src/views/Upload.vue#L18 可以在前端代码中修改

感谢回复,
1、已经翻墙了,我是在windows上开了代理软件,打开局域网可访问,然后再WSL中启了ubuntu22的虚拟机,设置了代理,通过wget可访问api.openai.com,但运行时就会报这个错(刚更新了openssl解决了问题,确认是openssl在ubuntu22.04上的问题)
2、写日志在这行怎么加?是一般的console.log,还是作为方法参数传进去?不好意思我对vue有点外行,可以写个示例代码吗
3、解决

另还有个问题,一般索引创建完,是否就可以聊天了,一般索引创建完需要多久,我的电脑是普通的家用游戏本电脑,1070显卡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants