opea-project / GenAIExamples

Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
https://opea.dev
Apache License 2.0
286 stars 195 forks source link

[Bug] file update load feature is not enabled in docsum #1010

Open lianhao opened 1 month ago

lianhao commented 1 month ago

Priority

Undecided

OS type

Ubuntu

Hardware type

Xeon-SPR

Installation method

Deploy method

Running nodes

Single Node

What's the version?

commit id: a3f9811f7ef3d561357674218c64b4cb9d42803a

Description

The file upload feature can be found in the docsum ui, but it's not enabled in the docsum mega gateway service.

docsum_bug

Reproduce steps

upload a file and generate docsum in the docsum ui

Raw log

/usr/local/lib/python3.11/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_name_or_path" in Audio2TextDoc has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
[2024-10-23 01:33:05,368] [    INFO] - Base service - CORS is enabled.
[2024-10-23 01:33:05,369] [    INFO] - Base service - Setting up HTTP server
[2024-10-23 01:33:05,370] [    INFO] - Base service - Uvicorn server setup on port 8888
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
[2024-10-23 01:33:05,381] [    INFO] - Base service - HTTP server setup successful
INFO:     192.168.127.233:43852 - "POST /v1/docsum/doc_upload HTTP/1.0" 404 Not Found
lvliang-intel commented 1 month ago

PR https://github.com/opea-project/GenAIExamples/pull/1027 https://github.com/opea-project/GenAIComps/pull/823 fix this issue. Please retest using latest code.

yongfengdu commented 1 month ago

@lvliang-intel Same issue seen for faqgen: [2024-10-31 02:33:59,168] [ INFO] - Base service - Uvicorn server setup on port 8888 INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit) [2024-10-31 02:33:59,179] [ INFO] - Base service - HTTP server setup successful INFO: 192.168.127.216:51168 - "POST /v1/faqgen HTTP/1.0" 200 OK INFO: 192.168.127.216:58774 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:34190 - "POST /v1/faqgen HTTP/1.0" 200 OK INFO: 192.168.127.216:38604 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:40748 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:58208 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found

lianhao commented 4 weeks ago

@lvliang-intel Same issue seen for faqgen: [2024-10-31 02:33:59,168] [ INFO] - Base service - Uvicorn server setup on port 8888 INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit) [2024-10-31 02:33:59,179] [ INFO] - Base service - HTTP server setup successful INFO: 192.168.127.216:51168 - "POST /v1/faqgen HTTP/1.0" 200 OK INFO: 192.168.127.216:58774 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:34190 - "POST /v1/faqgen HTTP/1.0" 200 OK INFO: 192.168.127.216:38604 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:40748 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found INFO: 192.168.127.216:58208 - "POST /v1/faqgen/doc_upload HTTP/1.0" 404 Not Found

Created a separate issue #1066 to track faqgen thing

lianhao commented 4 weeks ago

I can't verify this because of another UI blocking issue #1065, we need someone to fix that first

lvliang-intel commented 1 week ago

@lianhao, please try again as the UI issue has already been fixed.