Skip to content

mshaa/sentiment-tracker

Repository files navigation

Sentiment Tracker

OpenAI Agent SDK orchestrated workflow for tracking sentiment changes of a topic over time. An agent controls the process of fetching remote API, assessing, and storing data. Uses RAG vector embeddings to find semantically similar articles in the locally populated storage.

Tech

  • PostgreSQL + pgvector
  • AgentSDK + Google Gemini via ai-sdk adapter + Gemini Embeddings model

Keys

  • Google Gen AI API Key
  • OpenAI API Key for tracing feature
  • NewsAPI key for article fetching

Stored in ./config/.env

Run

  1. Spin up DB make db.up
  2. npm run start or npm run tests

Diagram

Orchestration

About

Agent SDK workflow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published