br-data / rag-enhanced-news-frontend

Prototype for the AI for Media Network Hackathon demonstrating RAG-enhanced news (Accio)

Home Page:https://interaktiv.br.de/accio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accio – RAG-Enhanced News (Frontend)

The prototype demonstrates how Retrieval-Augmented Generation (RAG) can enhance news by incorporating additional content from a news archive. The aim is to better address the questions and needs of different user personas, providing more comprehensive and contextual information.

The application was created for the AI for Media Hackathon 2024, hosted by Bayerischer Rundfunk, pub and Microsoft.

The frontend for Accio was built with Create React App and Fluent UI Starter.

The code and documentation for the RAG-backend service (FastAPI, LangChain) can be found here: https://github.com/br-data/rag-enhanced-news-backend

Screenshots

The news editor selects a news item from a news feed. The news feeds can be customized, filtered and sorted:

Accio news list

With the click of a button, Accio generates follow-up questions that a reader (based on a persona) might have about a news story. Our RAG backend tries to answer these question with content from our own news archive.

Accio enhanced news

Ideally, different personas could be selected and updated by the news editors, depending on the needs of different news brand. Follow-up question could be ask, using a intuitiv chat interface (not yet implemented).

Usage

  1. Clone the repository git clone https://...
  2. Install dependencies yarn
  3. Start development server yarn start
  4. Build the website yarn build

The project requires Node.js and Yarn to run locally.

The development server runs on http://localhost:3000/

Authentication

The login is currently disabled in the authentication provider. To enable authentication set default values as following:

export const defaultValues = {
  isAuthenticated: false,
  principal: null,
  login: (principal: any) => {},
  logout: () => {},
};

About

Prototype for the AI for Media Network Hackathon demonstrating RAG-enhanced news (Accio)

https://interaktiv.br.de/accio/

License:MIT License


Languages

Language:TypeScript 97.5%Language:CSS 1.5%Language:HTML 0.9%