1159 shaares
13 private links
13 private links
Given a query, Clarity fetches relevant, up-to-date information from the web and uses OpenAI's API to generate an answer.
The app works as follows:
- Get query from user
- Scrape Google for relevant webpages
- Parse webpages for text
- Build prompt using query + webpage text
- Call OpenAI API to generate answer
- Stream answer back to user