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
274 stars 192 forks source link

Document upload function in the GenAI example for DocSum does not work #671

Closed mandalrajiv closed 1 week ago

mandalrajiv commented 2 months ago

I am running the GenAI example for DocSum on Xeon - https://github.com/opea-project/GenAIExamples/tree/main/DocSum.

I uploaded a pdf document called page3.pdf. After than, when I click on the Generate Response button, it says "please upload content first". See screenshot attached. DocSum_Upload_Document

Then, I see docker logs for the container docsum-xeon-backend-server. It appears the path to doc_upload is missing. It is showing a 404 response in the docker logs.

========== Docker Logs ============= [2024-08-27 14:34:42,548] [ INFO] - Base service - CORS is enabled. [2024-08-27 14:34:42,549] [ INFO] - Base service - Setting up HTTP server [2024-08-27 14:34:42,549] [ 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-08-27 14:34:42,557] [ INFO] - Base service - HTTP server setup successful INFO: 98.184.225.93:56176 - "POST /v1/docsum HTTP/1.1" 200 OK INFO: 98.184.225.93:56291 - "POST /v1/docsum/doc_upload HTTP/1.1" 404 Not Found INFO: 98.184.225.93:56291 - "POST /v1/docsum HTTP/1.1" 200 OK INFO: 98.184.225.93:56382 - "POST /v1/docsum/doc_upload HTTP/1.1" 404 Not Found

huiyan2021 commented 2 months ago

Hi @mandalrajiv , thanks for reporting this issue. UI called /v1/docsum/doc_upload while it is not supported by the backend at the time being. Dev team is working on that, may take time. Will let you know when it is fixed.

xiguiw commented 1 week ago

The feature is enabled in PR https://github.com/opea-project/GenAIExamples/pull/1027 https://github.com/opea-project/GenAIComps/pull/823