CRUD + RAG == Victory!

CRUD + RAG == Victory!

RAG implies providing context to the AI. RAG almost completely eliminates AI hallucinations, and also makes your interactions with the LLM much better. AI without RAG is like a car without gasoline. However, by adding CRUD to your RAG-based AI chatbots, you can extend your AI's abilities, have it reach out into the world, collect data, aggregate data, and basically function like "an app."

What is CRUD?

CRUD translates to Create, Read, Update, and Delete - And it's the axiom around which all data exists. It's the foundation for your database, your computer's files, your computer's memory, and basically everything in computing that requires "state." In fact, it could be argued that everything on the internet is really nothing but CRUD. When you write a Facebook post you're "creating data". No CRUD no Facebook.

What is RAG?

I've written about RAG in a previous article. You can find a link to it further up in this article. However, to sum it up with one sentence; RAG implies to "seed" your AI with information allowing it to answer questions accurately that it couldn't answer without RAG. RAG eliminates AI hallucinations in addition to that it makes the AI "smarter."

RAG basically turns an LLM such as ChatGPT into something that's 1,000 times "smarter"

What is an AI Assistant?

When you're speaking with an LLM such as ChatGPT, the AI generates responses. Its response can be in the form of instructions to you. An example can be for instance; "How can I SEO optimise my website" - At which point the AI will give you a detailed list of things you need to do.

An AI assistant however can be given instructions, such as for instance "SEO optimise my website" - At which point it could modify your website such that it becomes SEO optimised. The difference between an AI chatbot and an AI assistant is like the difference between a man in a wheel chair and Usain Bolt. An AI assistant can do things an AI chatbot cannot.

An AI chatbot tells you what to do. With an AI assistant, you tell it what to do!

CRUD + RAG == AI Assistants

By combining CRUD with RAG, you've got an AI chatbot capable of using context, making it 1,000x "smarter" than an AI chatbot without RAG. In addition you've got an AI chatbot that can also reach out into the world and "do stuff." This makes your AI chatbot turn into an AI assistant, where you tell it what to do instead of it telling you what to do.

Instead of adding to your workload an AI assistant removes parts of your workload

This allows you to have an AI that interacts with your CRM, WordPress account, ERP system, "whatever." All of the previously mentioned systems are literally nothing but CRUD applications, with some business logic sprinkled in here and there. The combination of CRUD, RAG, and AI, basically allows you to create a natural language interface to your existing applications where you can instruct the AI to do things such as for instance.

  • Send Peter an email
  • Give me Jane's phone number
  • Create an invoice for John
  • Publish an article about xyz
  • Etc ...

Beyond CRUD, into Business Logic

Once you've got AI, CRUD, and RAG, the only missing part of the equation becomes the ability to add business logic into the mix. Business logic can be things such as.

  • When sending an email, always CC me
  • When creating an invoice, please send it to Carry in the invoicing department
  • When hiring a new employee, please create a new email address with the following pattern
  • Etc ...

At AINIRO we've got unique proprietary technology that allows us to create AI assistants. This technology is called Magic Cloud, and it's based upon Low-Code and No-Code constructs. This allows us to deliver AI chatbots that has the following traits.

  • AI - Check!
  • RAG - Check!
  • CRUD - Check!
  • Business Logic - Check!

Basically delivering 100% customised AI assistants that somehow solves your problems by interacting with your existing applications, 100% autonomously. To understand how we can deliver such AI Assistants, it might be beneficial to watch the following video.

Wrapping up

AI is amazing, LLMs such as ChatGPT can provide you with unfathomable amounts of help. Adding RAG to the AI effectively makes it 1,000 times smarter. If you add CRUD to the AI in addition, you've got an AI chatbot that can interact with your applications and change "state" (read; Create, Read, Update and Delete data).

If you go further and add business logic to the AI chatbot, you've got something that can only be explained as "natural language based applications", further increasing the value of your AI chatbot by 1,000 times.

To understand the AINIRO difference is to understand we can do the above. We can basically create an AI-based SalesForce for you, an AI-based ERP for you, and even an AI-based CMS for you - Or interact with any of the previously mentioned systems you've got from before. As long as your existing systems have an API, and/or you've got a database we can access, we can wrap it inside an AI chatbot that becomes a natural language based application.

So far we haven't seen a single company in the world capable of delivering what we can deliver, and that's our unique selling proposition to you - Basically the ability to deliver generic AI-based "applications" that somehow solves your business requirements. AINIRO is about 4 axioms.

  • AI - Check!
  • RAG - Check!
  • CRUD - Check!
  • Business Logic - Check!

And that allows us to deliver AI-based systems nobody else out there can deliver!

Thomas Hansen

Thomas Hansen I am the CEO and Founder of AINIRO.IO, Ltd. I am a software developer with more than 25 years of experience. I write about Machine Learning, AI, and how to help organizations adopt said technologies. You can follow me on LinkedIn if you want to read more of what I write.

Published 3. Aug 2024

RAG, the Practical Path to AI

In this article I will explain how RAG works, and why not using RAG when interacting with AI implies you are losing out on a big opportunity.

Read More

Developers Prefers AI Chatbots for StackOverflow

69% of your users prefers AI Chatbots for customer service according to IBM.

Read More

Evolutionary AI Chatbots

At AINIRO we can deliver 'evolutionary AI chatbots', implying AI chatbots that changes their answer over time according to your instructions.

Read More