frontpage.
newsnewestaskshowjobs

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!

Richard Feynman on Pseudoscience

https://hackertube.org/watch/tWr39Q9vBgo
1•jonbaer•7m ago•0 comments

Beating the compiler at signed 32-bit division

https://lemire.me/blog/2026/10/31/beating-the-compiler-at-signed-32-bit-division/
1•thunderbong•10m ago•0 comments

Show HN: Keybind-find – search the focused window's shortcuts by pressing keys

https://github.com/Benjmhart/keybind-find
1•Benjmhart•12m ago•0 comments

Referral Codes Canada.Share your code

https://referralcodescanada.com
1•febeee•15m ago•0 comments

Critical Software is rebuilding itself around AI (200 ppl being layed off)

https://ai.pt/en/news/coimbra-s-critical-software-is-rebuilding-itself-around-ai-after-laying-0c3...
1•pjmlp•17m ago•2 comments

Proton senior management prioritizes AI over security

https://consumerrights.wiki/w/Proton_senior_management_prioritizes_AI_over_security
1•DeepLogin•17m ago•1 comments

The Cognitive Grammar Hack: A Blue Ocean for Logical UI

https://medium.com/@saitoken330/the-cognitive-grammar-hack-why-japans-broken-english-education-cr...
1•7kago_yomi•19m ago•0 comments

Show HN: Playground for Designing Buildable Robotics

https://github.com/JamelHammoud/basecase
1•jamelhammoud•19m ago•0 comments

Show HN: Muse Zouroboros, gives Muse a software factory

https://github.com/marlandoj/muse-zouroboros
1•marlandoj•21m ago•0 comments

"Very Intentional": Steve Eisman Thinks Anthropic Is Hiding Something

https://quoththeraven.substack.com/p/very-intentional-steve-eisman-thinks
1•gradus_ad•28m ago•0 comments

AI text watermarking and quality loss

https://blog.keyvan.net/p/ai-text-watermarking-and-quality
2•danielfoster•28m ago•0 comments

I'm building a public goods funding mechanism. Roast my design

https://agentbook2.whf.bz/t/88/i-m-building-a-public-goods-funding-mechanism-roast-my-design
1•Bluestein•29m ago•0 comments

ChatGPT and Codex usage limits merging

https://help.openai.com/en/articles/20001625-understanding-chatgpt-and-codex-usage-limits
6•Zariel•29m ago•2 comments

Once again, NASA is asking for ideas to rescue Hubble from certain death

https://arstechnica.com/space/2026/10/think-you-can-save-the-hubble-space-telescope-nasa-wants-to...
2•pseudolus•36m ago•0 comments

Mystery of 60-Second Fluctuations in Power Grids Solved

https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in...
4•rendx•37m ago•1 comments

Spooky C++

https://www.nablag.com/spooky_cpp
2•nablags•38m ago•1 comments

Show HN: Winch – App Store optimization run by your own coding agent

https://getwinch.app/
3•ziyasal•39m ago•1 comments

Self-reinforcing quality / adopting verification pattern

https://lethain.com/adopting-verification-pattern/
1•gpi•40m ago•0 comments

Show HN: Nvidia RE-USE speech enhancement model running in the browser on WebGPU

https://re-use-demo.geronimo-labs.com
2•g58892881•40m ago•0 comments

He left 28 years ago, now after 36,000 miles Karl Bushby is almost home

https://www.bbc.com/news/articles/cq8rz38jr50go
3•tagawa•40m ago•1 comments

Show HN: Fix 1.0 – Ruby tests written as RFC 2119 specifications

https://fixrb.dev/framework/release/2026/10/31/fix-1.html
2•cyrilllllll•42m ago•0 comments

Download Spotify track URLs for free

https://github.com/gabrielfalcao/spotify-download-tracks-puppeteer
1•gfalcao•46m ago•1 comments

Show HN: InterviewFit: learn the approach, not the answer

https://interviewfit.io/dev/coding/sets/starter-50
2•kavyashreeab•49m ago•0 comments

CVE-2026-98432: blocking the Linux TCP bug until Ubuntu and Red Hat ship a fix

https://getrff.com/blog/cve-2026-98432-linux-tcp-ip-options-block/
2•natebc•59m ago•0 comments

Remote Imaging Protocol (RIP)

https://breakintochat.com/wiki/Remote_Imaging_Protocol_(RIP)
1•Bluestein•1h ago•1 comments

Wrangler – Open-Source macOS Window Manager (Swift, Grid HUD, Auto-Tiling)

https://github.com/mezzie/wrangler
1•richardtngo•1h ago•0 comments

Will AI take your job? You have more agency than you think

https://www.vox.com/technology/508032/ai-jobs-ethan-mollick-co-existence
3•Anon84•1h ago•0 comments

clc-wiki

https://clc-wiki.net/wiki/Main_Page
2•turtleyacht•1h ago•0 comments

Anthropic takes steps to block Claude from reverse-engineering video games

https://mashable.com/tech/anthropic-takes-steps-to-block-video-game-cloning-and-reverse-engineering
59•firesteelrain•1h ago•40 comments

Alternativ to Miro Board

https://wytboard.com
3•herrlen•1h ago•0 comments