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!

The many failures leading to the LiteLLM compromise

https://lwn.net/Articles/1064693/
1•signa11•37s ago•0 comments

S3 for Non Technical Folks

https://bucketdrive.app/blog/how-to-give-non-technical-users-access-to-s3.html
1•justpeek•4m ago•0 comments

You Are Not the One – Chinese Dating Dystopia

https://terminaldrift.substack.com/p/you-are-not-the-one-chinese-dating
1•Natsu•4m ago•0 comments

Key ocean current is slowing at locations around the Atlantic

https://www.newscientist.com/article/2522463-key-ocean-current-is-slowing-at-locations-around-the...
1•bluerooibos•6m ago•0 comments

Show HN: SmolVM – open-source sandbox for coding and computer-use agents

https://github.com/CelestoAI/SmolVM
4•theaniketmaurya•6m ago•0 comments

Scientists have uncovered a "blind spot" in the research on rising seas

https://e360.yale.edu/features/sea-level-rise-land-subsidence
2•bluerooibos•8m ago•0 comments

OSS model's can't replicate the Mythos findings, it was a lie

https://github.com/stanislavfort/mythos-jagged-frontier/blob/main/prompts/openbsd-sack.md
1•kannthu•9m ago•1 comments

FT turned Bill Phillips' in-aquo macroecons simulator into VR app

https://www.ft.com/content/547a3fea-378d-45ec-a2cb-cb157ea7a9b4
1•curio_Pol_curio•11m ago•0 comments

Financial Times Phillips Machine VR App

https://apps.apple.com/us/app/ft-money-machine/id6569262299
1•curio_Pol_curio•13m ago•0 comments

Scientists invented a fake disease. AI told people it was real

https://www.nature.com/articles/d41586-026-01100-y
1•DrewADesign•31m ago•1 comments

Show HN: We scored 495 real SoC 2 audit reports – nearly all got a D or F

https://soc2quality.trenta.ai
2•rituraj_tiwari•36m ago•0 comments

Trinity-Large-Thinking: Scaling an Open Source Frontier Agent

https://www.arcee.ai/blog/trinity-large-thinking
3•somethingsome•37m ago•0 comments

Soul.md – A Meditation on AI Identity

https://soul.md/
2•znpy•38m ago•0 comments

GoScrapy: New Fast Web Scraping with Go (Built for Concurrency)

https://github.com/tech-engine/goscrapy
1•stonework•40m ago•0 comments

Mexico's President Sheinbaum Decrees Universal Healthcare for 120M

https://thedeepdive.ca/mexicos-president-sheinbaum-decrees-universal-healthcare-for-120-million/
2•testing22321•40m ago•0 comments

Show HN: AnimTOON – AI that animates SVGs with 3-4x fewer tokens than OmniLottie

https://github.com/srk0102/AnimTOON
2•srk0102•40m ago•0 comments

Open Source Alternative to Claude Managed Agents

https://agents.opencomputer.dev
5•iacguy•42m ago•1 comments

Bespoke OLAP: Using AI to Synthesize Workload-Specific DBMS Engines from Scratch

https://ucbskyadrs.github.io/blog/bespoke-olap/
1•matt_d•42m ago•0 comments

You know what I haven't ever seen? a good blogpost from an AI

1•wrqvrwvq•44m ago•0 comments

PC Repair OKC

https://okcitpros.com/
1•Veritaco•45m ago•1 comments

Automatic U.S. military draft registration planned by December, filing shows

https://www.cnbc.com/2026/04/09/military-draft-registration-automatic-iran-war.html
4•MilnerRoute•47m ago•1 comments

What makes search hard in production

https://www.searchplex.net/blog/what-makes-search-hard
1•eskimo87•49m ago•0 comments

Understanding Agents: Code Coverage for Coding Agents

https://blog.asymmetric.re/understanding-agents-code-coverage-for-coding-agents/
2•matt_d•50m ago•0 comments

Train Your Judgement

https://emilkowal.ski/ui/train-your-judgement
2•cristinacordova•52m ago•0 comments

Workflows in Your ADE

https://reliantlabs.io/
4•steeling1•56m ago•2 comments

SMS delivery is not deterministic: routing defines behavior

https://blog.bridgexapi.io/you-dont-control-sms-delivery-you-control-routing
1•Bridgexapi•59m ago•7 comments

Tell HN: I will pay money for a YouTube front end that stops the "Rec Roulette"

1•frmersdog•1h ago•0 comments

Show HN: I made a skill to tell AI on how to use human as Dobby

https://github.com/LittleLittleCloud/Dobby
2•BigBigMiao•1h ago•0 comments

How bonds ended the Civil War - and led to the rise of J.P. Morgan

https://www.barrons.com/articles/investment-banking-jpmorgan-cooke-economy-04f59e12
3•hhs•1h ago•0 comments

1.9B year old bedrock will soon house first permanent nuclear waste site

https://apnews.com/article/finland-nuclear-waste-disposal-storage-d1a110758e2bd087a9cee43f56f1a05b
4•voxadam•1h ago•0 comments