Skip to content

Commit

Permalink
prevent embedding lookup on empty request (like when the user supplie…
Browse files Browse the repository at this point in the history
…s image only request) (#494)

…s an image)
  • Loading branch information
robgruen authored Dec 13, 2024
1 parent 45f03fc commit 42c9020
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ async function pickInitialSchema(

const embedding =
systemContext.session.getConfig().translation.switch.embedding;
if (embedding) {
if (embedding && request.length > 0) {
debugSemanticSearch(`Using embedding for schema selection`);
// Use embedding to determine the most likely action schema and use the schema name for that.
const result =
Expand Down

0 comments on commit 42c9020

Please sign in to comment.