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!

Everything hackable will get hacked

https://vercel.com/blog/everything-hackable-will-get-hacked
1•tilt•1m ago•0 comments

Artificial Intelligence Policy UC Berkeley School of Law [pdf]

https://www.law.berkeley.edu/wp-content/uploads/2026/05/AI-Final-Policy-26.pdf
1•fallinditch•2m ago•0 comments

Turning Quick Notes into Long-Term AI Memory

https://barbarito.me/notes-workflow/
1•danbarbarito•4m ago•0 comments

MCP server for 340k SVG icons

https://github.com/LeulAria/Aria-Icons
1•leularia•14m ago•0 comments

Urban congestion relief experiments through routing-app interventions

https://www.nature.com/articles/s44284-026-00443-x
1•neehao•14m ago•0 comments

Tesla killing Solar Roof is leaving installers with six-figure losses

https://electrek.co/2026/09/01/tesla-solar-roof-exit-installers-losses/
6•voxadam•23m ago•0 comments

Selected GitHub Copilot models deprecated

https://github.blog/changelog/2026-08-31-selected-github-copilot-models-deprecated/
1•mooreds•24m ago•0 comments

My Mac Mini fits one model. I run five

https://placona.co.uk/my-mac-mini-fits-one-model/
4•makaimc•25m ago•0 comments

Replaceable but Employed: Automation and the Meaning of Work

https://www.nber.org/papers/w35559
2•mooreds•26m ago•0 comments

AI Cold Showers

https://allan.reyes.sh/posts/ai-cold-showers/
2•mooreds•26m ago•0 comments

US Military disabled ad tracking on troops' devices after targeted attacks

https://techcrunch.com/2026/09/04/us-military-disabled-ad-tracking-on-troops-devices-following-re...
5•jethronethro•27m ago•0 comments

Decoherence: A card game for two based on quantum physics

https://decoherance.vaguespac.es/
1•thebigship•30m ago•0 comments

Scaling Engineering: Ownership over Hiring

https://greenido.dev/2026/06/11/what-changes-at-20-50-and-200-engineers/
1•fagnerbrack•31m ago•0 comments

Free WhatsApp abandoned cart recovery for WooCommerce

https://wordpress.org/plugins/6rsh-messaging-notifications/
1•sixrsh•31m ago•0 comments

Botsitting: The Unpaid Labour Behind Every AI Productivity Claim

https://smarterarticles.co.uk/botsitting-the-unpaid-labour-behind-every-ai-productivity-claim
1•dxs•32m ago•0 comments

Code at the Speed of Understanding

https://dennisy.me/notes/code-at-the-speed-of-my-understanding
1•dennisy•33m ago•0 comments

Secret Collusion Among AI Agents

https://arxiv.org/abs/2402.07510
2•phaseonebig•34m ago•0 comments

Amy – high performance fixed-point music synthesizer library

https://github.com/shorepine/amy
1•anigbrowl•34m ago•0 comments

Show HN: Animating code snippets from first principles

1•rahulrav•36m ago•0 comments

Show HN: Expose - a self-hosted tunneling tool like ngrok/localtunnel(Golang)

https://github.com/kernelshard/expose
2•samiulsk•36m ago•0 comments

Alzheimer's treatment is advancing rapidly

https://www.vox.com/the-highlight/501710/alzheimers-disease-dementia-test-treatment-medication-in...
2•dabinat•37m ago•1 comments

The Foundations of Modern AI: Generalization, Data Selection, and Epiplexity

https://www.youtube.com/watch?v=lKoJJxjUfdw
1•E-Reverance•37m ago•0 comments

Ask HN: How do you know a prompt is "complex" for an AI model?

1•faryadz•37m ago•0 comments

CPAN Uploads Are Up 50% Year-over-Year

https://www.olafalders.com/2026/09/04/cpan-uploads-up-50-percent-year-over-year/
1•Amorymeltzer•39m ago•1 comments

Watch Los Angeles get built, one building at a time (1880–2026)

https://lax-skyline.parcelscope.net/
38•rustywasm•40m ago•9 comments

"Twenty years of brand building froze in time": How coding agents select tools

https://thenewstack.io/coding-agents-tool-choice/
2•theanonymousone•40m ago•0 comments

The Context Engine

https://productnow.ai/blogs/the-context-engine
1•kadhirvelm•40m ago•1 comments

Agentic Coding in the Wild

https://kstark007.github.io/blog/agentic-coding-in-the-wild/
2•maknee•40m ago•0 comments

All 32 NFL stadiums ranked by total game day cost

https://visityourteam.com/nfl/rankings/game-day-costs
1•brambleworks•52m ago•0 comments

Senate Considers Letting Contractors Hack Computers for Military

https://www.bloomberg.com/news/articles/2026-09-03/senate-considers-allowing-contractors-to-condu...
3•_____k•53m ago•0 comments