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!

German AI consortium releases Soofi S, an open 30B model

https://the-decoder.com/german-ai-consortium-releases-soofi-s-an-open-30b-model-that-tops-benchma...
1•yogthos•29s ago•0 comments

How hard is it to build orbital data centers, actually?

https://arstechnica.com/space/2026/07/how-hard-is-it-to-build-orbital-data-centers-actually/
1•twoWhlsGud•58s ago•1 comments

Is This the Fastest Opinion Shift in American Politics?

https://www.nytimes.com/2026/07/15/opinion/ai-data-center-politics.html
1•twoWhlsGud•1m ago•1 comments

Found something better than Klavaro touch typing tutor

https://monkeytype.com
1•wieczorek1990•2m ago•2 comments

Show HN: Map of every off-plan project in Bangkok (Thailand has no MLS)

https://baanscope.com
1•kesarito•2m ago•0 comments

Show HN: Mailberry – an AI-native email platform with The Email Brain

https://mailberry.ai/
1•alecbee•3m ago•1 comments

How do you audit what your autonomous agents did?

https://github.com/BrightbeamAI/chap
1•arsalanshahid•4m ago•0 comments

Kilo Code has been acquired by Anaconda

https://www.anaconda.com/blog/anaconda-acquires-kilo-code
2•poorvsahu•4m ago•0 comments

The Psychology of Software Teams

https://www.routledge.com/The-Psychology-of-Software-Teams/Hicks/p/book/9781032963389
2•dcre•5m ago•0 comments

Show HN: AI-powered sports analytics and social betting platform

https://statsniper.com/
2•not_wowinter13•6m ago•0 comments

Featurevisor v3 – open-source feature flags management with Git

https://featurevisor.com/blog/v3-release/
3•fahad19•7m ago•0 comments

Open-source memory for coding agents, synced over SSH

https://github.com/vshulcz/deja-vu/
3•vshulcz•7m ago•0 comments

Unsolved Problems in MLOps

https://spawn-queue.acm.org/doi/pdf/10.1145/3762989
3•gnyeki•7m ago•0 comments

Purging George Orwell's books misses what drives the political right

https://theloop.ecpr.eu/purging-the-books-of-george-orwell-will-not-halt-the-rise-of-the-politica...
2•jruohonen•8m ago•1 comments

Codex Micro

https://openai.com/supply/co-lab/work-louder/
3•davidbarker•9m ago•0 comments

OpenAI's first branded hardware is a light-up keyboard?

https://arstechnica.com/ai/2026/07/openais-first-branded-hardware-is-a-light-up-keyboard/
3•cdrnsf•9m ago•0 comments

OpenAI Launches Hardware for Codex

https://www.theverge.com/ai-artificial-intelligence/965901/openai-hardware-codex-micro-launch
3•whalesalad•9m ago•0 comments

2081681993819799846994786333448627702865224538845305484256394568209274196 (etc.) [video]

https://www.youtube.com/watch?v=1cvKGqgOx_8
2•lr0•10m ago•0 comments

Network routing correctness ≠ distribution completeness [pdf]

https://static1.squarespace.com/static/6a0160b578abca0542beab1d/t/6a545da888c407314b0e6289/178391...
2•siliconmtn•10m ago•0 comments

Show HN: OtoDock, run Claude Code and Codex as a team of agents on your server

https://github.com/OtoDock/oto-dock/
2•dimitrismrtzs•10m ago•0 comments

What happens when your VPN meets 200 AI agents

https://thenewstack.io/unified-access-ai-agents/
2•Brajeshwar•10m ago•0 comments

Kilo Code has been acquired by Anaconda

https://twitter.com/kilocode/status/2077394060248076699
5•tosh•11m ago•0 comments

We're Starting To Trust Some Clusters - OCI Has Two Of Them

https://webbynode.com/articles/were-starting-to-trust-some-clusters-oci-is-one-of-them
2•gsgreen•13m ago•0 comments

Rest of the Owl: Completes the full dev cycle given a well defined task

https://github.com/steph-dove/klaussy-agents/blob/main/src/klaussy/templates/skills/rest-of-the-o...
2•klaussy•13m ago•0 comments

BREAKFAST – Mechanical Engineer – Brooklyn NY – On-Site – Full-Time or Freelance

https://theartistbreakfast.com/works
2•mattiasgunneras•13m ago•0 comments

The Other Norwegian

https://granta.com/the-other-norwegian/
2•jruohonen•14m ago•0 comments

Nix in FedRAMP High environments now available in FlakeHub

https://determinate.systems/blog/flakehub-fedramp-high/
3•jmartens•14m ago•0 comments

German Court Orders Deletion of Footage Exposing Pig Gas Chambers

https://veganhorizon.substack.com/p/punished-for-exposing-the-truth
3•hn_acker•14m ago•0 comments

Show HN: Mindlas – catch your coding agent drifting before the bad code lands

https://github.com/Evolutionairy-AI/MINDLAS
2•MAESTRO1955•17m ago•0 comments

How we're saving 50k$ of Claude API every month

https://github.com/regolo-ai/brick-SR1
2•FrancescoMassa•17m ago•1 comments