Skip to content

♻️ Embedding reinforcement PART 1#1255

Merged
Phinease merged 3 commits intodevelopfrom
xyc/embedding_reinforcement
Sep 19, 2025
Merged

♻️ Embedding reinforcement PART 1#1255
Phinease merged 3 commits intodevelopfrom
xyc/embedding_reinforcement

Conversation

@Jasonxia007
Copy link
Contributor

♻️ Improvement: Now embedding model in sdk will automatically retry up to 3 times when connection timeout
♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not connected yet
♻️ Improvement: Warn the user trying to modify the embedding config (from non-empty state to other state)
♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not set (regardless of multi-embedding model)
♻️ Refactor: add EmbedderCheckModal.tsx to manage all warning modals in model config page
🐛 Bug fix: Next.js warning in the home page: Instance created by useForm is not connected to any Form element.

20250918_161322.mp4

…p to 3 times when connection timeout

♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not connected yet
♻️ Improvement: Warn the user trying to modify the embedding config (from non-empty state to other state)
♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not set (regardless of multi-embedding model)
♻️ Refactor: add EmbedderCheckModal.tsx to manage all warning modals in model config page
🐛 Bug fix: Next.js warning in the home page: Instance created by `useForm` is not connected to any Form element.
…forcement

# Conflicts:
#	frontend/app/[locale]/setup/models/components/model/EmbedderCheckModal.tsx
#	frontend/app/[locale]/setup/models/components/modelConfig.tsx
#	frontend/app/[locale]/setup/page.tsx
#	frontend/public/locales/en/common.json
#	frontend/public/locales/zh/common.json
@codecov
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
sdk/nexent/core/models/embedding_model.py 91.66% 3 Missing and 3 partials ⚠️
backend/services/config_sync_service.py 94.73% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

…p to 3 times when connection timeout

♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not connected yet
♻️ Improvement: Warn the user trying to modify the embedding config (from non-empty state to other state)
♻️ Improvement: Warn the user trying to proceed to next config page when embedding model has not set (regardless of multi-embedding model)
♻️ Refactor: add EmbedderCheckModal.tsx to manage all warning modals in model config page
🐛 Bug fix: Next.js warning in the home page: Instance created by `useForm` is not connected to any Form element.
user_id, tenant_id, config_key, model_id)
return

current_model_id = _parse_optional_int(tenant_config_dict.get(config_key))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果需要判断是否可以转化为int可以直接使用isdigit()
_parse_optional_int方法可以改为一个简单的if语句,因为这个方法不复用,不用单独抽取
current_model_id = tenant_config_dict.get(config_key)
current_model_id = int(current_model_id) if str(current_model_id).isdigit() else None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

将在PART 2合入中统一修改

@Phinease Phinease merged commit 42a8f77 into develop Sep 19, 2025
9 checks passed
@Jasonxia007 Jasonxia007 deleted the xyc/embedding_reinforcement branch September 23, 2025 02:08
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

Successfully merging this pull request may close these issues.

3 participants

Comments