Closed pamelafox closed 9 months ago
I checked the unit tests for this repo and noticed the psycopg2 test doesn't use the <-> operator, so maybe there's a reason for that?
Ah! My error was due to using a list[float] instead of a numpy.array. I did not realize the np.array aspect was important. I suggest clarifying that in the README, assuming that's indeed the case.
I face the same problem, and realize that pgvector-python requires numpy array. It seems like it cannot process python array as input.
Hi @pamelafox and @MobisParkHeekang, check out #4.
I'm using the example code with some modifications for database connection:
When I run it, I get the following error: