Skip to content

Commit

Permalink
initial attempt at memories
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr88 committed Dec 26, 2024
1 parent 7b411af commit 4537099
Show file tree
Hide file tree
Showing 10 changed files with 556 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ clean:
docker compose rm -f
docker volume prune --all -f
# make dev
dev: dev-stop docker-build
dev: docker-build
cp .env-dev .env
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up -d --build --remove-orphans
make logs
dev-restart: dev-stop dev
dev-stop:
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml down
docker compose rm -f
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ brotli = "*"
python-magic = "*"
pillow = "*"
valkey = {extras = ["libvalkey"], version = "*"}
numpy = "*"
pgvector = "*"
psycopg = {extras = ["pool", "binary"], version = "*"}

[dev-packages]
autopep8 = "*"
Expand Down
163 changes: 162 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from plugins.tts import TTS
from plugins.users import Users
from plugins.version import Version
from plugins.vectordb import VectorDb

env = Env()
log_channel = env.str("MM_BOT_LOG_CHANNEL")
Expand Down Expand Up @@ -60,6 +61,7 @@
Giphy(),
Ntp(),
Jira(),
VectorDb(),
Version(),
],
enable_logging=True,
Expand Down
18 changes: 17 additions & 1 deletion docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,20 @@ services:
entrypoint: /bin/true
volumes: []
restart: "no"
command: []
command: []
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
links:
- pg
depends_on:
- pg
volumes:
pgadmin-data:
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
VALKEY_DB: 0
links:
- valkey
- pg
labels:
com.centurylinklabs.watchtower.scope: mmchatgpt
command: [ 'python', 'bot.py' ]
Expand All @@ -23,6 +24,14 @@ services:
- redis-data:/data
expose:
- "6379"
pg:
image: pgvector/pgvector:pg17
env_file:
- .env
volumes:
- pg-data:/var/lib/postgresql/data
expose:
- "5432"
#watchtower:
# image: containrrr/watchtower:1.7.1
# volumes:
Expand All @@ -32,3 +41,4 @@ services:
volumes:
redis-data:
app-data:
pg-data:
Loading

0 comments on commit 4537099

Please sign in to comment.