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

refactor: use type halfvec instead of vector in PGVector #3753

Open
wants to merge 3 commits into
base: v4.9.0-dev
Choose a base branch
from

Conversation

I-Info
Copy link
Contributor

@I-Info I-Info commented Feb 11, 2025

No description provided.

@c121914yu
Copy link
Collaborator

c121914yu commented Feb 11, 2025

🤖 Generated by deploy action

📦 Preview Image: ghcr.io/labring/fastgpt-pr:4761c107566c3fde01dacf9ad30e4dd9f90b7748

@c121914yu c121914yu changed the base branch from v4.8.20-dev to v4.9.0-dev February 14, 2025 02:05

let rowsUpdated;
do {
rowsUpdated = await PgClient.query(`
Copy link
Collaborator

@c121914yu c121914yu Feb 14, 2025

Choose a reason for hiding this comment

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

需要加 try catch。
后面无需等待了,必要性不大。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

感觉不是很必要?最外层已经有一个try catch了。如果update出现异常还可以再次执行脚本。

@I-Info I-Info changed the title feat: halfvec v2 refactor: use type halfvec instead of vector in PGVector Feb 14, 2025

let rowsUpdated;
do {
rowsUpdated = await PgClient.query(`
Copy link
Collaborator

Choose a reason for hiding this comment

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

while里应该加 try catch 吧?不然失败一个,不就全终止了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

全终止了还能再运行脚本的吧,应该不是太影响。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants