From 4df4fd8a0c3503b8007ea93b3a9b6744a1ad1afe Mon Sep 17 00:00:00 2001 From: Gabriel Gordon-Hall Date: Wed, 11 Oct 2023 16:29:33 +0100 Subject: [PATCH] mandatory Semantic in /search (#1039) --- server/bleep/src/webserver/search.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server/bleep/src/webserver/search.rs b/server/bleep/src/webserver/search.rs index 4bdefca6ca..ce143e15dd 100644 --- a/server/bleep/src/webserver/search.rs +++ b/server/bleep/src/webserver/search.rs @@ -12,15 +12,8 @@ use tracing::error; pub(super) async fn semantic_code( Query(args): Query, - Extension(semantic): Extension>, + Extension(semantic): Extension, ) -> impl IntoResponse { - let Some(semantic) = semantic else { - return Err(Error::new( - ErrorKind::Configuration, - "Qdrant not configured", - )); - }; - match parser::parse_nl(&args.q.clone()) { Ok(q) => semantic::execute::execute(semantic, q, args) .await