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.
- PostgreSQL + pgvector
- AgentSDK + Google Gemini via ai-sdk adapter + Gemini Embeddings model
- Google Gen AI API Key
- OpenAI API Key for tracing feature
- NewsAPI key for article fetching
Stored in ./config/.env
- Spin up DB
make db.up npm run startornpm run tests