Intergrating AI on Kolibri (Offline Connections)

Hello all, I have been brainstorming how AI can be integrated into Kolibri and help students study. Any experts an how this can be done because I got ideas from local schools, and some questions they ask are available on Chat AI online, but what about those in marginalised areas? How or what can we do to help them? I have asked around my community those who have the know-how of creating this AI, but they say one must be connected to the internet. What if we feed the server with all info available and when one can’t find the answer? (Or the server doesn’t have that solution, the administrator can go get the answer and feed it back, so when the students get in a second time can find the answer needed.) Just a wild thought.

1 Like

I think there are some open LLMs that could be used, but I don’t have the knowledge about how they can be integrated. Is there any project working on this that I could join?

Hi @myce and @victortiz,

We have been doing experimentation and prototyping on this, mostly focusing on locally hostable models from model families such as Phi, Gemma, and Llama, in order to stick to our offline-first functionality and principles. We don’t have anything that is more broadly testable just yet, but we will be sure to let you know when there is something that you could experiment with in your implementations.

Kind Regards,
Richard

1 Like

Integrating the AI with the package would be great. I run a couple of local AI ChatBots using Ollama and WebUI via Docker.

Would it be possible to get the local LLMs to access the locally running Kolibri via the API?

1 Like

@nativebreed - I think the easiest way to handle this would be to expose an MCP via OpenSearch: https://opensearch.org/blog/introducing-mcp-in-opensearch/ then use the Kolibri OpenSearch plugin to have it connected to the OpenSearch server: GitHub - learningequality/kolibri-opensearch-plugin

Note that we have not tested this plugin with recent versions of Kolibri, but we would be happy to update it if it does not work as expected.

1 Like

Thanks for the information. I tried installing the plugin but I just couldn’t. I think might be because I am using an old docker image treehouses/kolibri:latest - which is installs ā€œKolibri 0.12.8ā€.

The command ā€œpip install kolibri_opensearch_pluginā€ - installs the plugin - no errors.

I couldn’t get pass the command ā€œkolibri plugin kolibri_opensearch_plugin enableā€. Always end up with the same error ā€œkolibri.plugins.utils.PluginDoesNotExist: Plugin ā€˜kolibri_opensearch_plugin’ does not seem to exist. Is it on the PYTHONPATH?ā€

There may be something missing from the open search plugin - but 0.12.8 is also an incredibly old version, we are not able to support such an old version at this juncture.