Skip to content

feat: add Vector Store#14

Merged
averikitsch merged 29 commits into
mainfrom
akitsch-vs-1
Feb 13, 2024
Merged

feat: add Vector Store#14
averikitsch merged 29 commits into
mainfrom
akitsch-vs-1

Conversation

@averikitsch

Copy link
Copy Markdown
Collaborator

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

averikitsch and others added 17 commits February 9, 2024 10:53
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
@averikitsch averikitsch requested a review from a team February 9, 2024 23:46
@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 Feb 9, 2024
Base automatically changed from akitsch-engine to main February 9, 2024 23:50
@averikitsch averikitsch requested a review from kurtisvg February 9, 2024 23:56
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment on lines +90 to +91
if self.overwrite_existing:
await self.engine._aexecute(f"TRUNCATE TABLE {self.table_name}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: I'm not sure I like this here...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should we remove this feature altogether?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Probably? I'm squeamish of the idea that TRUNCATE will destroy the data before the verification checks are done. But maybe it's best to just leave it out to prevent a footgun?

@averikitsch averikitsch Feb 12, 2024

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I removed this for now

Comment thread src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated
Comment thread src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py
Comment thread src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated
Comment thread src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated
Comment thread src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py
Comment thread tests/test_cloudsql_vectorstore.py Outdated
@averikitsch averikitsch requested a review from kurtisvg February 12, 2024 03:16
Comment thread pyproject.toml Outdated
@averikitsch averikitsch merged commit f3e1127 into main Feb 13, 2024
@averikitsch averikitsch deleted the akitsch-vs-1 branch February 13, 2024 02:28
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.

2 participants