nextcloud / context_chat_backend

GNU Affero General Public License v3.0
5 stars 5 forks source link

Help to install this on my Nextcloud server, Debian #2

Closed witzker closed 8 months ago

witzker commented 9 months ago

Hi, I'm new with all this server stuff, so I hope to get help to install this:

  1. python -m venv .venv
  2. . .venv/bin/activate
  3. pip install --no-deps -r reqs.txt
  4. Install pandoc from your desired package manager (# apt install pandoc for Debian-based systems)

Clear so far

  1. Copy example.env to .env and fill in the variables How do I find the file during installation and what has to be changed only This: NEXTCLOUD_URL=http://nextcloud.local right?

  2. Configure config.yaml for the model name, model type and its parameters (which also includes model file's path and model id as per requirements, see example config) What has to be done here

  3. ./main.py Clear so far

Excuse me for asking, but I really could not find either in Forum nor on YouTube or google any explanation for Dummies. I'm very excited about this new A.I. features and want to have them working.

If you need more info about my configuration, pls. Let me know.

Hope for patience with a newbie. THX

kyteinsky commented 9 months ago

Hello,
Thank you for your interest in this project. The setup is very simple: 4 apps need to be installed and you would be good to go.

They are:

  1. AppAPI: https://apps.nextcloud.com/apps/app_api
  2. Context Chat App: https://apps.nextcloud.com/apps/context_chat
  3. Assistant App: https://apps.nextcloud.com/apps/assistant
  4. Context Chat Backend App: https://apps.nextcloud.com/apps/context_chat_backend

(NOTE) The backend app needs to be installed from the "External Apps" page in the top right menu. Others from the regular "Apps" page.

I will update the readme to make it more clear. The steps that you read were to manually install it without using the App Store.

witzker commented 9 months ago

Ah... Many THX for taking care - seems the solution to get this working is near. I finally got where to find The Context Chat Backend App

BUT is grayed out> image

Pls tell me the magic to be able to finally install this. Many THX

kyteinsky commented 9 months ago

It may be because docker isn't installed on your machine or the web server user does not have access to /var/run/docker.sock.
Let me know if that solves the issue. I will add this too to the readme then.

witzker commented 9 months ago

So Docker not installed: root@nextcloud ~# sudo systemctl status docker Unit docker.service could not be found. root@nextcloud ~#

Do I have to install docker on my Debian 11 or will it be installed with the apps you mentioned? pls. Tell me how to proceed.

kyteinsky commented 9 months ago

@witzker You will have to install docker yourself to run any external app (or AppAPI apps) and ensure that the Nextcloud's web server user has access to /var/run/docker.sock.
To check if the configuration is correct, visit the "External Apps" page from the top-right profile icon. If it says "Default Deploy daemon is not accessible", then it is not set up correctly.
- or -
In the "Your apps" section in the same page as the screenshot you posted.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.