Skip to content

Commit 46b17de

Browse files
authored
Merge pull request #91 from BitPolito/rag
Rag
2 parents eef5820 + 7663598 commit 46b17de

196 files changed

Lines changed: 25630 additions & 23185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(/usr/local/bin/node --version)",
5+
"Bash(/opt/homebrew/bin/node --version)",
6+
"Read(//opt/homebrew/bin/**)",
7+
"Bash(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh)",
8+
"Bash(bash)",
9+
"Bash(curl -LsSf https://astral.sh/uv/install.sh)",
10+
"Bash(sh)",
11+
"Bash(python3 -c \"import secrets; print\\(secrets.token_hex\\(32\\)\\)\")"
12+
]
13+
}
14+
}

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, rag]
66
pull_request:
7-
branches: [main]
7+
branches: [main, rag]
88

99
jobs:
1010
backend:
@@ -38,22 +38,22 @@ jobs:
3838
with:
3939
python-version: "3.11"
4040
cache: pip
41-
cache-dependency-path: services/ai/requirements.txt
41+
cache-dependency-path: services/ai/pyproject.toml
4242

4343
- name: Install dependencies
44-
run: pip install -r requirements.txt
44+
run: pip install -e ".[dev]"
4545

4646
- name: Type check (mypy)
47-
run: mypy .
47+
run: mypy app
4848
env:
4949
DATABASE_URL: postgresql://bitcoin_academy:bitcoin_academy@localhost:5432/bitcoin_academy
50-
SECRET_KEY: ci-secret-key-32-chars-minimum!!
50+
SECRET_KEY: CI-AUTH-JWT-KEY-FOR-PIPELINE-ONLY-32!
5151

5252
- name: Run tests (pytest)
5353
run: pytest
5454
env:
5555
DATABASE_URL: postgresql://bitcoin_academy:bitcoin_academy@localhost:5432/bitcoin_academy
56-
SECRET_KEY: ci-secret-key-32-chars-minimum!!
56+
SECRET_KEY: CI-AUTH-JWT-KEY-FOR-PIPELINE-ONLY-32!
5757
ENVIRONMENT: development
5858

5959
frontend:
@@ -82,6 +82,8 @@ jobs:
8282

8383
- name: Lint
8484
run: npm run lint
85+
env:
86+
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000/api
8587

8688
- name: Run tests (Jest)
8789
run: npm test -- --ci --passWithNoTests

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ htmlcov/
5555
.dmypy.json
5656
dmypy.json
5757

58+
# Test coverage reports
59+
apps/web/coverage/
60+
5861
# Node.js / npm / yarn / pnpm
5962
node_modules/
6063
npm-debug.log*
@@ -77,8 +80,10 @@ out/
7780
.env.*.local
7881
.env.production.local
7982

80-
# Lock files (optional - uncomment if you want to exclude)
83+
# Lock files — ignore root-level, but track app lock files for reproducible CI
8184
package-lock.json
85+
!apps/web/package-lock.json
86+
!workers/qvac-service/package-lock.json
8287
# yarn.lock
8388
# pnpm-lock.yaml
8489

@@ -103,7 +108,7 @@ temp/
103108

104109
# Docker
105110
.dockerignore
106-
docker-compose.override.yml
111+
docker-compose.local.yml
107112

108113
# IDE config
109114
.editorconfig
@@ -150,3 +155,8 @@ docs/
150155
*.jsonl
151156
parsed_output/
152157
chroma_db/
158+
159+
# AI service runtime artifacts
160+
services/ai/uploads/
161+
services/ai/qvac_ingest/
162+
services/ai/rag_test_results*.json

BitPolito-Academy-UI/academy.html

Lines changed: 0 additions & 183 deletions
This file was deleted.

BitPolito-Academy-UI/assets/bitpolito-logo.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

BitPolito-Academy-UI/assets/icon-github.svg

Lines changed: 0 additions & 55 deletions
This file was deleted.

BitPolito-Academy-UI/assets/icon-moon.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

BitPolito-Academy-UI/assets/icon-sun.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)