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

Getting error 'The endpoint ... failed to stream the response. Retrying without streaming'. #183

Open
mnkumar8 opened this issue Jan 24, 2025 · 2 comments

Comments

@mnkumar8
Copy link

mnkumar8 commented Jan 24, 2025

Hi,

Getting this error in new versions of RAG app. Please let me know how to fix this error.

Background:
I have created a RAG app using Databricks Mosaic AI Agent and was able to ask questions and got responses. I wanted to modify the prompts and create new version. But, every time I create a new version, I get the same error message in the new chatbot application (not able to ask questions in new versions).

I create new version means, I deployed the model to create a new API endpoint using the below code:

from databricks import agents
#Register the chain to UC
uc_registered_model_info = mlflow.register_model(model_uri=logged_chain_info.model_uri, name=MODEL_NAME_FQN)

#Deploy to enable the Review APP and create an API endpoint
deployment_info = agents.deploy(model_name=MODEL_NAME_FQN, model_version=uc_registered_model_info.version, scale_to_zero=True)

instructions_to_reviewer = f"""### Instructions for Testing ...
"""

#Add the user-facing instructions to the Review App
agents.set_review_instructions(MODEL_NAME_FQN, instructions_to_reviewer)
wait_for_model_serving_endpoint_to_be_ready(deployment_info.endpoint_name)

Thanks,
Naveen

@QuentinAmbard
Copy link
Collaborator

hey,
if you try your model without deploying it is it working ?

@mnkumar8
Copy link
Author

mnkumar8 commented Feb 7, 2025

Thanks for the response. Yes, it is working without deploying. Getting error only in chatbot application, but not while trying using code.

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