💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update comment
davidmezzetti944ef19276ad
diff --git a/src/python/txtai/ann/dense/pgvector.py b/src/python/txtai/ann/dense/pgvector.pyindex 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 nametable = self.setting("table", self.defaulttable())- # Create vectors table+ # Create vectors table objectself.table = Table(table, MetaData(), Column("indexid", Integer, primary_key=True, autoincrement=False), Column("embedding", self.column()))- # Drop and recreate table+ # Drop table, if necessaryif recreate:self.table.drop(self.connection, checkfirst=True)- # Create table and index+ # Create table, if necessaryself.table.create(self.connection, checkfirst=True)def createindex(self):