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

Comments

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

Isaac Newton on Learning Mathematical Thinking and Reasoning

https://learningloom.substack.com/p/isaac-newton-on-learning-mathematical
1•atomicnature•24s ago•0 comments

Unpopular Opinion: Bootstrap is a better front-end framework than Tailwind

1•pyeri•1m ago•0 comments

Planning on Claude: Tips

https://skeltoac.substack.com/p/planning-on-claude
1•skeltoac•1m ago•0 comments

Playwriter: Playwright MCP with 80% less context window

https://github.com/remorses/playwriter
1•saikatsg•3m ago•0 comments

Experience Ceremonial Grade Matcha by Opure

https://opureaustralia.com.au/products/matcha-powder
1•zafarali125•3m ago•0 comments

Every Pill I Took: 2000 – 2001

https://www.counter-print.co.uk/products/every-pill-i-took
2•colinprince•4m ago•0 comments

Rapid morphological change in an urban bird due to Covid-19 restrictions

https://www.pnas.org/doi/10.1073/pnas.2520996122
1•WaitWaitWha•7m ago•0 comments

Magical moment: The enormity of the first U.S. adult heart transplant (2018)

https://med.stanford.edu/stanmed/2018winter/fifty-years-since-first-us-adult-heart-transplant-sta...
2•petethomas•11m ago•1 comments

Europe vs. America: the West at War with Itself [video]

https://www.youtube.com/watch?v=rkUhQq3iPOo
1•dgudkov•13m ago•0 comments

PHP in 2026

https://stitcher.io/blog/php-2026
3•brentroose•21m ago•0 comments

Incus 6.20

https://discuss.linuxcontainers.org/t/incus-6-20-has-been-released/25635
1•indigodaddy•22m ago•0 comments

Hippocratic AI Acquires Grove AI

https://www.fiercehealthcare.com/ai-and-machine-learning/jpm26-hippocratic-ai-acquires-grove-ai-t...
1•doppp•26m ago•0 comments

Meta plans to lay off Metaverse employees this week

https://www.theverge.com/news/860984/meta-reality-labs-layoffs-metaverse
1•NBJack•27m ago•0 comments

OpenAI Acquires Torch

https://twitter.com/OpenAI/status/2010813780671021106
2•doppp•27m ago•0 comments

Text-Based Web Browsers

https://cssence.com/2026/text-based-web-browsers/
2•pabs3•30m ago•1 comments

Ask HN: How can we make use of AI agents with existing GitLab CI/CD pipelines?

1•tbharath•32m ago•0 comments

Rebly – A secure, ad-free Bitly alternative for 2026

https://rebly.co
1•skar8147•33m ago•1 comments

Day Fifteen of Iran's Nationwide Protests: Sharp Rise in Human Casualties

https://www.en-hrana.org/day-fifteen-of-irans-nationwide-protests-sharp-rise-in-human-casualties/
1•pabs3•33m ago•0 comments

Germany Considers Broader Legal Authority; Internet Surveillance, State Hacking

https://reclaimthenet.org/germany-bnd-surveillance-law-expansion-de-cix-data-retention-hacking
1•pabs3•33m ago•0 comments

Show HN: Drizzle ORM schema to DBML/Markdown/Mermaid documentation generator

https://github.com/rikeda71/drizzle-docs-generator
1•rikeda71•34m ago•0 comments

Show HN: SlopScore – Contributor Reputation for GitHub PRs

https://github.com/hanzili/slopscore
2•hanzili•36m ago•0 comments

Iran Is Hunting Down Starlink Users to Stop Protest Videos from Going Global

https://www.wsj.com/world/middle-east/iran-is-hunting-down-starlink-users-to-stop-protest-videos-...
5•Agreed3750•41m ago•3 comments

CLI's completion should know what options you've typed

https://hackers.pub/@hongminhee/2026/optique-context-aware-cli-completion
2•dahlia•41m ago•0 comments

D2TS – Differential Dataflow in TypeScript (Used by TanStack DB and ElectricSQL)

https://github.com/electric-sql/d2ts
1•jpereira•45m ago•0 comments

House GOP unveils new legislation on stock trading ban

https://thehill.com/homenews/house/5684843-house-gop-stock-trading-ban/
9•1659447091•53m ago•1 comments

Uber faces bellwether assault trial in federal court in Arizona

https://www.reuters.com/sustainability/society-equity/uber-faces-sexual-assault-trial-arizona-tha...
1•1vuio0pswjnm7•56m ago•1 comments

Agent Safety is a [bounded] Box

https://brooker.co.za/blog/2026/01/12/agent-box.html
1•honorable_coder•56m ago•1 comments

F-22 Raptor Is Getting So Many Upgrades It Will Fly Until 2060

https://www.19fortyfive.com/2026/01/the-f-22-raptor-stealth-fighter-is-getting-so-many-upgrades-i...
3•Gaishan•58m ago•0 comments

Ask HN: AGI Suicide?

2•mudil•1h ago•1 comments

Meta unveils 'Meta Compute' initiative to build AI infrastructure

https://www.reuters.com/technology/meta-build-gigawatt-scale-computing-capacity-under-meta-comput...
1•haberdasher•1h ago•0 comments