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!

Neoism – An open-source agent harness and native IDE in Rust

https://neoism.ai/
1•Mr_Settle•16s ago•0 comments

For those using huge amount of tokens monthly for dev work, why do you need it?

2•why_is_my_floor•14m ago•2 comments

JDK 28

https://openjdk.org/projects/jdk/28/
2•ejboy•16m ago•0 comments

One Hash Bloom Filters

https://calabro.io/ohbf
1•jcalabro•22m ago•0 comments

FingerWorks iGesture Pad (2005)

https://uk.pcmag.com/first-looks/26975/fingerworks-igesture-pad
1•codeulike•22m ago•1 comments

Bun PR – Compile TypeScript to machine code ahead of time

https://github.com/oven-sh/bun/pull/45631
1•tempaccount420•22m ago•0 comments

Weak Links Start to Show in A.I. Borrowing

https://www.nytimes.com/2026/10/17/business/ai-debt-coreweave-oracle-softbank.html
5•ceejayoz•28m ago•1 comments

Obnam Community

https://blog.liw.fi/posts/2026/obnam-community/
1•edward•28m ago•0 comments

All of the new 2026 Kindles have user replaceable batteries

https://goodereader.com/blog/kindle/all-of-the-new-2026-kindles-have-user-replaceable-batteries
2•edward•30m ago•0 comments

AI neolabs are raising sums. Most have little to show for it

https://economist.com/business/2026/10/15/ai-neolabs-are-raising-huge-sums-most-have-little-to-sh...
2•andsoitis•31m ago•1 comments

Standard Web Templates (A Proposal)

https://github.com/doriantaylor/swet
1•poly2it•33m ago•0 comments

Am I being silly adding MCP to my contracting site?

https://santurcesoftware.com/agents
1•boredumb•34m ago•0 comments

Show HN: Ayafy: A free app to memorise and revise the Quran

https://ayafy.com/
1•shahabaz•35m ago•0 comments

Full Roblox Studio from iPhone

https://twitter.com/bloxstack/status/2111545641377943888
1•bloxstack•35m ago•0 comments

Playbook for recovering frozen merchant funds

https://guigui19833.github.io/fintech-redirect/
1•FintechRiskAdv•38m ago•0 comments

The Tyranny of the Op-Ed

https://blog.coredump.cx/p/the-tyranny-of-the-op-ed
3•surprisetalk•38m ago•0 comments

Ask HN: What Got You into Rust?

1•cloaky233•40m ago•1 comments

What If Video Games Came on VHS? One Modder Is Finding Out

https://gardinerbryant.com/what-if-video-games-came-on-vhs/
1•Kate0CoolLibby•41m ago•1 comments

OpenAI AI Model Hacked Government Website While Counting Hospital Beds

https://alignment.openai.com/misalignment-reports/retrieving-server-secrets-and-bypassing-authori...
4•DeepLogin•44m ago•1 comments

Inline rendering with document.currentScript

https://leanrada.com/notes/inline-rendering-currentscript/
2•skrebbel•45m ago•0 comments

1960-1970 Decade

https://mediainspiratorium.com/1960-1970/
1•jruohonen•45m ago•0 comments

Consumer Health Check: Gen Z versus Millennials [pdf]

https://www.pnc.com/content/dam/pnc-com/pdf/aboutpnc/EconomicReports/consumer_health_check/PNC_Co...
1•kklisura•47m ago•0 comments

Russia moves possible anti-satellite near another satellite used by Ukraine

https://bsky.app/profile/marcolangbroek.bsky.social/post/3my3nycvaoc2v
4•ck2•51m ago•4 comments

Carrel: An RSS reader with peer-to-peer sharing

https://carrel.network
1•cigrainger•53m ago•0 comments

Plagiarism in the Age of AI

https://lawrencecpaulson.github.io//2026/10/17/Plagiarism.html
1•chmaynard•56m ago•1 comments

Videographer tries AI editing with MCP DaVinci Resolve connector

https://www.youtube.com/watch?v=4nQGiRCUlDg
1•fallinditch•57m ago•0 comments

Replacing Design.md with DESIGN.html

https://github.com/giminycricket0-blip/design-html
1•giminycricket0•1h ago•0 comments

Show HN: KIRA – Sovereign, local-first AI and media workstation for Windows

https://apps.microsoft.com/detail/9n2dr3g0jw0z?hl=en-US&gl=US
1•MDRStudio•1h ago•0 comments

New web obfuscation technique: Divergence

https://trustsig.eu/blog/javascript-divergence/
2•handfuloflight•1h ago•1 comments

Past.dev: Long-term memory for AI agents

https://past.dev
2•handfuloflight•1h ago•0 comments