# Prolog in the age of generative AI

**URL:** <https://swi-prolog.discourse.group/t/prolog-in-the-age-of-generative-ai/6701>\
**Category:** General\
**Created:** [July 11, 2023, 8:25pm UTC](https://swi-prolog.discourse.group/t/prolog-in-the-age-of-generative-ai/6701 "2023-07-11T20:25:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [July 16, 2023, 9:55am UTC](https://swi-prolog.discourse.group/t/prolog-in-the-age-of-generative-ai/6701/5 "2023-07-16T09:55:01Z")

</div>

> [@free-variation](#):
>
> generative AI may breathe new life into Prolog.

Some food for thought.

One of the speculated ideas of how GPT-4 works is as a Mixture Of Experts ([MOE](https://en.wikipedia.org/wiki/Mixture_of_experts)) ([blog](https://machinelearningmastery.com/mixture-of-experts/))

Following along those lines it could be seen that to add new experts to GPT-4 they are tried out first as an alpha or beta.

One such current alpha is the Code Interpreter ([ref](https://openai.com/blog/chatgpt-plugins)) but don’t think of it as something that generates Python code, think of it as an expert that has some abilities to do what some of the other experts can not do such as math or data analysis.

For details on this line of thought see

> **[What AI can do with a toolbox... Getting started with Code Interpreter \[Now...](https://www.oneusefulthing.org/p/what-ai-can-do-with-a-toolbox-getting)**
>
> Democratizing data analysis with AI

So a similar expert based on Prolog for other forms of questions/problems would be in the purview of what you seek.

If you expand this out a bit, then s(CASP), constraints, etc. should also be considered.

* * *

Note: Code Interpreter is considered a ChatGPT plugin, I also created a ChatGPT SWI-Prolog plugin as a proof of concept. ([GitHub](https://github.com/EricGT/SWI-Prolog-validation)) ([Details/Demo](https://swi-prolog.discourse.group/t/chatgpt-plugin-a-basic-example-using-swi-prolog-on-the-backend/6627))

---

_[View the full topic](https://swi-prolog.discourse.group/t/prolog-in-the-age-of-generative-ai/6701)._
