frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

An Enterprise-Level Retrieval-Augmented Generation System

https://comfyai.app/article/llm-applications/enterprise-level-rag-hands-on-practice-II
6•zljdanceholic•1y ago

Comments

zljdanceholic•1y ago
How can we search the wanted key information from 10,000+ pages of PDFs within 2.5 hours? For fact check, how do we implement it so that answers are backed by page-level references, minimizing hallucinations?

RAG-Challenge-2 is a great open-source project by Ilya Rice that ranked 1st at the Enterprise RAG Challenge, which has 4500+ lines of code for implementing a high-performing RAG system. It might seem overwhelming to newcomers who are just beginning to learn this technology. Therefore, to help you get started quickly—and to motivate myself to learn its ins and outs—I’ve created a complete tutorial on this.

We have a complete graph to explain its workflow where multiple tools are used: Docling for parsing PDFs, LangChain for chunking text, faiss for vectorization and similarity searching, and chatgpt for LLMs.

Besides, I also outline the codeflow, demonstrating the running logic involving multiple python files where starters can easily get lost. Different files are colored differently. The purpose of showing this is not letting you memorize all of these file relationships. It works better for you to check the source code yourself and use this as a reference if you find yourself lost in the code.

The original project of Ilya Rice design its RAG system for answering questions of annual reports from companies, so he only designed three types of question response format for that challenge: a name, a number, or a boolean. But to ask questions about technical stuff, we absolutely ask general questions like How does RoPE work? to know about some concepts and the like Therefore, I further modify the system logic to fit this need by customizing an AnswerWithRAGContextExplanationPrompt class and automatically matching the most related chapter and corresponding pages via searching through all faiss databases (only retrieve the top-1) The final performance is demonstrated below (not cherry-picked, only tested once).

- What's the steps to train a nanoGPT from scratch? The answer is:

Training nanoGPT from scratch involves several clearly defined steps. First, set up the environment by installing necessary libraries, using either Anaconda or Google Colab, and then download the dataset (e.g., tinyShakespeare). Next, tokenize the text into numerical representations and split the data into training and validation sets. Define the model architecture including token/positional embeddings, transformer blocks with multi-head self-attention and feed-forward networks, and layer normalization. Configure training hyperparameters and set up an optimizer (such as AdamW). Proceed with a training loop that performs forward passes, computes loss, backpropagates, and updates parameters, while periodically evaluating performance on both training and validation data. Finally, use the trained model to generate new text from a given context.

All code are provided on Colab and the tutorial is referenced here. Hope this helps!

Why I'm Joining the Board of Dreamdata

https://www.kellblog.com/why-im-joining-the-board-of-dreamdata/
1•doppp•4m ago•0 comments

SpaceX IPO available to Fidelity customers with as little as $2k

https://www.fidelity.com/learning-center/trading-investing/spacex-ipo-explained
1•dnw•4m ago•1 comments

The Weather Machine (2008)

https://events.foresight.org/the-weather-machine/
1•zetalyrae•4m ago•0 comments

Agentic systems for what comes next

https://kenn.io/
1•pbd•9m ago•0 comments

Validity of the EJamar Game Controller for Tracking Hand Rehabilitation

https://www.mdpi.com/2673-4117/7/5/197
1•PaulHoule•15m ago•0 comments

Boeing and Air India Escaped Scrutiny After the AI171 Crash

https://caravanmagazine.in/crime/air-india-crash-aaib-boeing-pilot
1•ms7892•16m ago•0 comments

AI assistant shouldn't have your passwords

https://bitwarden.com/blog/how-bitwarden-helps-secure-agentic-ai-access-to-your-credentials/
1•adm4•20m ago•0 comments

Basecamp CLI and Agent Skill: Agent first, agent native

https://basecamp.com/agents
1•doppp•21m ago•0 comments

Proposal would block solar storms with orbital 'airbag'

https://www.science.org/content/article/radical-proposal-would-block-solar-storms-orbital-airbag
1•gmays•25m ago•0 comments

Anthropic calls for global pause in AI development before humans lose control

https://siliconangle.com/2026/06/04/anthropic-calls-global-pause-ai-development-humans-lose-control/
2•patrickdavey•26m ago•1 comments

"News Man Bad": A Personnel Memo from Animal, Your Editor-in-Chief

https://www.mcsweeneys.net/articles/news-man-bad-a-personnel-memo-from-animal-your-editor-in-chief
1•Geekette•26m ago•0 comments

Scala: An Experiment That Changed Programming – Martin Odersky – The Marco Show

https://www.youtube.com/watch?v=Xn_YpUtXWT4
2•birdculture•27m ago•0 comments

My competitors have flawed products but I can't get traction

2•saveitincork•33m ago•0 comments

LLM AI Chatbots are letting me down every single day

https://umrashrf.github.io/llm-ai-chatbots-are-letting-me-down-every-single-day/
2•postbase•36m ago•0 comments

Bumblebees spontaneously solve problems – Science News [video]

https://www.youtube.com/watch?v=B77Hb2SKJZo
2•hheikinh•43m ago•0 comments

Cloudflare: bots have passed human traffic online, a year faster than expected

https://www.tomshardware.com/tech-industry/artificial-intelligence/bots-have-now-passed-human-tra...
3•spenvo•44m ago•1 comments

Bumblebees show advanced problem-solving skills in new experiment

https://www.cnn.com/2026/06/04/science/bumble-bees-insight-problem-solving
4•hheikinh•44m ago•0 comments

The Kyle Kingsbury Podcast Podcast – Episode 1 – Alex Dripchak

https://aphyr.com/posts/422-the-kyle-kingsbury-podcast-podcast-episode-1-alex-dripchak
2•yurivish•44m ago•0 comments

'Aren't the Organs a Silver Lining?'

https://longreads.com/2026/05/19/fentanyl-opioids-organ-donation-arizona-oneill/
2•gmays•45m ago•0 comments

Is LinkedIn Entering Its Post-Cringe Era?

https://www.nytimes.com/2026/06/04/business/linkedin-social-media-influencers.html
3•1vuio0pswjnm7•47m ago•1 comments

Show HN: Laravel Octane Benchmark (Swoole, RoadRunner, FrankenPHP)

https://terrylinooo.github.io/laravel-octane-benchmark/
2•terrylinooo•50m ago•0 comments

Unicode Fonts and Tools for X11

https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
3•kristianp•51m ago•0 comments

Jo – Secure Programming for the AI Era

https://jo-lang.org/blog/2026-06-04-introducing-jo.html
2•rguiscard•53m ago•0 comments

Easy Writer: On Ted Geltner's Biography of Denis Johnson

https://www.metropolitanreview.org/p/easy-writer
2•benbreen•54m ago•0 comments

In a First, Scientists Precisely Edit Human Embryo Genes

https://www.nytimes.com/2026/06/04/science/embryos-gene-editing-crispr.html
3•bonsai_spool•55m ago•0 comments

Show HN: Bonsai –- Using agentic AI / browser / memory to replace ChatGPT

https://drive.google.com/drive/folders/1YUQ3tmcBSLEyBKLi5JdJgmod9mqXFTgl
2•coolwulf•58m ago•0 comments

US adult cigarette smoking rate hits another all-time low

https://apnews.com/article/adult-smoking-cigarette-decline-survey-3dfc9d82fcc106e49a5706819d438239
8•paulpauper•1h ago•0 comments

The small businesses trying to prop up the tandem bike industry

https://thehustle.co/newsletters/03-06-2026
2•paulpauper•1h ago•0 comments

Show HN: A simple bookmark manager for Mac and iOS

https://bendansby.com/apps/markwell.html
3•webwielder2•1h ago•0 comments

Does banking consolidation harm households?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6851099
2•paulpauper•1h ago•0 comments