Giter Site home page Giter Site logo

news-groqqer's Introduction

News Groqqer

Description

This project focuses on creating an end-to-end, rag-enabled News Generation and Summarization Pipeline. The infrastructure will be hosted on AWS and I'll soon provide Terraform templates. I will be using groq, an insanely fast API provider for Open Source LLMs. The free tier provides 30 requests per minute which is enough when compared to the scope of this project.

Architecture Diagram

groqqer_architecture

Prerequisites

  • Vector Databases (PGVector, Pinecone, etc.)

  • NDTV RSS Feeds (Non-Commercial use) NDTV provides access to their various RSS Feeds. Below is an RSS Feeds that contains content about Technology:

    https://feeds.feedburner.com/gadgets360-latest

  • An AWS Account (Note : your cloud expenses might spike up)

  • Groq API Key (create one here)

  • Langchain

  • Discord Webhook

Get started

Building docker image

docker build -t groqqer:latest .

Creating an RDS Instance

Create an AWS RDS Instance by going to RDS Console.

  • Select PostgreSQL.
  • Select t3.micro as Instance Type.

Requesting Bedrock Access

Go to the Bedrock Console and under base models request access for Titan Multimodal Embeddings Generation 1

Deploying Image to ECR

  1. Create an ECR Repository either via console or via AWS CLI
aws ecr create-repository \
    --repository-name <repo_name>
    --region <region_name>
  1. Push the Docker Image to your ECR Repository. Refer to this guide on How to push images to an ECR Repository

Creating a discord server and getting Webhook URL

Open Discord and create a server. Under server, go to settings -> integrations. Create a webhook and select a channel, that would serve as a destination for your webhook.

Deploying container to ECS (Fargate)

3.1 Create an ECS Cluster.

Screenshot 2024-05-28 at 2 00 10 AM

3.2 Create a Task Definition Family.

  • Select AWS Fargate as launch type.

  • Under task size select the following values

    • CPU - 2vCPU
    • Memory - 4GB
  • Under Task Execution Role:

    • Go to the IAM Console and create an IAM Role for AWS ECS - Elastic Container Service Task.
    • Attach [AmazonBedrockFullAccess] IAM Policy to your IAM Role
    • Now select the newly created role.
  • Under Container - 1, enter your preferred container name and enter the ECR Image URI under Image URI.

  • Leave all other fields as default and click create.

Screenshot 2024-05-28 at 1 49 24 AM

3.3 Create an ECS Service under your ECS cluster created in step 3.1.

Screenshot 2024-05-28 at 1 51 29 AM

3.4 Now still in ECS Cluster, finally run a task.

Screenshot 2024-05-28 at 1 52 54 AM

Attach a Chat Interface (Optional)

coming soon

news-groqqer's People

Contributors

vinamrgrover avatar

Stargazers

 avatar Vince Fulco--Bighire.tools avatar Daniel Travaglia avatar Mike Endale avatar Jupiter avatar Leonce Nshuti avatar

Watchers

 avatar Daniel Travaglia avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.