Open
Description
Bug Report
YDB Python SDK version: 3.21.1
Python version: 3.8.10
OS: Linux-5.4.210-39.1.pagevecsize-x86_64-with-glibc2.29
Behavior:
- When I pass a vector to the query as a list, I have 127 RPS.
- When I pass a vector to the query as a string, I have 617 RPS.
First way is the default way in YDB vector search. It's used in langchain-ydb. But it's slower.
Second way is undocumented way but it's much faster.
In C++ SDK we have numbers: 810 and 860 RPS.
Please, fix vector pass as a list in python SDK. 127 RPS is too slow.
See an example in the attached python file: vector-parameter.py.
You can change behaviour by these lines:
MODE = "list"
# MODE = "string"