Skip to content

An AI Answer Engine that combines web scraping and LLMs to answer questions with cited sources. Built using React, TypeScript, Puppeteer, and Groq API, this project creates an intuitive chat interface, extracting content from URLs and generating responses in real time.

Notifications You must be signed in to change notification settings

rahatmoktadir03/ai-answer-engine

 
 

Repository files navigation

AI Answer Engine

Getting Started

First, clone the repository and install the dependencies:

git clone https://github.com/team-headstart/ai-answer-engine.git

Navigate to the project directory:

cd ai-answer-engine

Then, install the dependencies:

npm install

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Tasks

  • Take a look at the TODOs throughout the repo, namely:

    • src/app/page.tsx: Update the UI and handle the API response as needed

    • src/app/api/chat/route.ts: Implement the chat API with Groq and web scraping with Cheerio and Puppeteer

    • src/middleware.ts: Implement the code here to add rate limiting with Redis

Learn More

To learn more about Next.js, take a look at the following resources:

About

An AI Answer Engine that combines web scraping and LLMs to answer questions with cited sources. Built using React, TypeScript, Puppeteer, and Groq API, this project creates an intuitive chat interface, extracting content from URLs and generating responses in real time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.0%
  • CSS 3.6%
  • JavaScript 1.4%