Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update comment

davidmezzetti944ef19276ad
diff --git a/src/python/txtai/ann/dense/pgvector.py b/src/python/txtai/ann/dense/pgvector.py
index 577aecd6..2d3cc8ce 100644
--- a/src/python/txtai/ann/dense/pgvector.py
+++ b/src/python/txtai/ann/dense/pgvector.py
@@ -117,14 +117,14 @@ class PGVector(ANN):
# Table name
table = self.setting("table", self.defaulttable())
- # Create vectors table
+ # Create vectors table object
self.table = Table(table, MetaData(), Column("indexid", Integer, primary_key=True, autoincrement=False), Column("embedding", self.column()))
- # Drop and recreate table
+ # Drop table, if necessary
if recreate:
self.table.drop(self.connection, checkfirst=True)
- # Create table and index
+ # Create table, if necessary
self.table.create(self.connection, checkfirst=True)
def createindex(self):