Skip to content

Commit

Permalink
update init ver to 1.0.0 and update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Dec 21, 2023
1 parent e1a84ab commit 56e3c1a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .run/context_chat_backend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="AE_VERSION" value="1.0.0" />
<env name="AE_VERSION" value="1.4.4" />
<env name="APP_ID" value="context_chat_backend" />
<env name="APP_PERSISTENT_STORAGE" value="$USER_HOME$/context_chat_backend_files" />
<env name="APP_PORT" value="9001" />
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ help:
#.PHONY: build-push
#build-push:
# docker login ghcr.io
# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:0.1.0 --tag ghcr.io/nextcloud/context_chat_backend:latest .
# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:1.0.0 --tag ghcr.io/nextcloud/context_chat_backend:latest .

.PHONY: deploy28
deploy28:
Expand All @@ -40,6 +40,6 @@ run28:
register28:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister context_chat_backend --silent || true
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register context_chat_backend manual_install --json-info \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"0.1.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10034,\"scopes\":{\"required\":[],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10034,\"scopes\":{\"required\":[],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
--force-scopes

4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Install the AppAPI App from the [App Store](https://apps.nextcloud.com/apps/app_
Install the Context Chat App from the [App Store](https://apps.nextcloud.com/apps/context_chat)
Install the Assistant App from the [App Store](https://apps.nextcloud.com/apps/assistant)
]]></description>
<version>0.1.0</version>
<version>1.0.0</version>
<licence>GPLv3</licence>
<author mail="[email protected]" homepage="https://github.com/kyteinsky">Anupam Kumar</author>
<namespace>Context Chat</namespace>
Expand All @@ -28,7 +28,7 @@ Install the Assistant App from the [App Store](https://apps.nextcloud.com/apps/a
<docker-install>
<registry>ghcr.io</registry>
<image>nextcloud/context_chat_backend</image>
<image-tag>0.1.0</image-tag>
<image-tag>1.0.0</image-tag>
</docker-install>
<scopes>
<required>
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.1.0 – 2023-12-21
## 1.0.0 – 2023-12-21
### Added
* the app

4 changes: 2 additions & 2 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ ANONYMIZED_TELEMETRY=False
VECTORDB_DIR=./vector_db_data

# AppAPI headers
AA_VERSION=1.4.3
AA_VERSION=1.4.4
APP_SECRET=12345
APP_ID=context_chat_backend
APP_DISPLAY_NAME=Context Chat Backend
APP_VERSION=0.1.0
APP_VERSION=1.0.0
APP_PROTOCOL=http
APP_HOST=0.0.0.0
APP_PORT=10034
Expand Down
7 changes: 3 additions & 4 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ Install the Assistant App from the [App Store](https://apps.nextcloud.com/apps/a
3. `pip install --no-deps -r reqs.txt`
4. Install pandoc from your desired package manager (`# apt install pandoc` for Debian-based systems)
5. Copy example.env to .env and fill in the variables
6. For using the Llama model as the llm, download a gguf llm model from [Hugging Face like the Dolphin Mistral Model](https://huggingface.co/TheBloke/dolphin-2.2.1-mistral-7B-GGUF/resolve/main/dolphin-2.2.1-mistral-7b.Q5_K_M.gguf) and place it in `model_files/` (huggingface provider models are auto downloaded)
7. 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)
8. `./main.py`
9. [Follow the below steps to register the app in the app ecosystem](#register-as-an-ex-app)
6. 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)
7. `./main.py`
8. [Follow the below steps to register the app in the app ecosystem](#register-as-an-ex-app)

## Local Setup (with docker)

Expand Down

0 comments on commit 56e3c1a

Please sign in to comment.