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

Failed to chat without default Embedding Model #431

Closed
634750802 opened this issue Dec 2, 2024 · 1 comment
Closed

Failed to chat without default Embedding Model #431

634750802 opened this issue Dec 2, 2024 · 1 comment
Assignees

Comments

@634750802
Copy link
Collaborator

2024-12-02 14:51:40 2024-12-02 06:51:40,313 - app.api.routes.chat:87 - ERROR - 404: default embedding model is not found
2024-12-02 14:51:40 Traceback (most recent call last):
2024-12-02 14:51:40   File "/app/app/api/routes/chat.py", line 75, in chats
2024-12-02 14:51:40     chat_svc = ChatService(
2024-12-02 14:51:40                ^^^^^^^^^^^^
2024-12-02 14:51:40   File "/app/app/rag/chat.py", line 178, in __init__
2024-12-02 14:51:40     self._embed_model = get_default_embedding_model(db_session)
2024-12-02 14:51:40                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-02 14:51:40   File "/app/app/rag/chat_config.py", line 317, in get_default_embedding_model
2024-12-02 14:51:40     db_embed_model = embed_model_repo.must_get_default_model(session)
2024-12-02 14:51:40                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-02 14:51:40   File "/app/app/repositories/embedding_model.py", line 72, in must_get_default_model
2024-12-02 14:51:40     raise DefaultEmbeddingModelNotFoundError()
2024-12-02 14:51:40 app.exceptions.DefaultEmbeddingModelNotFoundError: 404: default embedding model is not found
@Mini256
Copy link
Member

Mini256 commented Dec 3, 2024

@634750802 For now, these error will return to the FE, please handle these errors.

{
  "detail": "default embedding model is not found"
}

except ChatNotFound as e:

@Mini256 Mini256 assigned 634750802 and unassigned Mini256 Dec 3, 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

3 participants