clarity-ai  by mckaywrigley

Perplexity.ai clone

created 2 years ago
1,369 stars

Top 30.1% on sourcepulse

GitHubView on GitHub
Project Summary

Clarity AI is a straightforward, open-source clone of perplexity.ai, designed for developers and AI enthusiasts to understand and replicate the functionality of a web-aware conversational AI. It provides a foundational example of building an application that leverages large language models to answer user queries with up-to-date information.

How It Works

The application takes a user's query, scrapes relevant webpages from Google, parses the content, and constructs a prompt combining the query with the scraped text. This prompt is then sent to OpenAI's API to generate an answer, which is streamed back to the user. This approach allows the AI to access and synthesize current information from the web.

Quick Start & Requirements

  • Install dependencies: npm i
  • Run app: npm run dev
  • Requires an OpenAI API key.

Highlighted Details

  • Demonstrates a full-stack application integrating web scraping and LLM APIs.
  • Aims to showcase the feasibility of building powerful AI applications with smaller teams.
  • Suggests improvements like using the Google Search API for faster results and adding follow-up question capabilities.

Maintenance & Community

The project is maintained by mckaywrigley. Further community engagement details are not specified in the README.

Licensing & Compatibility

The project is available under an unspecified license, with the README stating "Use the code for whatever you like! :)". This suggests a permissive license, but explicit terms should be verified.

Limitations & Caveats

The current implementation uses web scraping, which can be slower and less reliable than direct API integration. Source citation is limited to the text-davinci-003 model. The project is presented as an inspirational example rather than a production-ready, fully optimized application.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
54 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.