pingcap / tidb-vector-python

TiDB Vector SDK for Python, including code examples. Join our Discord: https://discord.gg/XzSW23Jg9p
https://tidb.cloud/ai
Apache License 2.0
45 stars 15 forks source link

Pass engine_args to create_engine in get_embedding_column_definition #27

Closed michaelwnyc closed 7 months ago

michaelwnyc commented 7 months ago

Pass engine_args to create_engine in get_embedding_column_definition.

Encountered this error when connecting to tidbcloud serverless cluster:

sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'gateway01.eu-central-1.prod.aws.tidbcloud.com' ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000))")

IANTHEREAL commented 7 months ago

@michaelwnyc thanks for your contribution. Can you fix the lint ci issue?

michaelwnyc commented 7 months ago

@IANTHEREAL It should have been fixed

IANTHEREAL commented 7 months ago

@michaelwnyc Thanks again

michaelwnyc commented 7 months ago

@IANTHEREAL Any chance to release a new version and also update llama-index-vector-stores-tidbvector's version list?

IANTHEREAL commented 7 months ago

@michaelwnyc we will release it ASAP in this week

IANTHEREAL commented 7 months ago

@michaelwnyc We had released the update in tidb-vector 0.0.8. You can now update 'tidb-vector' in your environment. Because the 'llama-index-vector-stores-tidbvector' requires 'tidb-vector' to be version '>=0.0.3,<1.0.0', it will also work.

If you have any other usage issues, please feel free to contact me either through an issue or by email at zhaiyl@pingcap.com.