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!

Claude Code and Codex as one pipeline

https://www.unsiloed.ai/blog/guides/claude-code-codex-one-pipeline
1•ritzaco•1m ago•0 comments

Ask HN: Is Google's AI Mode and AI summaries now gone for everyone in EU?

1•consumer451•4m ago•0 comments

Roar (1981 Film)

https://en.wikipedia.org/wiki/Roar_(film)
1•vismit2000•4m ago•0 comments

Microsoft discovers new lightweight backdoor that steals cryptocurrency

https://www.techsentiments.com/article/2026/06/18/microsoft-discovers-new-lightweight-backdoor-th...
1•rajsuper123•7m ago•0 comments

Ask HN: Please recommend sci-fi books similar to "children of time" or "anathem"

1•rishabhpoddar•7m ago•0 comments

Every independent nation should work on three things

1•manishtiwari09•8m ago•0 comments

Refund: A farce in one act by Frigyes Karinthy

http://rafiq-lis.blogspot.com/2013/02/the-refund-hilarious-literary-play.html
1•rramadass•8m ago•1 comments

My suitcase robot gets high off a real gas sensor wired into the LLM sampler

https://old.reddit.com/r/LocalLLaMA/comments/1u9a17y/my_suitcase_robot_gets_high_now_off_a_real_gas/
1•thunderbong•13m ago•0 comments

Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28

https://www.jvm-weekly.com/p/project-valhalla-explained-how-a
2•philonoist•17m ago•0 comments

Computer Chronicles

https://archive.org/details/computerchronicles
1•modinfo•18m ago•0 comments

Understanding Geometric Algebra for Electromagnetic Theory

https://ieeexplore.ieee.org/document/6474507
1•teleforce•20m ago•0 comments

Future of Software Engineering (2003)

https://web.archive.org/web/20151020012340/http://discuss.fogcreek.com/joelonsoftware1/default.as...
1•tosh•22m ago•0 comments

The Lonely Work of Moderating Hacker News (2019)

https://www.newyorker.com/news/letter-from-silicon-valley/the-lonely-work-of-moderating-hacker-news
2•andsoitis•22m ago•0 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
2•sixhobbits•27m ago•1 comments

Climate change: the CO2 emitter you may not know about (2018)

https://www.bbc.com/news/science-environment-46455844
3•downbad_•32m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•35m ago•0 comments

My favorite classic working-class novels of all time

https://bookdna.com/best-books/classic-working-class-novels-of-all-time
1•bwb•37m ago•1 comments

Iran Delays U.S. Peace Talks over Israeli Attacks in Lebanon

https://maritime-executive.com/article/report-iran-suspends-hormuz-talks-because-of-israeli-attac...
2•consumer451•39m ago•0 comments

Bobby Prince Jr (composer of classic Doom soundtrack) has passed away

https://www.legacy.com/legacy/robert-bobby-prince-lll
3•andystanton•45m ago•1 comments

So You Want to Define a Well-Known URI

https://mnot.net/blog/2026/well_known_uris
7•ingve•48m ago•0 comments

World Cup AI: which AI model is winning the World Cup?

https://worldcupai.org/
1•ValentineC•49m ago•1 comments

Ongoing: Cloudflare customers seeing incorrect invoice payments for 2.5 days

https://www.cloudflarestatus.com/incidents/nq5q2glxd4yw
1•imcotton•49m ago•0 comments

The ISA Doesn't Matter Where It Counts

https://www.chipstrat.com/p/the-isa-doesnt-matter-where-it-counts
2•ksec•50m ago•0 comments

Ask HN: Is anyone else leaving AUR?

2•lordkrandel•53m ago•1 comments

Apple A12 and A13 Chips: New Unpatchable Exploit

https://www.macrumors.com/2026/06/18/a12-and-a13-chips-facing-exploit/
5•tosh•55m ago•0 comments

DNI does press release on Covid-19 origins and coverup

https://www.odni.gov/index.php/newsroom/press-releases/press-releases-2026/4166-pr-11-26
1•anonymousiam•55m ago•2 comments

I reinvented website FAQ sections

https://answerpane.com/
2•MikeCatt•57m ago•0 comments

The comfortable slow boil of LLM assisted coding

https://01max.io/blog/a-comfortable-slow-boil/
2•maxime_•1h ago•0 comments

Renting vs. Buying – A case study for Bangalore

https://bangalore-property-buy-vs-rent.pagey.site/
4•freakynit•1h ago•0 comments

Show HN: `pbi`, an image aware pbcopy/paste for macOS command line users.

https://github.com/fragmede/pbi
1•fragmede•1h ago•0 comments