Skip to content

yukaty/tech-trend-tracker

Repository files navigation

Tech Trend Tracker

A full-stack application that tracks technology trends from news articles.

Overview

Tech Trend Tracker collects articles from Reuters, processes them with OpenAI embeddings, and displays monthly technology trends and keyword rankings. This app also includes RAG-enhanced semantic search and AI-powered article summaries. The demo uses data from 2024/01 to 2024/12.

Features

  • RAG-enhanced search:
    • Text chunking & embeddings
    • AI-powered summaries
    • Referenced sources with scores
  • Keyword-based article search
  • Trending entity analysis (companies, people, services)
  • Keyword frequency tracking

Dashboard

Search

Tech Stack

  • Frontend: Next.js, Tailwind CSS, shadcn/ui
  • Backend: Python, FastAPI
  • Database: PostgreSQL with pgvector
  • AI models: OpenAI (embeddings, text generation)

Architecture

  graph TB
      subgraph "Offline Scripts"
          SCRIPTS[Data Collection<br/>& Embedding Scripts]
          BD[Bright Data API]
      end

      subgraph "Database"
          VEC[(Vector Database<br/>pgvector)]
          META[(Article Metadata<br/>PostgreSQL)]
      end

      subgraph "Backend (FastAPI)"
          API[REST API]
          RAG[RAG Pipeline]
          LLM[OpenAI LLM]
      end

      subgraph "Frontend (Next.js)"
          UI[Search Interface]
          DASH[Trend Dashboard]
          CHAT[AI Chat]
      end

      BD -->|Articles| SCRIPTS
      SCRIPTS -->|Store| META
      SCRIPTS -->|Embeddings| VEC

      UI --> API
      DASH --> API
      CHAT --> API

      API --> RAG
      RAG <-->|Search| VEC
      RAG -->|Query| META
      RAG -->|Generate| LLM
Loading

Local Setup

  1. Clone the repository:
git clone git@github.com:yukaty/tech-trend-tracker.git
cd tech-trend-tracker
  1. Configure environment variables:
cp .env.example .env
  1. Start backend services:
docker compose up --build
  1. Run frontend development server:
cd frontend
npm install
npm run dev

Future Plans

  • Additional data sources (RSS feeds, APIs)
  • Enhanced search accuracy
  • Advanced visualizations
  • Performance optimization

License

MIT License

Feel free to open issues and pull requests. All feedback and contributions are welcome!

About

An application that tracks technology trends from news articles.

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Contributors