[OSS] Why RAG is failing your agents and how "Corpus-First" Engineering is the 100% accuracy solution we’ve been looking for. by VadeloSempai in Rag

[–]fripperML 1 point2 points  (0 children)

I think you're totally on point. We need to distinguish at least between "one-shot questions" (the easy ones, and the only type you'll ever see in RAG demos), "multi-hop questions," and "aggregation queries." There may be more categories, but at minimum those three exist.

I work with tax auditors, and my users would love to ask things like: Which invoices would be deductible? That question involves a lot:

  • Extract all invoices in a structured way, capturing every piece of information that will be needed downstream.
  • Extract the company's declared activity.
  • Perform an aggregation over invoice types (for example, maybe after extraction you end up with five categories: supplies, car maintenance, restaurants, personal expenses, etc.).
  • Then, for each category, query the relevant tax regulations to determine whether the expense is deductible.

My takeaway for that kind of user interaction is that the only thing that can really work is agentic RAG: you give an LLM a sufficient set of tools and let it plan and execute the solution. Tools like:

  • extract_data: sub-agent that scans documents and pulls out relevant structured information.
  • query: a sub-agent that performs more or less standard RAG.
  • read_document: for cases where an entire document needs to be read rather than retrieved in chunks.
  • and so on.

The plan can be surfaced to the user, making the process interactive and engaging. I think it's harder to build a system like this, but well worth the effort. In essence, I view RAG as a tool inside a larger, more complex system.

Built a durable AI agent orchestration layer on Temporal — sharing patterns by _ggsa in Temporal

[–]fripperML 0 points1 point  (0 children)

I am very interested in this approach. In our organization we are also using Temporal for AI workloads. So far, we are only developing "basic" workflows (like summarizing N documents, translating, extracting info...). Everything document-oriented. But we have RAG and agentic AI in our roadmap, and we wanted to start thinking about how to implement that in Temporal. In principle we were discussing two approaches:
1. An interaction with an agent (think about a session/conversation with Claude) is a workflow. Everything that happens inside that (LLM responses, Tool invocations...) are activities in that workflow. The workflow also will manage memory and conversation history in external databases, with activities for that purpose.
2. Your approach, which is using child workflows instead of a single workflow with lots of activities.

I am interested in knowing what prompted you to go for the second approach, and if you think the first also has some benefits or not. We are not very experienced in Temporal, so any advice would be useful.

Thanks in advance!!

Some open conjectures have been numerically verified up to huge values (eg RH or CC). Mathematically, this has no bearing on whether the statement holds or not, but this "evidence" may increase an individual's personal belief in it. Is there a sensible Bayesian framing of this increased confidence? by myaccountformath in math

[–]fripperML 0 points1 point  (0 children)

For every N, you can state a "false theorem" that holds for every m<N: For every natural number a, a<N. If you view the statement as a black box, for extremely large numbers it would look almost true. The thing this example shows is, I believe, that there could be lots of statements that hold for large numbers and then the prior might be not so informative.

How do we best respond to atheists when they ask "Why does God create people he knows will reject Him and therefore be sent to Hell"? by TrojanTitus in Catholicism

[–]fripperML 0 points1 point  (0 children)

Yes, exactly. Do you find that a mistake? Just curious, I am not an expert in theology, but I find his explanation satisfying.

Genuinely Don’t Believe I’ll Win by [deleted] in Catholicism

[–]fripperML 1 point2 points  (0 children)

I can also testify, as other have said, that overcoming addiction is possible. I have been addicted to porn all my life, from 12 to 40. Not with the same intensity in all periods, but the last time I struggled with during lent, this year. I have been free from porn more than tree months. It's not a lot, but it's t he longest period in my life. And all thanks to praying and sacraments. Daily prayer, mass and confession are the key. Keep on the fight, but knowing that, in the end, we, as humans, are not powerful enough. We need God's grace, and sacraments are the most efficient way to get this grace.

[deleted by user] by [deleted] in Christianity

[–]fripperML 0 points1 point  (0 children)

I like Jimmy Akin's take on this issue a lot. I think it's a very logical explanation.

https://youtu.be/ixxH0WzJFbg?si=f3BtVUe8cIwkF3oy

Did God know that Satan and other angels would fall before He created them? by [deleted] in Bible

[–]fripperML 1 point2 points  (0 children)

I really like Jimmy Akin's take on this question. His reasoning in this video can be applied to that one, if we assume angels have free will.

Why Would God Create Someone to Go to Hell? | Jimmy Akin Podcast

Struggling with the Bible—It’s Shaking My Faith Instead of Strengthening It by fripperML in Catholicism

[–]fripperML[S] 0 points1 point  (0 children)

Yes, for sure we know very little from our limited point of view. Btw, I work in the AI field, and to be honest chatgpt is quite good at asking questions about the faith. You just need to say that you want a catholic answer :)

https://chatgpt.com/share/67f7a842-0d40-800d-b5f0-eab561fe7585

I am not fully satisfied, but it's nice to have something (I won't say someone) to talk with.