Skip to content

Add configuration to control spanner graph search#1841

Open
shixiao-coder wants to merge 8 commits intodatacommonsorg:masterfrom
shixiao-coder:spanner-resolve-config-setup
Open

Add configuration to control spanner graph search#1841
shixiao-coder wants to merge 8 commits intodatacommonsorg:masterfrom
shixiao-coder:spanner-resolve-config-setup

Conversation

@shixiao-coder
Copy link
Copy Markdown

This is the first PR to add Graph Search functionality into v2/resolve. It will add a configuration structure to tune search

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 new data structures and constants for Spanner search configurations, including search algorithms, graph configurations, and embedding settings. The review feedback suggests several improvements for clarity and naming consistency: renaming GraphConfig to GraphSearchMode to better reflect its purpose as a strategy, clarifying the EmbeddingSpace field (potentially to EmbeddingDimension) to reduce ambiguity, and ensuring field names do not conflict with their type names.

Comment thread internal/server/v2/resolve/spanner_embeddings.go Outdated
Comment thread internal/server/v2/resolve/spanner_embeddings.go Outdated
Comment thread internal/server/v2/resolve/spanner_embeddings.go Outdated
@shixiao-coder shixiao-coder requested a review from keyurva April 10, 2026 17:40
Copy link
Copy Markdown
Contributor

@n-h-diaz n-h-diaz left a comment

Choose a reason for hiding this comment

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

Thanks! This seems fine to me, but I have less context on how this will be used, so would be good if Christie or Keyur could also take a look

Comment thread internal/server/v2/resolve/spanner_embeddings.go
Comment thread internal/server/v2/resolve/spanner_embeddings.go
1) It adds descriptions to the enums
2) It adds Yaml files to read configurations
3) It adds the function to read the Yaml and Convert to Configuration structure
Copy link
Copy Markdown
Contributor

@clincoln8 clincoln8 left a comment

Choose a reason for hiding this comment

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

Thanks! Just some nits and clarification requests.

Comment thread internal/server/v2/resolve/spanner_embeddings.go
Comment thread internal/server/v2/resolve/spanner_embeddings.go
Comment thread internal/server/v2/resolve/spanner_config/default.yaml
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