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!

A Critical Approach of ChatGPT's Impact on Everyday Life

https://link.springer.com/chapter/10.1007/978-3-032-31732-2_9
1•geox•4m ago•0 comments

Optimal NYC Neighborhood Locator

https://www.jean.land/nyc-apts
1•imustachyou•4m ago•0 comments

FlowG: Turning Your Logs into Metrics

https://flowg.cloud/blog/logs-into-metrics
1•linkdd•5m ago•0 comments

Show HN: Play Tetris in the terminal (solo and pvp)

https://github.com/backnotprop/tuitetris
1•ramoz•6m ago•0 comments

New x86 CPUID Entry For "EVOLUTIONARY"

https://sandpile.org/x86/cpuid.htm#leaf_0000_0000h
1•ruik•6m ago•0 comments

Hypotheses

https://hypotheses.org/
2•jruohonen•7m ago•0 comments

Interviews with key Python developers from the first 25 years

https://gvanrossum.github.io/interviews/index.html
2•tosh•12m ago•0 comments

Devs to Anthropic, OpenAI, Cursor, and friends Make security and privacy default

https://www.theregister.com/ai-and-ml/2026/08/08/devs-to-anthropic-openai-cursor-and-friends-make...
1•Bender•15m ago•0 comments

Show HN: Rollcall – Simulated Film Development on iPhone with Shared Rolls

https://rollcall.nicksavarese.com/
1•nickooo•16m ago•0 comments

Show HN: AURcade – A tiny self-hosted Git service using cgit and SSH

https://github.com/skorotkiewicz/aurcade
1•modinfo•16m ago•0 comments

Keeping Master Green at Scale

https://dl.acm.org/doi/10.1145/3302424.3303970
2•handfuloflight•19m ago•0 comments

Do the scoring rules decide the winner? 211,080 predictions re-scored five ways

https://beteamapp.com/research/prediction-league-scoring-systems/
1•beteam555•21m ago•0 comments

Pokemon Red/Blue/Yellow native recompilation with mods

https://github.com/bryanthaboi/gen1recomp
1•satvikpendem•24m ago•1 comments

Flock CEO Tailed by PI to Ensure No Crimes or Cheating on Wife

https://ipvm.com/reports/priv-invest-flock-ceo
2•jhonovich•26m ago•0 comments

AI Is on Its Last Legs [video]

https://www.youtube.com/watch?v=zdsoe_OsnHw
1•Bender•26m ago•0 comments

Hims and Hers sent user health data to social media giants bombshell FTC lawsuit

https://nypost.com/2026/07/29/business/hims-hers-sent-users-health-data-to-social-media-giants-de...
4•randycupertino•28m ago•1 comments

Barry's Economics: The Science of the Immigration Grift [video]

https://www.youtube.com/watch?v=_OWqzhwsWXM
1•kklisura•28m ago•0 comments

Jorge – minimal site generator with Markdown and org-mode support

https://github.com/facundoolano/jorge
1•facundo_olano•29m ago•0 comments

Large-Scale Code Refactoring with AI

https://swiftace.org/posts/large-scale-code-refactoring-with-ai
1•aakashns•30m ago•0 comments

Can you make ChatGPT follow instructions?

https://ramblingafter.substack.com/p/can-you-make-chatgpt-follow-instructions
1•paulpauper•31m ago•0 comments

Towards a Liberatory Technology, Murray Bookchin (1965)

https://theanarchistlibrary.org/library/lewis-herber-murray-bookchin-towards-a-liberatory-technology
1•mxmilkiib•31m ago•0 comments

The Seam Is the Label

https://vuvko.net/blog/patched-objects/
1•vuvko•32m ago•0 comments

AI Workers Ask U.S. Government for Tools to Slow AI Before a Crisis

https://www.ainews.com/p/ai-workers-us-government-tools-slow-ai-before-crisis
1•ashurandi•34m ago•0 comments

Fibonacci Recursion Drone Synthesizer

https://github.com/wraithsys/fibonacci-synth
2•wraithsys•37m ago•0 comments

What I did in the hedonium shockwave, by Emma, age six and a half

https://www.lesswrong.com/posts/rgXQuG8KXtxugSG6H/what-i-did-in-the-hedonium-shockwave-by-emma-ag...
2•paulpauper•39m ago•0 comments

5% public sample of provenanced OT/ICS security training datasets

https://huggingface.co/datasets/Lateos/Defensive-LLM
2•leochong•39m ago•0 comments

Semiconductor Fabs IV: The Safety

https://nomagicpill.substack.com/p/semiconductor-fabs-iv-the-safety
2•paulpauper•40m ago•0 comments

A Philosophy for AI Agents

https://ideal.iroha1203.dev/a-philosophy-for-ai-agents-1d743e970853
2•iroha1203•40m ago•0 comments

How to lead engineers who don't report to you

https://www.softwareengineeringtimes.com/p/how-to-lead-engineers-who-dont-report
2•RyanSMurphyTech•40m ago•3 comments

New Observatory Captures More Than Half a Million Galaxies in a Single Image

https://nautil.us/new-observatory-captures-more-than-half-a-million-galaxies-in-a-single-image-12...
3•Brajeshwar•42m ago•0 comments