News for hackers. Stuff that matters.

evanhu_

Show HN: Transpose Spotify audio and isolate vocals/instruments in realtime

https://github.com/evanhu1/transposify

Sharing a macOS menu-bar app I made that lets you transpose and separate instrument tracks from Spotify songs in realtime.Uses Rubberband engine pitch shifting with formant preservation to avoid the ogre-like sound of pitching down, and HTDemucs converted to Core ML (NN model) to do live audio separation via sliding audio windows.I think this is the best tool of its kind (lowest latency,...

( Read More... | no comments | on HN )
Re:The new grads are not okay on Sunday May 03, 2026 @09:06PM (#48003433)
I don't use that one!
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @01:18PM (#38724345)
Thank you so much, yes I will have that up soon as well
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @02:00AM (#38717827)
I did try that at first, it was hard to parse through the HTML code and organize into logical sections (authors, references, abstract) and then clean up the text to prepare it optimally for chunking and embedding. Once I found GROBID I just went with that route because it handled all that for me.
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @01:48AM (#38717773)
There is a cache! You hit a new PDF but at least you will not have to wait for that one again ;)
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @01:03AM (#38717482)
Definitely I'll move to the LaTeX source code instead of a PDF backend since that allows better support for non textual data that gets poorly scraped by GROBID. That is a really cool development I didn't know about, also theres https://ar5iv.labs.arxiv.org/ which already has most arXiv papers as HTML documents. I chose GROBID because they not only parse the PDF but organize the text into logical sections for me (Intro, abstract, references) which I didn't want to manually do with heuristics that I'd have to devise.
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @01:00AM (#38717466)
Oops sorry for the miscommunication, actually you don't need to enter an API key for now. Feel free to just try it out!
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @12:57AM (#38717445)
Thank you :). I updated the README to have some more explanation of the steps.

The chunking algorithm chunks by logical section (intro, abstract, authors, etc.) and also utilizes recursive subdivision chunking (chunk at 512 characters, then 256, then 128...). It is quite naive still but it works OK for now. An improvement would perhaps involve more advanced techniques like knowledge graph precomputation.

Reranking works by instead of embedding each text chunk as a vector and performing cosine similarity nearest neighbor search, you use a Cross-Encoder model that compares two texts and outputs a similarity score. Specifically, I chose Cohere's Reranker that specializes in comparing Query and Answer chunk pairs.

Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @12:54AM (#38717421)
Thank you! Thanks for pointing that out, since the underlying RAG is rather naive (simple embedding cosine similarity lookup, as opposed to knowledge graph / advanced techniques), I opted to embed both "small" (512 character and below) chunks as well as entire section chunks (embedding the entire introduction) in order to support questions such as "Please summarize the introduction". Since I also use 5 chunks for each context, I suspect this can add up to a massive amount on papers with huge sections.
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @12:29AM (#38717299)
Yes! I'll set up talk2biorxiv.org very soon as it would be simple to port over. I also plan on making the underlying research PDF RAG framework available as an independent module
Re:Show HN: Talk to any ArXiv paper just by changing the URL on Thursday December 21, 2023 @12:26AM (#38717284)
I spent forever looking at various PDF parsing solutions like Unstructured, and eventually stumbled across GROBID, which was an absolute perfect fit since it's entirely made for scientific papers and has header/section level segmentation capabilities (splitting the paper into Abstract, Introduction, References, etc.) It's lightweight and fast too!

Show HN: Talk to any ArXiv paper just by changing the URL

https://github.com/evanhu1/talk2arxiv

Hello HN, Talk2Arxiv is a small open-source RAG application I've been building for a few weeks. To use it just prepend any arxiv.org link with 'talk2' to load the paper into a responsive RAG chat application (e.g. www.arxiv.org/abs/1706.03762 -> www.talk2arxiv.org/abs/1706.03762).All implementation details are in the GitHub. Currently, because I've opted to extract text from the PDF of the...

( Read More... | 73 comments | 5 points | on HN )
I'm super impressed with what you've managed to create, do you have any further plans with this project? I'm curious now that it's finished and documented to such an extent will you try to bring it publicity and actual usage or was this just a passion project. Thanks