Closed ImanLakjiri closed 11 months ago
hi @ImanLakjiri i will look into this soon. thanks for bringing it up!
(fyi, if you have already solved it on your end before I look into it, please feel free to open a PR! you can follow the guidelines here: https://github.com/ajndkr/lanarky/blob/main/CONTRIBUTING.md)
.
Hello @ajndkr, I have fixed the bug. I will submit my PR. Thank you
closing this issue as gradio integration has been removed from v0.8 release.
reason: the implementation needs to be agnostic of the microservice logic. I will rethink this and possibly implement a new playground in a future release. no definite plans yet.
Issue Description
Script : lanarky/examples/app/conversational_retrieval.py
When launching a FastAPI application using Lanarky with Gradio integration and accessing the Gradio interface at
http://localhost:8000/gradio
, I encountered an issue. This issue occurs after modifying the code to include Gradio, while FastAPI cURL requests work well, and Gradio works well with another script (for example : retrieval_qa_w_sources.py
). The specific error message observed is:Steps I followed :
Launch the FastAPI application using the following command:
Open a web browser and navigate to
http://localhost:8000/gradio
.Observe the issue with the "conversational_retrieval" example in the Gradio interface.
Expected Behavior
The "conversational_retrieval" example in the Gradio interface should work as expected, similar to how it works with other scripts such as
retrieval_qa_w_sources.py
.Actual Behavior
The Gradio interface for the "conversational_retrieval" example encounters a "422 Unprocessable Entity" error.
Code
The code used to reproduce the issue is as follows:
Steps Taken to Debug
I have reviewed the code and configuration, and I have verified that FastAPI cURL requests work correctly. Additionally, the Gradio interface works as expected with other scripts, indicating that the issue might be specific to the integration with Lanarky for this type of
chain ConversationalRetrievalChain
.Sincerely, Iman L.