Content-Length: 273376 | pFad | https://github.com/googleapis/langchain-google-cloud-sql-pg-python/issues/171

63E feat: Add table name to default index name by duwenxin99 · Pull Request #171 · googleapis/langchain-google-cloud-sql-pg-python · GitHub
Skip to content

feat: Add table name to default index name #171

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

Merged
merged 1 commit into from
Jul 25, 2024
Merged

feat: Add table name to default index name #171

merged 1 commit into from
Jul 25, 2024

Conversation

duwenxin99
Copy link
Contributor

@duwenxin99 duwenxin99 commented Jul 24, 2024

Add table name as prefix to default index name upon index creation to avoid conflicting default index names for different tables.

  1. Change DEFAULT_INDEX_NAME to DEFAULT_INDEX_NAME_SUFFIX.
  2. Change index_name default in the BaseIndex class to None.
  3. In aapply_vector_index(), check if the index_name field is None and if so, give it a default index name (table_name + DEFAULT_INDEX_NAME_SUFFIX).

@duwenxin99 duwenxin99 requested review from a team as code owners July 24, 2024 20:03
@product-auto-label product-auto-label bot added the api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API. label Jul 24, 2024
Copy link
Contributor

@vishwarajanand vishwarajanand left a comment

Choose a reason for hiding this comment

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

Lgtm

@duwenxin99 duwenxin99 merged commit 8e61bc7 into main Jul 25, 2024
11 checks passed
@duwenxin99 duwenxin99 deleted the table branch July 25, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/langchain-google-cloud-sql-pg-python/issues/171

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy