Skip to content

feat(tools/bigquerysql): add semantic search support#2890

Open
duwenxin99 wants to merge 9 commits intomainfrom
feat/bigquery-semantic-search
Open

feat(tools/bigquerysql): add semantic search support#2890
duwenxin99 wants to merge 9 commits intomainfrom
feat/bigquery-semantic-search

Conversation

@duwenxin99
Copy link
Copy Markdown
Contributor

No description provided.

@duwenxin99 duwenxin99 requested review from a team as code owners March 30, 2026 01:59
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for vector parameters in BigQuery SQL tools by handling []float32 slices and converting them to []float64 arrays for compatibility with the BigQuery Go client. It also adds integration tests for semantic search, including a new vector table setup and test cases for vector-based queries. I have no feedback to provide.

@duwenxin99 duwenxin99 force-pushed the feat/bigquery-semantic-search branch from 54f5e89 to 01ce7c3 Compare March 30, 2026 02:15
@duwenxin99 duwenxin99 force-pushed the feat/bigquery-semantic-search branch from 3c26329 to a6e31ae Compare March 30, 2026 18:35
@duwenxin99 duwenxin99 changed the title feat(source/bigquery): add semantic search integration tests feat(source/bigquery): add semantic search integration tests and docs Mar 30, 2026
@duwenxin99 duwenxin99 mentioned this pull request Mar 30, 2026
1 task
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Cloudflare Preview Ready!

🔎 View Preview: https://pr-2890.toolbox-docs-6xc.pages.dev

(Note: Subsequent pushes to this PR will automatically update the preview at this same URL)

@github-actions
Copy link
Copy Markdown
Contributor

@duwenxin99 duwenxin99 changed the title feat(source/bigquery): add semantic search integration tests and docs chore(source/bigquery): add semantic search support Mar 30, 2026
@duwenxin99 duwenxin99 changed the title chore(source/bigquery): add semantic search support chore(tools/bigquerysql): add semantic search support Mar 30, 2026
@duwenxin99 duwenxin99 changed the title chore(tools/bigquerysql): add semantic search support feat(tools/bigquerysql): add semantic search support Mar 30, 2026

arrayValues[i] = &bigqueryrestapi.QueryParameterValue{
Value: fmt.Sprintf("%v", sliceVal.Index(i).Interface()),
Value: fmt.Sprintf(format, val),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

strconv.FormatFloat may have better performance here. I worry about the precision loss of converting this.

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