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

feat: add Vector Store #14

Merged
merged 29 commits into from
Feb 13, 2024
Merged

feat: add Vector Store #14

merged 29 commits into from
Feb 13, 2024

Conversation

averikitsch
Copy link
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 as a code owner 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
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Comment on lines 90 to 91
if self.overwrite_existing:
await self.engine._aexecute(f"TRUNCATE TABLE {self.table_name}")
Copy link
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
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
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?

Copy link
Collaborator Author

@averikitsch averikitsch Feb 12, 2024

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

src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated Show resolved Hide resolved
src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated Show resolved Hide resolved
src/langchain_google_cloud_sql_pg/cloudsql_vectorstore.py Outdated Show resolved Hide resolved
tests/test_cloudsql_vectorstore.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@averikitsch averikitsch merged commit f3e1127 into main Feb 13, 2024
7 checks passed
@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.
2 participants