refactor: 重构文档向量相关代码结构
This commit is contained in:
@@ -51,7 +51,7 @@ func (d *datasetIndexDao) InsertIndex(ctx context.Context, indexName string) (er
|
||||
USING ivfflat (vector vector_cosine_ops)
|
||||
WITH (lists = 100)
|
||||
WHERE vector IS NOT NULL;
|
||||
`, indexName, gfdb.TablePrefix+public.TableNameDocumentChunk)
|
||||
`, indexName, gfdb.TablePrefix+public.TableNameDocumentVector)
|
||||
_, err = db.Exec(ctx, sqlStr)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user