frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo ago

Comments

zljdanceholic•10mo 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!

Polymarket isn't trustless

https://iter.ca/post/polymarket-trust/
3•smitop•2m ago•0 comments

Show HN: Score any URL against a quality profile with one curl command

https://qed.systems
1•onebit0fme•2m ago•0 comments

Instagram drops end-to-end encrypted chats

https://proton.me/blog/instagram-end-to-end-encryption
3•taubek•2m ago•0 comments

Project Naawi

https://project-naawi.lovable.app
2•cc13cc13•3m ago•1 comments

Show HN: BetterGit – Free, simple, no frills, Git GUI

https://www.satishmaha.com/BetterGit/
1•aggregator-ios•6m ago•0 comments

KeepThisFile

https://keepthisfile.com/
1•linhns•6m ago•0 comments

I gave an AI $50 and full autonomy for one day. Here's what it built

https://powersync-hackathon-topaz.vercel.app
1•axiom-agent•6m ago•0 comments

The Backlash Against AI Devices That Are Always Watching

https://www.wsj.com/tech/ai/the-backlash-against-ai-devices-that-are-always-watching-bb556f8d
1•1vuio0pswjnm7•6m ago•0 comments

Firefox agent bridge: Agent harness controls Firefox

https://github.com/1jehuang/firefox-agent-bridge
1•jeremyh1•6m ago•0 comments

Sweden hunts protected lynx amid unresolved EU complaint over legality

https://www.brusselstimes.com/1927395/sweden-hunts-protected-lynx-amid-unresolved-eu-complaint-ov...
1•linhns•7m ago•0 comments

C4-Auto – CLI that auto-generates C4 architecture docs for TypeScript

https://github.com/jonverrier/C4-Auto
1•Jonverrier•8m ago•1 comments

Woman sneezes out maggots after fly larvae get trapped in her deviated septum

https://arstechnica.com/health/2026/03/woman-sneezes-out-maggots-after-fly-larvae-get-trapped-in-...
1•canucker2016•8m ago•0 comments

A Hard Reset, and What Comes Next: Digg – People. Places. Things

https://digg.com/?=reset
1•DocFeind•10m ago•1 comments

Every spreadsheet should be an app

https://www.fillout.com/blog/build-app-from-spreadsheet
1•dominicwhyte•11m ago•0 comments

Future After the AI Revolution

1•vasantharam•12m ago•0 comments

Apple cuts China App Store commission fees after government pressure

https://www.reuters.com/world/china/apple-cuts-china-app-store-commission-fees-after-government-p...
2•1vuio0pswjnm7•14m ago•0 comments

Ask HN: Why don't they make a big ol pipeline to bypass Hormuz?

1•JojoFatsani•15m ago•1 comments

Adobe reaches $150M settlement of US lawsuit over termination fees

https://www.reuters.com/world/adobe-pay-75-million-resolve-us-lawsuit-over-fees-subscription-canc...
1•tartoran•18m ago•0 comments

Good Old Pointers

https://medium.com/@rsx11/good-old-pointers-cfe8e2727e51
1•g0xA52A2A•18m ago•0 comments

Show HN: I built a release tracker for my indie apps

https://drobinin.com/apps/docket/
2•valzevul•19m ago•0 comments

How China is wooing Paraguay's political class away from longtime ally Taiwan

https://www.reuters.com/world/china/how-china-is-wooing-paraguays-political-class-away-longtime-a...
1•tartoran•19m ago•0 comments

The Annotated JEPA

https://elonlit.com/scrivings/the-annotated-jepa/
1•brandonb•20m ago•0 comments

Why Cats Always Land on Their Feet

https://nautil.us/why-cats-always-land-on-their-feet-1278922
1•Brajeshwar•20m ago•0 comments

Show HN: Degen craps fans, feedback requested on my simulator

https://infinitecraps.com/
1•nutwinkle•20m ago•0 comments

Below 40? You Should Be Getting Screened for Cholesterol, Heart Attack Risks

https://www.wsj.com/health/wellness/below-40-you-should-already-be-getting-screened-for-cholester...
2•brandonb•21m ago•0 comments

Toobits – 100 free online tools and calculators

https://toobits.io
1•haukurmk•23m ago•0 comments

Tournament of Books

https://www.tournamentofbooks.com
1•cainxinth•23m ago•0 comments

The Talent Pipeline Is Collapsing. Your Team Will Feel It Next

https://newsletter.thelongcommit.com/p/the-talent-pipeline-is-collapsing
1•bookofjoe•24m ago•0 comments

Jürgen Habermas, influential German philosopher, dies at 96

https://apnews.com/article/juergen-habermas-dead-germany-2b541721af6cb19abfaa923359d091b5
3•mitchbob•25m ago•0 comments

TreeTime 2026.1 Released

https://codeberg.org/jkanev/treetime/releases/tag/2026.1
2•jkanev•28m ago•1 comments