You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Mozilla's Readabiility (requires JSDOM) but does a great job reduce the size of content from the webpage for the context injection. https://github.com/mozilla/readability
Use Query decomposition rather than rephrasing, and doing parallel searches, this helps for more complex queries (but does multiple the hits to brave/serarch engine by 3), e.g Your role is to generate a few short and specific search queries to answer the QUERY below. List 3 options, 1 per line. - then parse the response with a split on \n and remove numbers - or use json response.
Unchecked code sample:
// get variations of inputconstqueryVariations=[...(awaitgetVariations(input)),input]// run the search for each variationconstbraveTasks=queryVariations.map(q=>searchWithBrave(q))// remove any duplicates based on all 3 variations to avoid fetching the html of the same page more than one)// you could use this to rerank instead of removing.. ie if the result showed more than one you could higher rank it for RAGconstuniqueResults=_.uniqBy(awaitPromise.all(braveTasks)),"url")
The text was updated successfully, but these errors were encountered:
Suggestions:
Use Mozilla's Readabiility (requires JSDOM) but does a great job reduce the size of content from the webpage for the context injection. https://github.com/mozilla/readability
Use Query decomposition rather than rephrasing, and doing parallel searches, this helps for more complex queries (but does multiple the hits to brave/serarch engine by 3), e.g
Your role is to generate a few short and specific search queries to answer the QUERY below. List 3 options, 1 per line.
- then parse the response with a split on \n and remove numbers - or use json response.Unchecked code sample:
The text was updated successfully, but these errors were encountered: