Build a chat assistant that answers questions about today's market news with sources.
Track what is driving a specific stock ticker using recent headlines.
Add a cited answer search feature to a finance dashboard.
Prototype a retrieval augmented generation system using pgvector.
| kaniikaaaa/financerag | 0xhassaan/nn-from-scratch | 3ks/embedoc | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Python | Python | Python |
| Last pushed | — | — | 2023-06-08 |
| Maintenance | — | — | Dormant |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 3/5 | 4/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a local PostgreSQL with the pgvector extension and an OpenAI API key.
FinanceRAG is a tool that answers questions about recent stock market news by pulling in real financial headlines and citing its sources. Instead of relying on a language model's built in knowledge, which can be outdated or made up, this project builds its own small search engine over fresh news and only answers using what it finds there. On a schedule, the system pulls headlines from Yahoo Finance and converts each one into a numerical representation called an embedding, using an OpenAI embedding model. These are stored in PostgreSQL with a plugin called pgvector, which lets the database search by meaning instead of by exact words. When someone asks a question like what is driving NVDA today, the system finds the most relevant recent headlines and blends how closely they match the question with how recently they were published, so a question about today's news actually returns today's news rather than something from last month. Every answer comes with its sources: the article title, publish time, and ticker symbol. If the system cannot find supporting articles, it refuses to answer rather than making something up. Because the news is pre processed and stored ahead of time, answering a question only takes one database lookup and one call to GPT-4o-mini, so responses come back quickly. The project is built with FastAPI for the web server, PostgreSQL with pgvector for storage and search, SQLAlchemy for database access, and yfinance for pulling the news data. Setting it up means cloning the repository, installing Python dependencies, adding an OpenAI API key and a database connection string, then running a couple of setup scripts before starting the server. It exposes a single main endpoint that accepts a question and returns an answer along with its cited sources. It is released under the MIT license, which allows free use including commercial use.
A tool that answers questions about recent stock market news using fresh Yahoo Finance headlines and always cites its sources.
Mainly Python. The stack also includes Python, FastAPI, PostgreSQL.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.