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!

AI and the Rise of Cognitive Overload

https://www.psychologytoday.com/us/blog/the-mindful-epidemiologist/202603/ai-and-the-rise-of-cogn...
1•abixb•1m ago•0 comments

AI Science vs. Human Science

https://lacuna.tiptreesystems.com/paper/ai-science-vs-human-science/art_3901430d6c0e4bddb28436210...
1•martincsweiss•4m ago•0 comments

Knowledge graphs could help orgs respond to new laws

https://lexifina.com/blog/knowledge-graphs-update-firms-for-new-laws
1•alansaber•4m ago•0 comments

ICE wants robot dogs. Boston Dynamics' workers urge company to 'cancel the sale'

https://www.wbur.org/news/2026/10/23/boston-dynamics-employees-petition-dhs
3•greyface-•5m ago•0 comments

Gamerscore

https://systemdrift.neocities.org/blog/on-gamerscore
1•myrrhman•7m ago•0 comments

How the 'math wars' in Palo Alto reflect a raging nationwide debate

https://www.sfchronicle.com/bayarea/article/math-class-palo-alto-school-district-22478798.php
2•randycupertino•15m ago•1 comments

LiDAR Lens: web viewer for 1M Lidar terrain across England and Wales

https://lidarlens.sarsen.org
1•winterswift•17m ago•0 comments

Chinese research vessels loiter near undersea cables more than any other nation

https://www.tomshardware.com/tech-industry/chinese-research-vessels-loiter-near-pacific-undersea-...
3•beansovertoast•20m ago•0 comments

The 'Buy, Borrow and Die' Wealth Strategy Has Become a $5T Market

https://www.wsj.com/finance/the-buy-borrow-and-die-wealth-strategy-has-become-a-5-trillion-market...
1•tysone•25m ago•0 comments

Accessory dwelling unit ruling could be a boon to California builders

https://www.sfchronicle.com/politics/article/adu-ruling-boon-california-builders-22495410.php
1•littlexsparkee•28m ago•0 comments

Show HN: An MCP server that writes and sings songs in 76 languages

https://www.songupai.com/mcp-server
1•rakim777•30m ago•0 comments

How Australia Built World’s Biggest Battery-Powered Ferry

https://www.bloomberg.com/news/features/2026-10-26/an-83-year-old-shipbuilder-is-delivering-era-o...
2•toomuchtodo•33m ago•1 comments

OpenXR Spatial Container Extensions Standardize Volumetric App Multitasking

https://www.uploadvr.com/openxr-spatial-container-extensions-standardize-volumetric-app-multitask...
1•andsoitis•34m ago•0 comments

What to do if you discover AI models trained using your copywrighted book?

6•andrea81•36m ago•3 comments

These Neurons Control Territorial Claims

https://edwardbenson.com/tinkering/neuron-explorer
1•eob•37m ago•0 comments

GLM-5.3 Sometimes Considers How Train-Time Actions Shape Future Behavior

https://www.lesswrong.com/posts/R5g8YT25G9DXJJ48n/glm-5-3-sometimes-considers-how-train-time-acti...
2•eatitraw•38m ago•0 comments

16-bit Windows (Windows 1.x, 2.x, 3.0, 3.1, etc.) on 64-bit Windows

https://github.com/otya128/winevdm
11•doener•40m ago•1 comments

Do you want to keep your job? Stop feeding AI models

3•andrea81•41m ago•3 comments

Initial Support for the Apple M4 and Apple A18 Pro Make It into Linux 7.4

https://www.phoronix.com/news/Linux-7.4-SoCs
5•doener•42m ago•0 comments

Show HN: Libtmux-ts 0.1 – tmux library for Node.js, TypeScript, bun

https://github.com/libtmux/libtmux-ts
1•tony•45m ago•0 comments

AMA – "Final Fantasy: The Spirits Within", milestone in CGI, is 25 years old

https://old.reddit.com/r/FinalFantasy/comments/1xgd2qy/ama_final_fantasy_the_spirits_within_miles...
2•kaveh808•45m ago•0 comments

Engineering Explained: I Fact-Checked Every Stunt in the Tesla Roadster Reveal [video]

https://www.youtube.com/watch?v=hJSbro3EBnY
2•lathiat•47m ago•3 comments

Let your agent talk to mine

https://blog.danielbrain.ai/let-your-agent-talk-to-mine
1•bluepnume•47m ago•0 comments

AI wasn't overhyped. Almost everyone underestimated it

https://benjamintodd.substack.com/p/almost-every-ai-forecast-of-the-last
2•gmays•48m ago•1 comments

Show HN: Sparta – A $799 starting point before Vanta

https://marathon.sh/sparta
1•shotgunsparkle•51m ago•1 comments

Show HN: Torsher – a self-hosted, TV-first media center in one container

https://github.com/torsher-app/torsher
1•antonreshetov•54m ago•0 comments

The "let-it-rip" camp is wrong on AI

https://economist.com/by-invitation/2026/10/26/the-let-it-rip-camp-is-wrong-on-ai
1•andsoitis•54m ago•1 comments

Show HN: Marlow – Build full-stack apps with AI and own your code

https://marlow.app/beta
1•kristapsmarlow•55m ago•1 comments

Request for Immediate Release of Yang–Mills AI Output

https://agmai.org/#request-immediate-release
1•kerim-ca•1h ago•0 comments

From RTL and No-RTL to GDS in 3 Weeks

https://www.ustcpetergu.com/MyBlog/experience/2026/10/10/from-rtl-and-no-rtl-to-gds.html
1•paaloeye•1h ago•1 comments