-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support adding vector index to the Database Model #67
Conversation
Signed-off-by: JaySon-Huang <tshent@qq.com>
Good Job! Please also add some tests for vector index in this file https://github.com/pingcap/django-tidb/blob/main/tests/tidb_vector/test_vector.py |
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
6f69f19
to
7a7ce68
Compare
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
I've added some test case and polish the document. @wd0517 PTAL again |
I'll cherry-pick this feature to stable/4.2.x and stable/4.1.x branch later. |
What's changed
create_sql
for building the SQL ofCREATE VECTOR INDEX ... ON ...
L1Distance
/L2Distance
/CosineDistance
/NegativeInnerProduct
as expression index