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

WebApp fails to startup due to mathassistant.py issue #917

Open
1 task
ryonsteelemsft opened this issue Nov 22, 2024 · 0 comments
Open
1 task

WebApp fails to startup due to mathassistant.py issue #917

ryonsteelemsft opened this issue Nov 22, 2024 · 0 comments

Comments

@ryonsteelemsft
Copy link
Contributor

Bug Details

Environment is GCC High but I dont think this matters here.

The step was a straight make deploy with secure flag off using gpt-35-turbo.
The infra and webapp built and deployed but I was seeing this in the logs, failing to startup:

File "/home/site/wwwroot/app.py", line from approaches.mathas File "/home/site/wwwroot/approaches/mathassistant.py", line 1 tools = load_tools(["llm-math","wikipedia ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/langchain_core/load/serializable.py", line 1 super().__init__(* File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 2 validated_self = self.__pydantic_validator__.validate_python(data, self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/_internal/_mock_val_ser.py", line 100, raise PydanticUserError(self._error_message, c pydantic.errors.PydanticUserError:LLMMathChainis not fully defined; you should defineBaseCache, then call LLMMathChain.model_rebuild().

Steps To Reproduce

  1. Pull and make deploy from main branch, it is 100% reproducible for me.
  2. Webapp frontend will not be available and fails to startup
  3. Investigate LogStream or Workbook to see above logs

Information Assistant details

Please provide the following details. You can simply include a screenshot of your Info panel as well.

GitHub branch: main as of this ticket creation

What region is your Azure Open AI Service in?
usgovvirginia
What ChatGPT model are you using?
gpt-35-turbo
model name: (i.e. gpt-3.5-turbo, gpt-4)
gpt-35-turbo
model version: (i.e. 0613)
1106
What embeddings model are you using?
text-embedding-ada-02

Additional context
PR Coming for consideration or iteration

If the bug is confirmed, would you be willing to submit a PR?

  • [ X] Yes
  • No
glensouza added a commit to glensouza/PubSec-Info-Assistant-LACO-PW that referenced this issue Nov 26, 2024
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

1 participant