From: Erik Mackdanz Date: Thu, 28 Nov 2024 16:45:30 +0000 (-0600) Subject: don't need to create extension for searches X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=e33b980eaf250306a4e412723697f542cf4925d8;p=vecsearch.git don't need to create extension for searches --- diff --git a/src/main.rs b/src/main.rs index eb545ae..e080030 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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",