Skip to content

Commit

Permalink
mandatory Semantic in /search (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall authored Oct 11, 2023
1 parent 7670890 commit 4df4fd8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions server/bleep/src/webserver/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ use tracing::error;

pub(super) async fn semantic_code(
Query(args): Query<ApiQuery>,
Extension(semantic): Extension<Option<Semantic>>,
Extension(semantic): Extension<Semantic>,
) -> 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
Expand Down

0 comments on commit 4df4fd8

Please sign in to comment.