]> Humopery - vecsearch.git/commitdiff
don't need to create extension for searches
authorErik Mackdanz <erikmack@gmail.com>
Thu, 28 Nov 2024 16:45:30 +0000 (10:45 -0600)
committerErik Mackdanz <erikmack@gmail.com>
Thu, 28 Nov 2024 16:45:30 +0000 (10:45 -0600)
src/main.rs

index eb545ae300c90f05b4c49453e845737721b9e1f7..e080030dc9cb6ea2eb526940c507cf88b91c159d 100644 (file)
@@ -239,7 +239,6 @@ fn search(dbname: String, host: String, user: String, password: String,
        .user(&user)
        .password(password)
        .connect(NoTls)?;
-    client.execute("CREATE EXTENSION IF NOT EXISTS vector", &[])?;
 
     for row in client.query("SELECT content FROM documents \
                             ORDER BY embedding <=> $1 LIMIT 5",