Default bootstrap query when none is provided
This commit is contained in:
parent
02798085b1
commit
3f38fe1d6c
1 changed files with 9 additions and 0 deletions
|
|
@ -93,6 +93,15 @@ function rankItems(query: string, items: RetrieveResponse["items"]): RetrieveRes
|
|||
|
||||
function buildBootstrapQueries(query: string): string[] {
|
||||
const cleaned = normalizeQuery(query);
|
||||
if (!cleaned) {
|
||||
return [
|
||||
"dame un mapa inicial del dominio y sus ideas principales",
|
||||
"documentacion principal y estructura general",
|
||||
"temas base y puntos importantes a tener presentes",
|
||||
"referencias principales para profundizar despues"
|
||||
];
|
||||
}
|
||||
|
||||
return unique([
|
||||
cleaned,
|
||||
`${cleaned} mapa general`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue