Coding

This is an assesment assigned by BeyondChats

Here's the deployed version (Might get delayed response due to free deployment) : https://beyond-chats.vercel.app/

Objective of the assesment :

1.) Fetch Data from API:

Retrieve data from the provided API endpoint, ensuring you handle pagination if necessary.

2.) Identify Response Sources:

For each response and its associated sources, determine if the response content matches any of the provided sources.

3.) List Identified Sources:

Compile a list of sources that contributed to each response. If no sources match, return an empty array.

4.) Return Citations:

For each object retrieved from the API, return the list of identified sources (citations).

5.) User-Friendly UI (Optional):

Bonus points for presenting the results in a clear and user-friendly interface, allowing users to easily view the citations for each response.

Project Structure :

Backend: For backend I have used FastAPI and requests module to fetch the json data from the api and send it to the frontend

Frontend: For frontend I have used React, TypeScript , TailWindCss and Vite for displaying the data to the users

Tech Stack Used :

Coding

System Design :

diagram-export-5-18-2024-8_32_56-PM

Installation :

   git clone https://github.com/Aditya-Sakpal/BeyondChats.git
   cd backend 
   python -m venv <env_name>
   <env_name>/Scripts/activate
   pip install -r requirements.txt
   python main.py
  cd .. && cd frontend
   npm i 
   npm run dev