Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
50246ef
Add Github Actions Python workflow
sahilds1 Jun 12, 2025
4ab7553
Clean up unused imports and duplicate definitions across API modules
sahilds1 Jun 16, 2025
3a17457
GPT41 Nano prompting
sahilds1 Jun 18, 2025
9574e19
Update the README
sahilds1 Jun 19, 2025
d476067
HOTFIX ModuleNotFoundError
sahilds1 Jun 19, 2025
8f79cb3
Merge branch '262-extract-meds-rules' into 262-choose-a-model-and-prompt
sahilds1 Jun 19, 2025
b183919
Refactor evaluation script and GPT-4.1 Nano handler for cleaner logic…
sahilds1 Jun 19, 2025
5ccb6a7
Add documentation on registering the Postgres server in pgAdmin
sahilds1 Jun 26, 2025
4517f1c
Added handleForm to MdNavBar so Balancer logo triggers the function
annunziatoc Jun 30, 2025
e5d7ac3
Merge branch 'listOfMed' into 262-choose-a-model-and-prompt
sahilds1 Jul 2, 2025
6c592be
Update evaluation README with example scripts and remove obsolete Cla…
sahilds1 Jul 3, 2025
6e41cf7
Refactor README.md: add TODOs
sahilds1 Jul 3, 2025
c483e69
DOC Add TODO items, update comments and improve code comments for cla…
sahilds1 Jul 8, 2025
dcb3b5a
Update deployment.yml
TineoC Jul 8, 2025
eafa48d
Update kustomization.yml
TineoC Jul 8, 2025
8843aab
Merge pull request #313 from CodeForPhilly/304-balancer-logo-in-heade…
taichan03 Jul 9, 2025
c03d990
Update README with detailed usage instructions and enhance evals.py t…
sahilds1 Jul 9, 2025
04de6d7
Merge pull request #305 from sahilds1/300-add-python-github-actions
taichan03 Jul 10, 2025
d012e23
ADD COLUMN for med sources table
taichan03 Jul 11, 2025
f64367b
hoping this fix all the errors this table is causing.
taichan03 Jul 11, 2025
e0c0479
update
taichan03 Jul 11, 2025
4f8cbad
Update README to clarify the purpose and usage of the script,
sahilds1 Jul 11, 2025
fe302b5
ADD TODOs
sahilds1 Jul 11, 2025
81cecae
Merge branch 'listOfMed' into 262-choose-a-model-and-prompt
sahilds1 Jul 11, 2025
3c9a1c9
Update README for clearer instructions, refactor evals.py for better …
sahilds1 Jul 11, 2025
905c2e0
Standardized icon and Balancer logo sizes in the sidebar
annunziatoc Jul 15, 2025
d1dd75c
Update evaluation README with metrics and API usage details, and add …
sahilds1 Jul 15, 2025
eef2a29
Update evaluation instructions, improve dataset generation section, a…
sahilds1 Jul 15, 2025
ff18a30
Tailored the fix to the File icon specifically instead of the span, w…
annunziatoc Jul 15, 2025
ffa86f7
Update dependencies list in and correct comment syntax in
sahilds1 Jul 15, 2025
42a4949
Update README.md
sahilds1 Jul 16, 2025
0e2893b
Update README.md
sahilds1 Jul 16, 2025
739533b
Reworked the Admin Portal UI, preventing overflows and generally impr…
annunziatoc Jul 16, 2025
d99d2f4
fixed typo under medications database
annunziatoc Jul 22, 2025
946d6c4
Update evaluation README
sahilds1 Jul 23, 2025
36e9e2d
Optimize evaluation performance using AsyncOpenAI for concurrent proc…
sahilds1 Jul 23, 2025
ac4a09e
Add comprehensive pytest test suite for evaluation module
sahilds1 Jul 23, 2025
f95ed69
Expand documentation for adding evaluation metrics and LLM models, in…
sahilds1 Jul 23, 2025
5551bd4
Merge pull request #315 from CodeForPhilly/282-standardize-icon-sizes…
taichan03 Jul 25, 2025
5362e14
Merge pull request #306 from sahilds1/262-choose-a-model-and-prompt
taichan03 Jul 25, 2025
11a3041
Merge branch 'listOfMed' into 317-llm-evals-enhancements
sahilds1 Jul 29, 2025
252071e
ADD Add support for limiting CSV rows during test execution and inclu…
sahilds1 Jul 29, 2025
f459090
F401 imported but unused
sahilds1 Jul 29, 2025
17bd0f6
Merge pull request #318 from sahilds1/317-llm-evals-enhancements
taichan03 Aug 5, 2025
4e73f1b
this is to display the sources in the reults and also fix the PDF aut…
taichan03 Aug 10, 2025
0add944
delete libraries not used
taichan03 Aug 10, 2025
ae28268
Merge pull request #334 from CodeForPhilly/display_source_08102025
taichan03 Aug 10, 2025
6f3c8a3
feat: #335 - edit wording of header banner
StubberG3 Aug 14, 2025
097570b
feat: #337 - add 'Donate' button to the About page
StubberG3 Aug 14, 2025
21f0d90
feat: #339 - Add donate link to top nav, sidenav, and footer; restruc…
StubberG3 Aug 14, 2025
1e879bc
feat: #336 - add team email to feedback page
StubberG3 Aug 14, 2025
0b3a758
feat: #336 - Use consistent styling for all welcome banners
StubberG3 Aug 14, 2025
63bb952
feat: #336, #332 - Use darker font for subtext
StubberG3 Aug 14, 2025
4c36da9
feat: #348 - Update responsive sizings for chat overlay
StubberG3 Aug 14, 2025
e915a4e
Merge pull request #353 from StubberG3/balancer/348/jj-overlay
taichan03 Aug 14, 2025
a858eb3
Merge pull request #351 from StubberG3/balancer/339/donate-nav
taichan03 Aug 14, 2025
90f6d46
Merge pull request #350 from StubberG3/balancer/337/donate
taichan03 Aug 14, 2025
05913b0
Merge pull request #352 from StubberG3/balancer/336/feedback
taichan03 Aug 14, 2025
98d34d4
Merge pull request #349 from StubberG3/balancer/335/warning-banner
taichan03 Aug 14, 2025
e1da3b1
Merge pull request #308 from sahilds1/307-update-readme
taichan03 Aug 14, 2025
82da7a3
feat: #331 - Add selected state to top nav items, including Admin Por…
StubberG3 Aug 15, 2025
00ae1d8
Revert "feat: #331 - Add selected state to top nav items, including A…
StubberG3 Aug 15, 2025
649f214
bugfix: #331 - Reapply commit 82da7a3 but without environment changes
StubberG3 Aug 15, 2025
ce0677d
Merge pull request #354 from StubberG3/balancer/331/top-nav-selected
taichan03 Aug 15, 2025
1591bac
feat: #340 - Display explanatory text when there are no options for e…
StubberG3 Aug 15, 2025
fa356cd
bugfix: #347 - Add any_pregnancy to clear form logic
StubberG3 Aug 15, 2025
986498a
feat: #358 - Add legal disclaimer to medication suggestion and footer
StubberG3 Aug 17, 2025
d077d98
update dockerfile because of needing new image
taichan03 Aug 17, 2025
aaa7dec
Merge branch 'listOfMed' of https://github.com/CodeForPhilly/balancer…
taichan03 Aug 17, 2025
9c403dd
update zoom in the pdf reader
taichan03 Aug 17, 2025
08656ba
feat: #357 - Content updates to About page
StubberG3 Aug 17, 2025
454133c
bugfix: #319 - Fix yesterday's date issue for publication date
StubberG3 Aug 18, 2025
bdbf1d1
Add assistant urls and views
sahilds1 Aug 18, 2025
674c8c3
Add docstrings and minor formatting improvements for code clarity
sahilds1 Aug 18, 2025
15c3e64
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Aug 18, 2025
1e71158
Update balancer_backend/urls.py
sahilds1 Aug 18, 2025
3342224
Fix typo in balancer_backend urls
sahilds1 Aug 18, 2025
68f65d4
feat: #359 - Add animation to chat button
StubberG3 Aug 18, 2025
fef2899
Improve logging, documentation, and response handling in assistant vi…
sahilds1 Aug 18, 2025
552b368
Merge pull request #365 from StubberG3/balancer/359/chat-animation
taichan03 Aug 19, 2025
d55025f
Merge pull request #360 from StubberG3/balancer/358/legal
taichan03 Aug 19, 2025
eecf921
Merge pull request #355 from StubberG3/balancer/340/tier-options
taichan03 Aug 19, 2025
61e80df
Merge pull request #362 from StubberG3/balancer/357/about
taichan03 Aug 19, 2025
e1605c2
Merge pull request #356 from StubberG3/balancer/347/any-pregnancy
taichan03 Aug 19, 2025
5f47eb7
Merge pull request #363 from StubberG3/balancer/319/publication-dates
taichan03 Aug 19, 2025
4376600
change debug logs to info logs for better visibility in production
sahilds1 Aug 19, 2025
ad099de
Add cost metrics and duration logging
sahilds1 Aug 19, 2025
a592916
feat: #357 - Add mission section to about page
StubberG3 Aug 19, 2025
4d2097c
Merge pull request #369 from StubberG3/balancer/357/about
taichan03 Aug 19, 2025
6161f5f
Change root logging level from DEBUG to INFO
sahilds1 Aug 19, 2025
67e06b5
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Aug 19, 2025
c90e95e
Update Docker Compose configuration for PostgreSQL and frontend services
sahilds1 Aug 20, 2025
ff13ad4
Update reasoning effort level and improve final response logging
sahilds1 Aug 20, 2025
e6d66a2
Simpler stateless chat interface that focuses on document-based assis…
sahilds1 Aug 20, 2025
2b5af3a
Simplify message rendering and update citation format in views
sahilds1 Aug 21, 2025
da4dacc
Restore files that only have linting changes
sahilds1 Aug 21, 2025
261634c
Restore files that had changes for local dev
sahilds1 Aug 21, 2025
5c3185f
Revert "Restore files that had changes for local dev"
sahilds1 Aug 21, 2025
5660b9f
update the pdf reader
taichan03 Aug 25, 2025
848c9e1
Merge branch 'listOfMed' of https://github.com/CodeForPhilly/balancer…
taichan03 Aug 25, 2025
9e8040d
Add HIPPA Compliance and PHI Disclaimer
sahilds1 Aug 25, 2025
1d5a1f7
Add conversation management to the Chat component using session storage
sahilds1 Aug 25, 2025
6f1161c
Prevent the “re-save after logout” behavior
sahilds1 Aug 25, 2025
3a64a47
Fix ChipsInput bug
hruday97 Aug 26, 2025
5591394
Exclude PriorMedications
hruday97 Aug 26, 2025
4a8a96c
Remove unneccessary print
hruday97 Aug 26, 2025
3db4409
Remove unneccessary print
hruday97 Aug 26, 2025
74a029e
Merge remote-tracking branch 'origin/listOfMed' into bugfix/20250825/…
hruday97 Aug 26, 2025
fa35396
Remove line from the disclosure
sahilds1 Aug 26, 2025
38c2e71
Merge pull request #378 from CodeForPhilly/bugfix/20250825/316-prior-…
taichan03 Aug 28, 2025
3b233e9
re do sources so that it has buttons
taichan03 Sep 1, 2025
beae306
Merge branch 'listOfMed' of https://github.com/CodeForPhilly/balancer…
taichan03 Sep 1, 2025
50f7cc5
fixed the paitant panel where other info selected was not being diaplyed
taichan03 Sep 1, 2025
980cbdc
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Sep 2, 2025
c2da354
Restore docker-compose.yml
sahilds1 Sep 2, 2025
839a924
Logging configuration
sahilds1 Sep 2, 2025
871706f
Linting and formating
sahilds1 Sep 2, 2025
e6a9a3f
Merge pull request #364 from sahilds1/345-add-rag-to-the-chatbot
taichan03 Sep 3, 2025
26f4f29
BUGFIX: OpenAI model reasoning summary requires org verification
sahilds1 Sep 4, 2025
15d2ee8
Merge pull request #386 from sahilds1/385-bugfix-model-reasoning-summary
taichan03 Oct 19, 2025
8d9439a
save changes to insert sources in patent summary
taichan03 Oct 25, 2025
1309567
feat: #395 - Add balancer email to Data Sources page
StubberG3 Oct 28, 2025
185584d
feat: #335 - Edit wording on notice to introduce first release; remov…
StubberG3 Oct 28, 2025
c0d7e60
Merge pull request #397 from StubberG3/balancer/335/warning-banner
taichan03 Oct 28, 2025
43b6657
Merge pull request #396 from StubberG3/balancer/395/sources
taichan03 Oct 28, 2025
bf8e97e
feat: #392 - Remove Euthymic from dropdown
StubberG3 Oct 28, 2025
f6ca050
feat: #392 - Rename Current state label to Current or Most recent state
StubberG3 Oct 28, 2025
fa4e6ee
Merge pull request #398 from StubberG3/balancer/392/euthymic
taichan03 Nov 11, 2025
f4adf0f
feat(ci): update containers-publish workflow
themightychris Nov 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/containers-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Containers: Publish"

on:
push:
tags: ["v*"]
release:
types: [published]

permissions:
packages: write
Expand All @@ -12,10 +12,10 @@ jobs:
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Login to ghcr.io Docker registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "listOfMed" ]
pull_request:
branches: [ "listOfMed" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install the code linting and formatting tool Ruff
run: pipx install ruff
- name: Lint code with Ruff
run: ruff check --output-format=github --target-version=py39
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,29 @@ Tools used for development:

### Running Balancer for development

Running Balancer:
- Start Docker Desktop and run `docker compose up --build`
- The email and password are set in `server/api/management/commands/createsu.py`
- Download a sample of papers to upload from [https://balancertestsite.com](https://balancertestsite.com/)
Start the Postgres, Django REST, and React services by starting Docker Desktop and running `docker compose up --build`

Running pgAdmin:
#### Postgres
- Download a sample of papers to upload from [https://balancertestsite.com](https://balancertestsite.com/)
- The email and password of `pgAdmin` are specified in `balancer-main/docker-compose.yml`
- The first time you use `pgAdmin` after building the Docker containers you will need to register the server.
The `Host name/address`, `Username` and `Password` are specified in `balancer-main/docker-compose.yml`
- The first time you use `pgAdmin` after building the Docker containers you will need to register the server.
- The `Host name/address` is the Postgres server service name in the Docker Compose file
- The `Username` and `Password` are the Postgres server environment variables in the Docker Compose file
- You can use the below code snippet to query the database from a Jupyter notebook:

```
from sqlalchemy import create_engine
import pandas as pd

engine = create_engine("postgresql+psycopg2://balancer:balancer@localhost:5433/balancer_dev")

query = "SELECT * FROM api_embeddings;"

df = pd.read_sql(query, engine)
```

#### Django REST
- The email and password are set in `server/api/management/commands/createsu.py`

## Local Kubernetes Deployment

Expand Down
2 changes: 1 addition & 1 deletion deploy/manifests/balancer/base/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
app: balancer
spec:
containers:
- image: chrissst/balancer
- image: ghcr.io/codeforphilly/balancer-main/backend
name: balancer
envFrom:
- configMapRef:
Expand Down
6 changes: 3 additions & 3 deletions deploy/manifests/balancer/overlays/dev/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resources:
- "../../base"

images:
- name: chrissst/balancer
newTag: v1

- name: ghcr.io/codeforphilly/balancer-main/backend
newTag: "1.0.2"
namespace: balancer
62 changes: 31 additions & 31 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
services:
db:
build:
context: ./db
dockerfile: Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=balancer
- POSTGRES_PASSWORD=balancer
- POSTGRES_DB=balancer_dev
ports:
- "5433:5432"
networks:
app_net:
ipv4_address: 192.168.0.2
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
build:
context: ./db
dockerfile: Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
PGADMIN_DEFAULT_EMAIL: balancer-noreply@codeforphilly.org
PGADMIN_DEFAULT_PASSWORD: balancer
# PGADMIN_LISTEN_PORT = 80
# volumes:
# - ./pgadmin-data:/var/lib/pgadmin
# # PGADMIN_LISTEN_PORT = 80
- POSTGRES_USER=balancer
- POSTGRES_PASSWORD=balancer
- POSTGRES_DB=balancer_dev
ports:
- "5050:80"
- "5433:5432"
networks:
app_net:
ipv4_address: 192.168.0.4
ipv4_address: 192.168.0.2
# pgadmin:
# container_name: pgadmin4
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: balancer-noreply@codeforphilly.org
# PGADMIN_DEFAULT_PASSWORD: balancer
# # PGADMIN_LISTEN_PORT = 80
# # volumes:
# # - ./pgadmin-data:/var/lib/pgadmin
# # # PGADMIN_LISTEN_PORT = 80
# ports:
# - "5050:80"
# networks:
# app_net:
# ipv4_address: 192.168.0.4
backend:
image: balancer-backend
build: ./server
Expand All @@ -52,13 +52,13 @@ services:
args:
- IMAGE_NAME=balancer-frontend
ports:
- "3000:3000"
- "3000:3000"
environment:
- CHOKIDAR_USEPOLLING=true
# - VITE_API_BASE_URL=https://balancertestsite.com/
- CHOKIDAR_USEPOLLING=true
# - VITE_API_BASE_URL=https://balancertestsite.com/
volumes:
- "./frontend:/usr/src/app:delegated"
- "/usr/src/app/node_modules/"
- "./frontend:/usr/src/app:delegated"
- "/usr/src/app/node_modules/"
depends_on:
- backend
networks:
Expand All @@ -72,4 +72,4 @@ networks:
driver: default
config:
- subnet: "192.168.0.0/24"
gateway: 192.168.0.1
gateway: 192.168.0.1
Loading