Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.venv
volumes/
blog_data_and_embeddings*
12 changes: 12 additions & 0 deletions ollama_pgvector_helloworld/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
OLLAMA_HOST=192.168.51.13

POSTGRES_HOST=192.168.51.12
POSTGRES_PORT=5432
POSTGRES_USER=admin
POSTGRES_PASSWORD=crock-handling9-abdominal-fax-pavestone-exemplary-distrust
POSTGRES_DB=rust_sqlx

DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}

PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=crock-handling9-abdominal-fax-pavestone-exemplary-distrust
427 changes: 427 additions & 0 deletions ollama_pgvector_helloworld/blog_posts_data.csv

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions ollama_pgvector_helloworld/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: "3"
services:
pg_vector_postgres_dev:
image: timescale/timescaledb-ha:pg16
restart: unless-stopped
container_name: pgvector
# ports:
# - "5442:5442"
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
env_file:
- .env
networks:
pg_vector_dev:
ipv4_address: 192.168.51.12

ollama:
image: ollama/ollama
container_name: ollama
# ports:
# - "11434:11434"
volumes:
# - ./volumes/ollama/:/root/.ollama/
- /usr/share/ollama/.ollama/:/root/.ollama/
restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]
networks:
pg_vector_dev:
ipv4_address: 192.168.51.13

networks:
pg_vector_dev:
driver: bridge
ipam:
driver: default
config:
-
subnet: 192.168.51.0/24
Loading