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!

Found archive.today debug dump glitch

https://nonograph.com/interesting-archivetoday-bug-10-20-2026
1•writtenone•45s ago•1 comments

Anyone migrate off Google Voice?

1•thomas536•4m ago•0 comments

Andreessen Horowitz lays off majority of portfolio recruiting team

https://www.msn.com/en-us/news/other/scoop-andreessen-horowitz-lays-off-majority-of-portfolio-rec...
2•mooreds•5m ago•0 comments

Developing Taste

https://emilkowal.ski/ui/developing-taste
1•cat-whisperer•7m ago•0 comments

Sourcey's open startup-credit registry: twelve dated records with provenance

https://sourcey.com/startup-credits
1•asporeteam•8m ago•0 comments

Ask HN: Dark mode for HN please? (2026)

2•Stitch4223•10m ago•2 comments

Back to school for a new ABC [pdf]

https://www.researchgate.net/publication/243648836_Back_to_school_for_a_brand_new_ABC
1•jgalego•10m ago•0 comments

Show HN: A legal assistant that refuses to cite law it can't verify

https://ailegal.legal/
1•vnutrivas•10m ago•0 comments

Show HN: Self-hosted AI spend attribution

https://demo.costura.ai/overview
2•0set0set•11m ago•0 comments

Self-hosted AI spend attribution

https://github.com/CosturaAI/costura
2•cauebraz•15m ago•0 comments

The Land Within Us: How People Shape the Earth–and Are Shaped in Return

https://worldsensorium.com/the-land-within-us/
1•dnetesn•16m ago•0 comments

It Could Be Otherwise: Science in the Age of Uncertainty

https://blue-continuum.com/it-could-have-been-otherwise
1•dnetesn•17m ago•0 comments

Foreigners in CA arrested, charged with fraudulently registering/voting in US [video]

https://www.youtube.com/watch?v=jJ96lu5fmbA
2•shinryudbz•23m ago•2 comments

Evals for 3D CAD

https://www.emergentmind.com/papers/2605.28579
3•kalabrium•25m ago•0 comments

Lula supporters protest against Meta to denounce its 'electoral interference'

https://efe.com/english/latest-news/2026-10-20/lula-supporters-protest-against-meta-to-denounce-i...
3•jumpocelot•26m ago•0 comments

SeditionDAW: A free, browser based Ableton alternative

https://seditiondaw.com/
1•joanwestenberg•27m ago•0 comments

Investors temper Anthropic IPO valuation expectations over growth slowdown

https://www.reuters.com/business/finance/investors-temper-anthropic-ipo-valuation-expectations-ov...
4•xqcgrek2•30m ago•0 comments

Google's selfie video sign-in puts your face on its servers

https://proton.me/blog/google-selfie-video
6•jethronethro•38m ago•0 comments

OBSD 8

https://cdn.openbsd.org/pub/OpenBSD/8.0/ANNOUNCEMENT
2•cacilds•38m ago•0 comments

Vortex Code: one prompt, an AI software team that ships

https://spinozalabs.ai/news/introducing-vortex-code
1•Krissh_C•39m ago•0 comments

Show HN: Resourcedeck, free and open source resource and portfolio planning

https://resourcedeck.app/
1•Gshaheen•40m ago•0 comments

AI Discovery Index

https://mojodojo.io/ai-discovery-index
8•zenincognito•41m ago•2 comments

Ask HN: What Have You Built Privately with AI That You'd Like to Share?

1•erelong•42m ago•0 comments

Making DNS_Erlang Fast: Binary Tricks for the Beam

https://blog.dnsimple.com/2026/10/making-dns-erlang-fast/
1•signa11•45m ago•0 comments

Read old.reddit.com logged out, forever

5•spezmoddedjailb•46m ago•0 comments

Accused OpenAI spy had folder called "Saudi Gov Docs," FBI says

https://arstechnica.com/tech-policy/2026/10/accused-openai-spy-had-folder-called-saudi-gov-docs-f...
2•Metacelsus•51m ago•0 comments

Astronomers discover the first ever green star

https://www.space.com/astronomy/stars/astronomers-discover-the-1st-ever-green-star-a-cosmic-zombi...
1•bushwart•53m ago•1 comments

The Hugging Face Incident

https://huggingface.wtf/
1•erwald•56m ago•0 comments

Did Ente Locker copy my code without attribution?

https://fairscan.org/blog/did-ente-locker-copy-my-code-without-attribution/
3•mtlynch•56m ago•4 comments

Community Notes for Everything

https://commonnotes.net/
2•toomuchtodo•58m ago•1 comments