Auth issues present as "ValueError: Id column, langchain_id, does not exist." #273
Labels
api: alloydb
Issues related to the googleapis/langchain-google-alloydb-pg-python API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
pip --version
Unsurelangchain-google-alloydb-pg
version:pip show langchain-google-alloydb-pg
Steps to reproduce
similarity_search
Code example
Directly from notebook
Stack trace
Debugging
Example schema from
movies.csv
usesid
, wasn't sure if I should have been renaming this (it wasn't it).But after finding the code in this package, I saw that it could be a case of the
columns
var inasync_vectorstore.py
'screate()
(viaAlloyDBVectorStore.create_sync
) is empty, hence the error.If I changed the authentication from IAM built-in to the username password, the functionality worked.
Possible fix: before the
# Check columns
maybe check if there are any columns, and return an authentication error. This would at least present the actual issue rather than a schema issue.b/356000377
The text was updated successfully, but these errors were encountered: