# Biggest difficulty in developing LLM apps

**URL:** <https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180>\
**Category:** API\
**Tags:** development\
**Created:** [December 25, 2023, 12:11pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180 "2023-12-25T12:11:09Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![SomebodySysop](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/somebodysysop/32/17613_2.png) [@SomebodySysop](https://community.openai.com/u/SomebodySysop)\
**Post date:** [December 29, 2023, 10:50am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/21 "2023-12-29T10:50:57Z")

</div>

> [@TonyAIChamp](#):
>
> Such cases can be dealt with the metadata. In your example you are basically retrieving a lot of noise which both decreases the quality and also increases the cost significantly.

Agreed. I am using Weaviate where my metadata is also embedded, and I’ve built in a keyword capability. There’s no getting around the noise – the contracts are what they are. The other hard part I forgot to mention is training users on how to ask the questions in the correct manner and use the tools available.

> [@TonyAIChamp](#):
>
> I think the biggest problem with RAG now is not in its limitations, but in the fact that developers skip the database architecture phase which is not less (and maybe even more) critical compared to relational databases. In most of the cases the need to retrieve 50 documents would mean that your documents are either 2 short or you don’t have a proper data architecture in place.

I’ve been a database developer for over 40 years, and I was a pioneer in the area of Electronic Publishing some 30 years ago. I knew a _little_ something about data structure, and in particular, text data structure, before I got into this AI game. I generally use Semantic Chunking [https://www.youtube.com/watch?v=B5B4fF95J9s&ab\_channel=SwingingInTheHood](https://www.youtube.com/watch?v=B5B4fF95J9s&ab_channel=SwingingInTheHood) and various embed strategies depending upon the type of text (legal, policy, sermons, regulatory code, religious texts, scientific, etc…) I’m working with. And I use metadata fairly extensively.

These are very detailed and extensive contracts which are chunked at the top level by their hierarchal/semantic structures, then at the second level by size… And, there are multiple agreements, over multiple years, so depending upon the scope of the search, similarity results could easily be found in 50+ document chunks. And, don’t get me started if the user expands the search out to multiple guilds (IATSE, SAG-AFTRA, DGA, WGA, AFM, etc…)

But to your point, it could be the document chunk size I’ve chosen is too small – this was done to try and reduce the average cost per query. We weren’t getting better answers at a higher chunk size, so figured it was worth a try. Again, trying to find that fine line.

However, I’ve got a plan. The cosine similarity search is almost certainly going to bring back the most relevant documents. So, all I have to do is configure my system to analyze x documents at a time, retrieve the relevant ones used in the response, and then return either a summary or a concatenation of the individual responses. Sort of like either _map reduce_ or _refine_ summarization strategies, but on a RAG level.

What the end user wants is a complete answer, and I think this is how we get it to him.

> [@TonyAIChamp](#):
>
> Big context windows would barely solve your problem, as the attention spans of LLMs are still very short (even inside the context window).

Actually, if I could be guaranteed that the model could read 200K with 100% accuracy, it actually _would_ solve this particular problem. But, unfortunately, we don’t live in that world – yet.

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 29, 2023, 11:16am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/22 "2023-12-29T11:16:39Z")

</div>

> [@SomebodySysop](#):
>
> The other hard part I forgot to mention is training users on how to ask the questions in the correct manner and use the tools available.

Oh, this is 100%!

> [@SomebodySysop](#):
>
> I’ve been a database developer for over 40 years, and I was a pioneer in the area of Electronic Publishing some 30 years ago. I knew a _little_ something about data structure, and in particular, text data structure, before I got into this AI game.

Wow, impressive!

> [@SomebodySysop](#):
>
> But to your point, it could be the document chunk size I’ve chosen is too small – this was done to try and reduce the average cost per query. We weren’t getting better answers at a higher chunk size, so figured it was worth a try. Again, trying to find that fine line.

Another thing you may try is some kind of indexing - making various summaries and of the chunks and linking them to originals.

> [@SomebodySysop](#):
>
> Sort of like either _map reduce_ or _refine_ summarization strategies, but on a RAG level.

Oops, you already figured this out 🙂

> [@SomebodySysop](#):
>
> Actually, if I could be guaranteed that the model could read 200K with 100% accuracy, it actually _would_ solve this particular problem. But, unfortunately, we don’t live in that world – yet.

Yes, basically when attention windows of the models reach or at least approah their context windows.

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 29, 2023, 12:03pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/23 "2023-12-29T12:03:36Z")

</div>

> [@Diet](#):
>
> do you have any literature on that/ do you want to expound on that?

Here’s a draft an my essay where I try to explain my concept of anti-agent (a mix of imperative and declarative approaches) and compare it with the AI agents (more declarative approach)r: [Your connected workspace for wiki, docs & projects | Notion](https://www.notion.so/valueto/Introduction-to-Anti-Agents-Comparing-declarative-and-imperative-approaches-in-conversational-AI-in-94ccf8dff6424592a7a9addda000df0a?pvs=4)

Commenting is open 🙂

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [December 29, 2023, 3:35pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/24 "2023-12-29T15:35:50Z")

</div>

> [@TonyAIChamp](#):
>
> Which are the main challenges you see with RAG these days?

For simple RAG: Reliability, edge-cases, and as a consequence hallucinations for sure.

For private bots with well-known documents it’s not much of an issue as we already know the expected answer and are just using it for time efficiency. For learning/discovery, or public-facing chatbots, especially customer service it needs to either be very accurate, or at the least know when it can’t answer correctly.

One of my first tests with the OpenAI Retrieval was uploading a vehicle care guide and asking for torque values. If I listened to it’s authoritative answer my car would’ve dismantled on the road.

For reality: Recommendations, aggregations, comparisons, stacked questions, ambiguous questions, **incorrect** questions, keyword-focused questions. Questions that require some additional logic to answer.

I haven’t seen anyone bother touching this yet. Not on this forum anyways.

> [@Diet](#):
>
> I’m wondering, why do people get so hung up on assistants? I mean there might be something I’m missing, but to me it seems like assistants are (is?) a crappy version of agents on training wheels.

🤣 Totally is. As of now they are expensive & feel rushed. The reality for me is that OpenAI just _does_ things and we have to deal with the consequences afterwards. They break, we adapt, they break again.

With so many new tools and gadgets that I want to take advantage of it’s going to be a nightmare trying to stay on top of each other and their inevitable breaking unannounced updates.

So, I’m _hoping_ that in the future their Assistants will have already been tested on these updates. I want mine to use TTS, STT, GPT4V, & Function Calling. Maybe Dall-E. I also use my Assistants framework for a number of different applications. So it’s nice to just install the package, and plug-and-play.

Another benefit is being stateful. I have a Whatsapp Chatbot client. WhatsApp doesn’t even hold the conversation so when I get a new message it’s just that: a message. I don’t need a database for anything besides user profile information.

---

<div class="post-metadata">

**Author:** ![curt.kennedy](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/curt.kennedy/32/709249_2.png) [@curt.kennedy](https://community.openai.com/u/curt.kennedy)\
**Post date:** [December 29, 2023, 8:17pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/25 "2023-12-29T20:17:38Z")

</div>

I think one of the biggest difficulties is understanding user intent.

The intent of the user will then determine which action to take.

To solve this problem, you have to create a _control plane._

This control plane will first understand which resources are required to react to the users intent. Also, the control plane knows what it can and cannot answer, so another function of the control plane is to decide this, and possibly respond with “I cannot help you with that.”

For example, if a user says “What time is it?”, the control plane has to query the current time, which is outside of the LLM training data, decide if it has access to a time resource, and if it does, it retrieves it, and sends it back to the user, preferably in their time zone.

So a lot of moving parts in this simple question. Moving parts are “do I have access to time information”, and “do I know the users time zone”, and “if I have access to time, but not the users time zone, should I respond?”

This applies even to general RAG systems. For example, which RAG DB do I pull from given this question? Is this within scope?

So basically user intent and control plane logic is a difficult one.

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [December 29, 2023, 8:23pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/26 "2023-12-29T20:23:28Z")

</div>

Good point. I’m keeping my eye on smaller LLMs built for function calling for this exact purpose. To me it seems inevitable that we will need to route the query to a number of different agents.

My RAG as of now is very small and basically entails application design, purposes, and functionality. So I just use function calling with enums to accomplish this 🤷‍♂️

To me it makes sense to train a much smaller model on user intention classification, and then pass ambiguous/difficult queries to GPT-4 to infer.

Separating logic from GPT seems to be the key here. GPT, LLMs by extension are unstructured query handlers. Function calling brings the best of both words by classifying the intent, and also transforming the query.

---

<div class="post-metadata">

**Author:** ![SomebodySysop](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/somebodysysop/32/17613_2.png) [@SomebodySysop](https://community.openai.com/u/SomebodySysop)\
**Post date:** [December 29, 2023, 9:10pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/27 "2023-12-29T21:10:19Z")

</div>

> [@anon10827405](#):
>
> For reality: Recommendations, aggregations, comparisons, stacked questions, ambiguous questions, **incorrect** questions, keyword-focused questions. Questions that require some additional logic to answer.
> 
> I haven’t seen anyone bother touching this yet. Not on this forum anyways.

In order to deal with “reality”, you’ve got to deal with “real” end-users. Not the big-brained theorists, or the hobbyists, or even the early adaptors, but every day folk who don’t know nothing about tokens and prompt engineering and temperatures and topK (hell, I still don’t know what that means). The butcher, the baker, the candlestick maker. They just want to be able to ask a question and have the AI answer it as simply and completely as possible. The first time.

> [@curt.kennedy](#):
>
> So basically user intent and control plane logic is a difficult one.

Yeah, “difficult” is putting it mildly. When you come upon this, and the shocking reality that these machines aren’t as smart as we thought they were, that’s when the rubber hits the road and most of the well-thought-out theories and research papers fall apart.

Another major difficulty in developing LLM apps: Meeting end-user expectations.

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [December 29, 2023, 9:36pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/28 "2023-12-29T21:36:47Z")

</div>

100% agreed. It’s the bane of all interface developers. Abstract the code to an intuitive level for the layman.

It’s why I’m all about transform the initial query with a fine-tuned model. The professional that can filter and adapt. Before all this I use to own a construction company.

It’s all too common to deal with people who  
A) think they know it all, but fail on the nuanced and ultimately say things that make a big difference to me  
B) people who really don’t know anything, and that’s fine, but we need to know that and translate it all. Assuming a large degree of what they want

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 30, 2023, 1:14am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/29 "2023-12-30T01:14:50Z")

</div>

> [@anon10827405](#):
>
> For simple RAG: Reliability, edge-cases, and as a consequence hallucinations for sure.

What do you see as the source of these difficulties? Is it in the realm what we discussed with @SomebodySysop above?

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 30, 2023, 1:19am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/30 "2023-12-30T01:19:24Z")

</div>

> [@curt.kennedy](#):
>
> I think one of the biggest difficulties is understanding user intent.
> 
> The intent of the user will then determine which action to take.

100%. An interesting case I encountered while working on one of my latest clients.

A user is given a case interview question and then he can either start responding or ask clarifying questions. The challenge is that that answer itself may be a list of questions, so I spent a lot of time engineering a prompt that will distinguish between the 2 only to finally decide to use buttons at this stage (so when they are asked a question, I’m changing a chat inout form to 2 buttons: ask / answer).

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 30, 2023, 1:21am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/31 "2023-12-30T01:21:58Z")

</div>

Did you try Mistral tiny for that. After playing around with it for a while, it seems to me like a good candidate for what you are looking for.

---

<div class="post-metadata">

**Author:** ![anon34024923](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@anon34024923](https://community.openai.com/u/anon34024923)\
**Post date:** [December 30, 2023, 1:30am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/32 "2023-12-30T01:30:17Z")

</div>

> [@anon10827405](#):
>
> Based on current events with publishers I am **not** interested in having GPTs as my own personal assistants anymore

what happened? what’d i miss?

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [December 30, 2023, 3:34am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/33 "2023-12-30T03:34:30Z")

</div>

Yes, 100%!

> [@TonyAIChamp](#):
>
> Did you try Mistral tiny for that. After playing around with it for a while, it seems to me like a good candidate for what you are looking for.

I’ve been keeping my eye on [Gorrila](https://gorilla.cs.berkeley.edu/) for some time now. That, along with validators like [JsonFormer](https://github.com/1rgs/jsonformer) Seem to be moving in the right direction.

> [@anon34024923](#):
>
> what happened? what’d i miss?

The Axel Springer agreement. Where their articles get higher priority than others. I’m almost certain this will eventually lead to tracking, and advertising

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 30, 2023, 3:36am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/34 "2023-12-30T03:36:35Z")

</div>

> [@anon10827405](#):
>
> That, along with validators like [JsonFormer](https://github.com/1rgs/jsonformer) Seem to be moving in the right direction.

Thanks for the link! Will check it out!

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 30, 2023, 5:04am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/35 "2023-12-30T05:04:13Z")

</div>

Somebody sent me this:

 ![IMG_2886](https://us1.discourse-cdn.com/openai1/original/4X/8/4/8/84852c09ffc9e573175fb906bca002f8e76ac485.jpeg)

Anybody knows where is this picture from?

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/766292_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [December 30, 2023, 5:14am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/36 "2023-12-30T05:14:13Z")

</div>

> [@TonyAIChamp](#):
>
> Anybody knows where is this picture from?

> **[Retrieval-Augmented Generation for Large Language Models: A Survey](https://arxiv.org/abs/2312.10997)**
>
> Large language models (LLMs) demonstrate powerful capabilities, but they still face challenges in practical applications, such as hallucinations, slow knowledge updates, and lack of transparency in answers. Retrieval-Augmented Generation (RAG) refers...

---

<div class="post-metadata">

**Author:** ![Diet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/diet/32/562749_2.png) [@Diet](https://community.openai.com/u/Diet)\
**Post date:** [December 30, 2023, 9:49am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/37 "2023-12-30T09:49:07Z")

</div>

> [@TonyAIChamp](#):
>
> Here’s a draft an my essay where I try to explain my concept of anti-agent (a mix of imperative and declarative approaches) and compare it with the AI agents (more declarative approach)r: [Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://www.notion.so/valueto/Introduction-to-Anti-Agents-Comparing-declarative-and-imperative-approaches-in-conversational-AI-in-94ccf8dff6424592a7a9addda000df0a?pvs=4)

man, notion is a pain in the \*\*\*. at least they have trash security.

what you seem to be describing seems to be one attempt at dealing with the drawbacks of unmanaged conversations, or single layer prompt engineering - but it seems to me like most if not all of those issues can be mitigated by installing a goal management layer.

in my opinion/experience you can have your cake and eat it too in this case.

your post is still useful, in that it discusses the limitations of basic “prompt engineering” and raises the need for more stratified approaches. perhaps the need for a sort of “prompt architecture”?

Here’s a synopsis of your post, I’ll take it down if you don’t want it up

> **synopsis by gpt-4-1106-preview**
>
> The article “Introduction to Anti-Agents. Comparing declarative and imperative approaches in conversational AI interfaces” by Tony Simonovsky discusses the two predominant programming approaches for conversational artificial intelligence (AI) interfaces: declarative and imperative.
> 
> The declarative method is prevalent and is used in frameworks like Autogen and Assistants API. It allows developers to define the desired outcomes for AI agents, relying on the AI model to handle the execution details. This method is user-friendly and expedites the development process, excelling in scenarios that require flexible, context-aware interactions. However, it may struggle with complex, rule-heavy contexts, as AI’s effectiveness is bound by how much text it can process and use at a time.
> 
> The imperative approach, contrastingly, involves specifying detailed steps for the AI to follow. This provides developers with precise control and predictability, essential for managing intricate conversations. “Anti-agents” form a subset of this approach, combining structured dialogue flows with a limited amount of AI autonomy within each step. This method streamlines prompt engineering and allows for better modularity and testability, although it may lack the ability to adapt to unforeseen inputs and can feel less dynamic.
> 
> Simonovsky discusses examples in content creation, support/sales bots, and gaming to illustrate the use of AI agents (declarative) and anti-agents (imperative). In content creation, AI agents help with flexible, general tasks, while anti-agents handle complex, structured projects. In support/sales, an AI agent can adapt to diverse customer needs, whereas an anti-agent ensures adherence to specific protocols. In gaming, AI agents allow NPCs to dynamically interact with the player, while anti-agents ensure NPCs follow a precise narrative path.
> 
> The article concludes that while AI technology continues to improve, the structured, predictable nature of anti-agents is still crucial in scenarios requiring meticulous control. Developers should weigh the merits of both approaches to choose the one that suits their project’s needs and delivers the desired user experience. As LLMs evolve, the balance between AI agents’ autonomy and anti-agents’ guided structure will be key to advanced AI applications.

---

<div class="post-metadata">

**Author:** ![TonyAIChamp](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/tonyaichamp/32/251565_2.png) [@TonyAIChamp](https://community.openai.com/u/TonyAIChamp)\
**Post date:** [December 31, 2023, 5:07am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/38 "2023-12-31T05:07:23Z")

</div>

> [@Diet](#):
>
> man, notion is a pain in the \*\*\*. at least they have trash security.

Cannot agree, but anyways it is a draft version, I’ll then publish somewhere else.

> [@Diet](#):
>
> what you seem to be describing seems to be one attempt at dealing with the drawbacks of unmanaged conversations, or single layer prompt engineering - but it seems to me like most if not all of those issues can be mitigated by installing a goal management layer.

Could you elaborate?

> [@Diet](#):
>
> your post is still useful, in that it discusses the limitations of basic “prompt engineering” and raises the need for more stratified approaches. perhaps the need for a sort of “prompt architecture”?

This is an essay, so obviously doesn’t pretend to be truth, rather - my exploration of some of the LLM app development current challenges (especially with respect to AI agents controllability and testability).

I’m actually playing around with this concept on practice in AIConversationFlow: [GitHub - TonySimonovsky/AIConversationFlow: AI Conversation Flow provides a framework to create anti-agents to build complex non-linear LLM conversation flows, that are composable, controllable and easily testable.](https://github.com/TonySimonovsky/AIConversationFlow)

Thanks for posting the synopsis, man!

---

<div class="post-metadata">

**Author:** ![Diet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/diet/32/562749_2.png) [@Diet](https://community.openai.com/u/Diet)\
**Post date:** [December 31, 2023, 10:12am UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/40 "2023-12-31T10:12:01Z")

</div>

> [@TonyAIChamp](#):
>
> Could you elaborate?

you know, like we discussed last time - the objective management in this case

> [@Complex non-linear AI chat flows in gpt-3.5, how do you deal with them?](https://community.openai.com/t/complex-non-linear-ai-chat-flows-in-gpt-3-5-how-do-you-deal-with-them/553342/8):
>
> [2vy0x4] We built a system like this early this year, and the approach we had was to have multiple “subsystems” listening to the user conversation, each tasked with maintaining some internal state. A pertinent aggregate of the internal state of each subsystem contributed to the prompt of the chat system in real time, so to speak (although we didn’t interrupt generation at the time). some of the subsystems we had: objective manager (figure out what’s been accomplished, and what still needs …

---

<div class="post-metadata">

**Author:** ![plasmatoid](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/plasmatoid/32/229113_2.png) [@plasmatoid](https://community.openai.com/u/plasmatoid)\
**Post date:** [December 31, 2023, 11:55pm UTC](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180/41 "2023-12-31T23:55:24Z")

</div>

looks like a downgraded pre-version of RAG Fusion by Adrian R.

> **[GitHub - Raudaschl/rag-fusion](https://github.com/Raudaschl/rag-fusion)**
>
> Contribute to Raudaschl/rag-fusion development by creating an account on GitHub.

Sure, I can give you a video of it working:

[![](https://us1.discourse-cdn.com/openai1/original/4X/a/e/0/ae08e71b08b3cf47b1a693edeb447a66ef8a3efe.jpeg "RAG-FUSION : THE MOST DETAILED VIDEO") ](https://www.youtube.com/watch?v=ldq05Dbfz9A)

Also several sites by computer scientist Ph.D. describing it:

> **[RAG Fusion Revolution — A Paradigm Shift in Generative AI](https://medium.com/@kiran.phd.0102/rag-fusion-revolution-a-paradigm-shift-in-generative-ai-2349b9f81c66)**
>
> With the latest advancements in the field of NLP and Generative AI, the introduction of RAG (Retrieval Augmented Generation) promises an…

And a post on Langchain [LLamindex](https://python.langchain.com/docs/templates/rag-fusion)  
If you follow these steps, you will get good results.

People who ask if this will be useful, yes, and it is not possible for a single LLM to do without an IDE, and this is an excellent point. The context windows of LLMs are severally limited due to quadratic tokenization of the input through the transformation stages. We can solve this by having multiple AI agents handle seperate sections of the queries, as stated in ChatDev toscl, AI Jason Agent 3.0 (with build structures) with IDE seperation of Agents, and creation of in- computer warehouses, and then implementation of another type of LLM\> an SSM6 version MAMBA, which can handle large seq inputs. in combination with GPT4 Agents,  
By breaking all tasks down into smaller blocks, we create a development enviornment where multiple LLMs can handle the tasks of RAG, leading to the ability to create fusion type inferences.

1. Each LLM is able to create a RAG request.
2. The requests are then ranked by an oversight LLM
3. the best of the RAG results are then combined by an LLM
4. the combined result is presented to another LLM that is handling part of the input values.
5. the Oversight process is monitored by another LLM which gives tasks.  
Here are the links with programs using these features:  
[https://www.youtube.com/watch?v=Zlgkzjndpak&t=230s](https://www.youtube.com/watch?v=Zlgkzjndpak&t=230s) Chat dev toscl with video graphic interface so you can see the LLMs talking to each other.  
[https://www.youtube.com/watch?v=AVInhYBUnKs&t=1s](https://www.youtube.com/watch?v=AVInhYBUnKs&t=1s) LLM API that creates groups of research agents to prevent losing track of what is going on with warehouses.  
In combination with these technologies and software programming. Handling larger tasks becomes very simple.

[Previous page](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180.md?page=1)

[Next page](https://community.openai.com/t/biggest-difficulty-in-developing-llm-apps/571180.md?page=3)
