pkavumba / django-vectordb

A fast and scalable app that adds vector search capabilities to your Django applications. It offers low latency, fast search results, native Django integration, and automatic syncing between your models and the vector index. Incremental updates are also supported out of the box.
Apache License 2.0
68 stars 6 forks source link

Fixing management commands #4

Closed phlashworth closed 1 year ago

phlashworth commented 1 year ago

Addresses issues on both management commands:

  1. AttributeError: 'function' object has no attribute 'delete' was encountered on the vectordb_reset management command
  2. psycopg2.errors.UndefinedFunction: operator does not exist: character varying = bigint LINE 1: ...e_id" = 14 AND NOT ("vectordb_vector"."object_id" IN (SELECT... ^ was encountered when running the vectordb_sync management command. This was due to trying to compare a char field with an int field when looking up objects already embedded that should be excluded.