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

Comments

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

Chinese carmaker patents voice-controlled 'in-vehicle toilet'

https://www.bbc.com/news/articles/c1l92yv4mydo
1•1659447091•2m ago•0 comments

The rise of malicious repositories on GitHub

https://rushter.com/blog/github-malware/
1•prakashqwerty•4m ago•0 comments

Fret is a GPU-first Rust UI framework

https://github.com/Latias94/fret
1•sagacity•4m ago•0 comments

FIM – Linux framebuffer image viewer

https://www.nongnu.org/fbi-improved/
1•Mr_Minderbinder•7m ago•0 comments

Show HN: I built a Twitch social network

https://chattr.online/login
1•michaelbrooks•8m ago•0 comments

Show HN: Real-time aviation Pirep dashboard built on Cloudflare Workers and D1

https://github.com/Jay9185/PIREP
1•jerr9185•10m ago•0 comments

Simplifying Two Millennium Prize Problems

https://metamagic.substack.com/p/simplifying-two-millennium-prize
1•r0ze-at-hn•12m ago•0 comments

FB >> HTTPS://Www.facebook.com/JetterixPressureNozzleUnitedKingdom/

https://www.facebook.com/JetterixPressureNozzleUnitedKingdom
1•natashawonk•14m ago•0 comments

AI images are being used in insurance scams

https://www.bbc.com/news/articles/cm2rr9pg4jzo
1•1659447091•17m ago•0 comments

Prism License Framework (a modular license generator)

1•Scientific_AJ•20m ago•0 comments

Rust Maintainer Fund

https://nlnet.nl/maintainers/rust/
1•pabs3•20m ago•0 comments

Netflix Cofounder Reed Hastings Is Leaving the Company

https://www.businessinsider.com/netflix-cofounder-reed-hastings-is-leaving-the-company-sarandos-p...
2•doppp•22m ago•0 comments

Prism License Framework (a modular license generator)

https://www.google.com/search?q=https://github.com/ScientificAJ/prism-license-framework
1•Scientific_AJ•22m ago•0 comments

Show HN: Viche – OSS private registry for agent communication

https://github.com/viche-ai/viche
1•nanojoel•23m ago•0 comments

Approve agents and track progress while you're on the go

https://github.com/grainulation/farmer
3•woptober•25m ago•0 comments

Treating enterprise AI as an operating layer

https://www.technologyreview.com/2026/04/16/1135554/treating-enterprise-ai-as-an-operating-layer/
1•joozio•26m ago•0 comments

Show HN: CrossTrack – Cross-platform identity resolution as a service

2•jamespeng•29m ago•0 comments

Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B?

2•wasimsk•33m ago•0 comments

Reed Hastings to step down from Netflix board

https://www.theguardian.com/media/2026/apr/16/netflix-chair-reed-hastings
2•abawany•33m ago•0 comments

Single Stage Rocket Technology (SSRT) Delta Clipper Experimental (DC-X)(1993) [video]

https://www.youtube.com/watch?v=J6ZyDSmC-d0
1•o4c•37m ago•0 comments

Engram – context spine for AI coding agents, 88% proven token savings

https://github.com/NickCirv/engram
1•NickCirv•37m ago•0 comments

Deleteduser.com – A $15 PII Magnet

https://mike-sheward.medium.com/deleteduser-com-a-15-pii-magnet-c4396eb21061
2•p4bl0•42m ago•2 comments

MongoDB Compass Alternative

https://visualeaf.com/blog/visualeaf-as-mongodb-compass-alternative/
1•RoxiHaidi•44m ago•0 comments

I'm tired about hearing about AI startups

1•geuis•50m ago•2 comments

Observational constraints project a ~50% AMOC weakening by end of this century

https://www.science.org/doi/10.1126/sciadv.adx4298#sec-3
2•Kaibeezy•50m ago•1 comments

Drivers sue San Jose over nearly 500 police cameras used to track drivers

https://www.nbcnews.com/tech/tech-news/san-jose-drivers-sue-city-police-flock-cameras-rcna331750
4•blessedwhiskers•53m ago•0 comments

IETF: Meow

https://www.ietf.org/archive/id/draft-meow-mrrp-00.html
4•michaelsshaw•55m ago•1 comments

Dog Bed Database

https://aosabook.org/en/500L/dbdb-dog-bed-database.html
3•tosh•57m ago•0 comments

Why is the unit of measure placed before the value for currencies? (2016)

https://english.stackexchange.com/questions/34013/why-is-the-unit-of-measure-placed-before-the-va...
2•fittingopposite•57m ago•1 comments

'Middle Class' Actors Are Getting 'Squeezed Out' of Hollywood

https://variety.com/2026/tv/news/kirk-acevedo-sold-house-middle-class-actors-hollywood-1236722809/
6•Michelangelo11•57m ago•1 comments