I’m interested in developing a swipl library to interface with the GPT-3 API. Is anyone already working on that?
Motivation: Large language models (LLM) like GPT are all the rage right now because they’ve advanced the quality of natural language processing. While OpenAI’s GPT isn’t open source, it does provide free and low-cost access. It also has a well-documented API.
At the moment, libraries exist for Python and NodeJS, but not Prolog. However, some of the current issues with using LLMs like GPT is that they suffer from reasoning problems like hallucinations and unfaithful chains of reasoning (see “Faithful Chain-of-Thought Reasoning” 2023 Lyu et al). One avenue of tackling these problems is to integrate non-machine learning modules, like logic engines, with the LLM. This seems like an opportunity for environments like Prolog, which are strong in the older approaches to AI, like rule-based inference.