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!

Finding 247 solar plant candidates in Brandenburg

https://twitter.com/__snamber/status/2084747946021535975
1•tosh•5s ago•0 comments

Federal loan support cut for degree programs that lead to low wages

https://www.latimes.com/california/story/2026-07-22/low-paying-degrees-federal-student-loan-cutof...
1•anigbrowl•4m ago•0 comments

S-OS V-RAM Engine – 8MB virtual memory on a $1.50 ESP32 without PSRAM

https://github.com/StepanoskiZ/vram-engine-esp32
1•ZStepanoski•4m ago•0 comments

Show HN: Yanes, yet another NES audio plugin:LinuxCLAP polyphonic chiptune synth

https://github.com/andrewfader/yanes
1•androsynth89•5m ago•0 comments

Dev proves LLMs will run on anything, even a $10 microcontroller

https://www.theregister.com/edge-and-iot/2026/08/04/dev-proves-llms-will-run-on-anything-even-a-1...
2•Bender•5m ago•0 comments

China turns up the heat with open model blitz as US model makers panic

https://www.theregister.com/ai-and-ml/2026/08/03/china-turns-up-the-heat-with-open-model-blitz-as...
2•Bender•5m ago•0 comments

Show HN: Movie scores from what people say when nobody's asking

https://skipthecritics.com
1•LevelTenMedia•6m ago•0 comments

Trump forced to reinstate broadband grants, court lets US scrap race criteria

https://arstechnica.com/tech-policy/2026/08/trump-forced-to-reinstate-broadband-grants-but-court-...
2•Bender•6m ago•0 comments

EA Is Now a Private Company

https://www.theverge.com/games/974736/ea-private-company-deal-closed
2•choult•7m ago•0 comments

AI Pets Are Here [video]

https://www.youtube.com/watch?v=mIfmUHiMN3U
1•britcruise•9m ago•0 comments

Speed Above All Else

https://twitter.com/Alfred_Lin/status/2084636778791858256
1•tosh•10m ago•0 comments

Yet Another OpenCode Plugin

https://npmjs.com/package/yet-another-opencode-plugin
1•smokeeaasd•11m ago•0 comments

Fiddler Classic Changes License: Noncommercial Use Only, 45 Days to Comply

https://www.telerik.com/purchase/license-agreement/fiddler
1•tech234a•11m ago•0 comments

Cloudflare Wallets: the programmable wallet for the agentic Internet

https://blog.cloudflare.com/wallets/
2•hahahaa•11m ago•0 comments

3D Printing Agentic Automation

https://praveenvijayan.substack.com/p/3d-print-automation-text-a-link-get
2•praveenvijayan•13m ago•1 comments

Ask HN: Dear Anthropic, can we please have thought traces back?

1•exabrial•14m ago•0 comments

Where the Automation Has to Stop

https://yusufaytas.com/where-the-automation-has-to-stop
7•montrealish•15m ago•0 comments

The 'dean of valuation' says pain is headed for more AI companies soon

https://www.businessinsider.com/ai-stock-market-correction-dean-of-valuation-aswath-damodaran-2026-8
2•mapping365•15m ago•0 comments

Personal computer is not that personal

https://prahaladhchandrahasan.github.io/thoughts/your-personal-computer-is-not-that-personal/
1•pdawg0518•17m ago•0 comments

Uber's Autonomous Vehicle Strategy: Slow Their Adoption

https://www.wired.com/story/ubers-autonomous-vehicle-strategy-slow-their-adoption/
1•dmitriy_ko•19m ago•0 comments

Should designers publicly share killed or speculative work?

https://benbarry.com/writing/should-designers-publicly-share-killed-or-speculative-work
1•herbertl•20m ago•0 comments

S

2•Sidhant_ch•21m ago•1 comments

Show HN: A search engine for VPS servers with an automatic crawler pipeline

https://vpspricetracker.com
1•davidebaldini•23m ago•0 comments

Codes, Chess and Kubrick: The Life of Jack Good – GCHQ

https://www.gchq.gov.uk/information/codes-chess-and-kubrick-life-jack-good
1•rbanffy•23m ago•0 comments

Data centers have a politics problem

https://www.politico.com/news/2026/08/01/data-centers-have-a-politics-problem-and-industry-knows-...
1•mapping365•23m ago•0 comments

Success of New Federal Housing Law Rests on States and Localities

https://ifp.org/the-success-of-the-new-federal-housing-law-now-rests-on-states-and-localities/
3•atlasunshrugged•23m ago•0 comments

Count Binface: Britain's 'joke' election candidates should be taken seriously

https://theconversation.com/count-binface-why-britains-joke-election-candidates-deserve-to-be-tak...
4•samizdis•24m ago•0 comments

Resistance grows nationwide against AI data center boom

https://www.cbsnews.com/video/resistance-grows-nationwide-against-ai-data-center-boom/
4•mapping365•24m ago•0 comments

An AI voice agent running locally on a $50 Arduino uno Q

https://projecthub.arduino.cc/neelbuilds/build-a-voice-based-kiosk-for-retail-store-using-moorche...
4•supportm•24m ago•0 comments

Could You Still Be "You" Without a Single Memory?

https://comuniq.xyz/post?t=1501
2•01-_-•25m ago•0 comments