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!

Plotting AI model release cadence: two labs are accelerating, three aren't

https://swiftalerts.trade/the-cadence-trade-hn
1•abipal15•12m ago•0 comments

With Every Breath You Take, Thank the Ocean

https://ocean.si.edu/ocean-life/plankton/every-breath-you-take-thank-ocean
3•thunderbong•18m ago•0 comments

The snake-wrangling 84-year-old who lives on a remote barrier island

https://www.bbc.com/travel/article/20260612-the-snake-rearing-84-year-old-who-lives-on-a-remote-b...
1•1659447091•19m ago•0 comments

Show HN: Lean bulk, cut, body recomp. Calculate maintenance calories

https://macrocodex.app/
4•faangguyindia•43m ago•2 comments

The only cauldron ever found in a river in the British Isles

https://www.bbc.co.uk/news/articles/clyrn5e2k9no
1•nickt•43m ago•0 comments

Launch: MyIntelBrief – Smarter Competitor Monitoring

https://myintelbrief.com/
2•myintelbrief•44m ago•0 comments

Show HN: Cc-fleet – run other LLMs as Claude Code workers, your sub drives

https://github.com/ethanhq/cc-fleet
1•ethanhq•48m ago•0 comments

Show HN: Adbqr – ADB pair via QR code from the CLI

https://github.com/kristjan/adbqr
1•kristjan•52m ago•0 comments

Developers don't understand CORS (2019)

https://fosterelli.co/developers-dont-understand-cors
3•toilet•52m ago•0 comments

Australia confirms first case of H5N1 bird flu as virus reaches every continent

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

White House delays US voting-machine vulnerability report

https://www.reuters.com/world/white-house-delays-release-us-voting-machine-study-midterms-near-20...
33•logickkk1•58m ago•16 comments

Hop.Earth – Google Maps and Need For Speed. World around created while driving

https://hop.earth/?server=RDgva&route=XxOaosUo
3•touchpadder•1h ago•1 comments

Data integrity in rqlite: what it checks and what it doesn't

https://rqlite.io/docs/guides/data-integrity/
1•otoolep•1h ago•0 comments

Ratchet – BIOS flashing toolkit with a built-in MCP server for AI agents

https://github.com/jackulau/ratchet
1•JackLau•1h ago•0 comments

Apple-FM – a command-line interface for Apple's on-device models

https://www.npmjs.com/package/apple-fm
2•brianwestphal•1h ago•2 comments

XRPentest: AI-powered security audit tool for VR/XR headsets

https://xrpentest.com
1•h_a_c_k•1h ago•0 comments

Google Can't Math Parsecs

https://www.lesswrong.com/posts/BmqzjcD4tGvy3bim8/google-can-t-math-parsecs
8•ubutler•1h ago•2 comments

How the AI Village Works

https://theaidigest.org/village/blog/how-the-ai-village-works
2•vinhnx•1h ago•0 comments

How Does One Brain Speak Two Languages?

https://www.nytimes.com/2026/06/15/science/brain-language-grammar.html
4•ripe•1h ago•0 comments

They Looked Like They Were Getting Rich on Polymarket–But None of It Was Real

https://www.wsj.com/business/media/polymarket-social-media-bets-prediction-market-441cdeb5
3•Vaslo•1h ago•0 comments

Parody Symbolics Lisp Machines software release (1982)

https://groups.google.com/g/comp.sys.ti.explorer/c/2sI_2_eOWug
1•gnodar•1h ago•0 comments

When I reject AI code even if it works

https://vinibrasil.com/when-i-reject-ai-code-even-if-it-works/
28•vnbrs•1h ago•8 comments

Show HN: GenAIDojo

https://www.genaidojo.io/
1•aniketwattawmar•1h ago•0 comments

An Apology for Idlers by Robert Louis Stevenson (1877) [video]

https://www.youtube.com/watch?v=a4T9pbxrlfw
2•SpiralLibrarium•1h ago•0 comments

Subquadratic claims it broke through a bottleneck that's holding back LLMs

https://www.technologyreview.com/2026/06/19/1139313/a-startup-claims-it-broke-through-a-bottlenec...
1•baddash•1h ago•1 comments

RocketAnalyzer · Streamlit

https://rocketanalyzer-ca7wd4a54c7sxjiuk6aewi.streamlit.app
1•ApplePanda03•1h ago•0 comments

Show HN: Rocannon – Any Ansible module to MCP Tool, record sessions as playbooks

https://github.com/msradam/rocannon
2•msradam•1h ago•0 comments

Adobe adds its AI assistant to Premiere, Illustrator, and InDesign

https://techcrunch.com/2026/06/18/adobe-adds-its-ai-assistant-to-premiere-illustrator-and-indesign/
4•breve•1h ago•0 comments

VibeThinker 3B – Taking on Giant Models [video]

https://www.youtube.com/watch?v=_a9Vv5dfW24
3•modinfo•1h ago•0 comments

A Visit to id Software ft Bobby Prince (1993) [video]

https://www.youtube.com/watch?v=HpEBUV_g9vU
4•qmr•2h ago•0 comments