Project

General

Profile

Actions

dev #1799

open

Handle ambiguous prompt for search query

Added by Zahid Hassan about 1 year ago.

Status:
Complete
Priority:
High
Assignee:
Target version:
-
Start date:
01/27/2025
Due date:
01/27/2025 (about 15 months late)
% Done:

100%

Estimated time:
4:00 h
Spent time:

Description

Description

If the prompt for the search is too short, then gemini api fails to understand the context of the prompt and identifies it as an ambiguous prompt. In those cases, instead of returning a sql query, it returns a response where it asks for more context and suggest some sql queries. For this reason, this response can't be used as a sql command later on in the app.

Steps Taken

  • If gemini api identifies the prompt as ambiguous, then a sql query will be generated to find similar records matching the users' query with the title and description columns.
Actions

Also available in: Atom PDF