Supporting Member
- Joined
- Mar 19, 2024
- Messages
- 2,583
- Thread Author
- #1
It's the summer before my freshman year of college, and I've been learning about neural networks and machine learning. It's mostly pretty dry stuff once you start reading papers, but learning it lets you do some interesting things. At some point, I have to entertain myself. What to do?
I don't have the compute to train much of any model - the tiny, few-hundred-thousand parameter ones I've written already take ages to train on my laptop. Instead, I decided to try a different kind of software.
I scraped BAR for post-2020 threads, broke them into snippets, and put them in a local vector database. I then wrapped an already-trained small LLM (AI chatbot) from Google in a bit of software: when it's asked a question, I locate and feed it relevant snippets from the vector database in a process called retrieval-augmented generation (RAG).
The result is that the very small, bad-at-reefing LLM stops "making things up" for the most part, because it's fed the information relevant to the question before it produces a response. After each response, it provides links to the exact thread the information came from.
This is a personal project, pretty rudimentary stuff and hosted locally (on my computer only, basically). I won't be putting this on the web because 1) I can't pay for the hosting and compute, and 2) this is a toy project, not polished enough to put online. It was originally was entirely CLI-based, and I only threw together a UI with Claude Code at the last minute. I know similar professional services exist, like NotebookLM. But I did think it was pretty fun to build anyway and wanted to share!
I don't have the compute to train much of any model - the tiny, few-hundred-thousand parameter ones I've written already take ages to train on my laptop. Instead, I decided to try a different kind of software.
I scraped BAR for post-2020 threads, broke them into snippets, and put them in a local vector database. I then wrapped an already-trained small LLM (AI chatbot) from Google in a bit of software: when it's asked a question, I locate and feed it relevant snippets from the vector database in a process called retrieval-augmented generation (RAG).
The result is that the very small, bad-at-reefing LLM stops "making things up" for the most part, because it's fed the information relevant to the question before it produces a response. After each response, it provides links to the exact thread the information came from.
This is a personal project, pretty rudimentary stuff and hosted locally (on my computer only, basically). I won't be putting this on the web because 1) I can't pay for the hosting and compute, and 2) this is a toy project, not polished enough to put online. It was originally was entirely CLI-based, and I only threw together a UI with Claude Code at the last minute. I know similar professional services exist, like NotebookLM. But I did think it was pretty fun to build anyway and wanted to share!