Looking for Libraries: Neo4J & Llamma / LLM

Hello folks,

Are you aware of any quality libraries in Prolog that enable access to Neo4J databases and LLM?

I would like to start a new project in Prolog, but currently the best libraries seem to be only available in Javascript or Python.

Thanks,
Quenio

The simplest short-term solution is to call through Python using library(janus). That allows for interfacing to just about anything Python can in a few lines. If, later, you want to simplify the installation you can create a native interface. For Neo4j you may use the HTTP API, either directly or if there is an OpenAPI spec through the openapi pack.

Most of these problems should be fairly trivial these days :slight_smile:

2 Likes

I was hoping I would not have to deal with HTTP myself, and I was also hoping I would not have to install and maintain Python on my Docker image, but it seems to be the only way yet :blush:

Not the only, but probably the simplest :slight_smile: Note that the swipl Docker library includes Janus, so you are ready to go.

2 Likes