Skip to content
Merged

Rag #91

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
92623fd
fix(security): bump python-jose 3.3.0 to 3.4.0 (CVE-2024-33663, CVE-2…
lucaosti May 9, 2026
506d68a
fix(security): bump python-dotenv 1.0.0 to 1.2.2 (alert #22)
lucaosti May 9, 2026
7c8dd32
fix(security): bump pytest 7.4.3 to 9.0.3 and pytest-asyncio to 0.24.…
lucaosti May 9, 2026
eff1549
fix(security): bump next 14 to 15.5.15 and eslint-config-next to matc…
lucaosti May 9, 2026
368e68e
Refactor QVAC pipeline tests and service integration
longobucco May 9, 2026
7c74c02
Enhance accessibility and UI consistency
longobucco May 11, 2026
19251c7
chore: untrack coverage report files and add to gitignore
lucaosti May 11, 2026
4b29484
fix(deps): remove pytest from production deps and align python-dotenv…
lucaosti May 11, 2026
b32fa9f
Merge pull request #90 from BitPolito/fix/security-dependabot-alerts
longobucco May 12, 2026
bd91b98
feat: enhance README and API documentation; add hybrid search and par…
longobucco May 13, 2026
41933ee
refactor(rag): unify RAG pipeline in chat_service, add hybrid_search …
lucaosti May 13, 2026
cfde57c
fix(tests): resolve all pre-existing unit test failures
lucaosti May 13, 2026
8273f90
Merge pull request #92 from BitPolito/fix/rag-review
longobucco May 13, 2026
e7af7dc
feat: Enhance LLM integration and context compression
longobucco May 13, 2026
ebd296d
docs: update README with RAM usage details and add troubleshooting se…
longobucco May 13, 2026
7db573a
fix: resolve all high-priority production-readiness issues (H3, H5, H…
longobucco May 15, 2026
c79ddcb
fix: resolve medium-priority production-readiness issues (R3, R4, R5,…
longobucco May 15, 2026
70211e8
feat: resolve high-priority SOTA gap issues (Q1, Q2, Q3, #88)
longobucco May 15, 2026
df8c2a9
fix(rag): Q5 Bitcoin BM25 tokenizer, Q7 compress by default, R8 dead …
longobucco May 15, 2026
17fe1f4
feat(rag): Q6 formula chunks, Q8 feedback, R6 semantic cache, R16 str…
longobucco May 15, 2026
6883a05
fix(infra): D1 Docker SSR URL, T2 CI pipeline for rag branch
longobucco May 15, 2026
6c5f832
fix(rag): resolve architecture issues A1–A9
longobucco May 15, 2026
b5a38c4
readme updated
longobucco May 15, 2026
d7be766
feat(ux): implement U1–U5 — stream retry, feedback fix, reindex, doc …
longobucco May 15, 2026
6bed01d
feat(infra): implement D2–D5 — compose split, resource limits, Caddy,…
longobucco May 15, 2026
8120de7
fix(ci): resolve all three CI failures — mypy duplicate module, missi…
longobucco May 15, 2026
a09fcf5
fix(ci): mypy app instead of mypy dot; remove npm workspaces from root
longobucco May 15, 2026
0ff09cb
fix(ci): disable namespace packages in mypy; regenerate lock files
longobucco May 15, 2026
eaa40de
fix(ci): remove stale services/__init__.py; fix lint env; align tests
longobucco May 15, 2026
34bb318
fix(ci): resolve all pre-existing mypy errors and test failures
longobucco May 15, 2026
9e79b26
fix(ci): change SECRET_KEY; polyfill crypto.randomUUID for Jest
longobucco May 15, 2026
3c2c8f0
fix(ci): replace blocked SECRET_KEY; update tests for streaming chat API
longobucco May 15, 2026
520dffc
fix(backend): add email-validator dependency for Pydantic EmailStr
longobucco May 15, 2026
03f16fc
fix(api): implement responses endpoints; update chat service tests
longobucco May 15, 2026
a34a97f
readme updated
longobucco May 15, 2026
2699c2c
feat: add optional dependency for bare-runtime-darwin-arm64 and updat…
May 16, 2026
7663598
Add RAG test suite for The Bitcoin Standard with comprehensive query …
May 16, 2026
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
14 changes: 14 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"permissions": {
"allow": [
"Bash(/usr/local/bin/node --version)",
"Bash(/opt/homebrew/bin/node --version)",
"Read(//opt/homebrew/bin/**)",
"Bash(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh)",
"Bash(bash)",
"Bash(curl -LsSf https://astral.sh/uv/install.sh)",
"Bash(sh)",
"Bash(python3 -c \"import secrets; print\\(secrets.token_hex\\(32\\)\\)\")"
]
}
}
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main]
branches: [main, rag]
pull_request:
branches: [main]
branches: [main, rag]

jobs:
backend:
Expand Down Expand Up @@ -38,22 +38,22 @@ jobs:
with:
python-version: "3.11"
cache: pip
cache-dependency-path: services/ai/requirements.txt
cache-dependency-path: services/ai/pyproject.toml

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

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

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

frontend:
Expand Down Expand Up @@ -82,6 +82,8 @@ jobs:

- name: Lint
run: npm run lint
env:
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000/api

- name: Run tests (Jest)
run: npm test -- --ci --passWithNoTests
Expand Down
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ htmlcov/
.dmypy.json
dmypy.json

# Test coverage reports
apps/web/coverage/

# Node.js / npm / yarn / pnpm
node_modules/
npm-debug.log*
Expand All @@ -77,8 +80,10 @@ out/
.env.*.local
.env.production.local

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

Expand All @@ -103,7 +108,7 @@ temp/

# Docker
.dockerignore
docker-compose.override.yml
docker-compose.local.yml

# IDE config
.editorconfig
Expand Down Expand Up @@ -150,3 +155,8 @@ docs/
*.jsonl
parsed_output/
chroma_db/

# AI service runtime artifacts
services/ai/uploads/
services/ai/qvac_ingest/
services/ai/rag_test_results*.json
183 changes: 0 additions & 183 deletions BitPolito-Academy-UI/academy.html

This file was deleted.

3 changes: 0 additions & 3 deletions BitPolito-Academy-UI/assets/bitpolito-logo.svg

This file was deleted.

55 changes: 0 additions & 55 deletions BitPolito-Academy-UI/assets/icon-github.svg

This file was deleted.

3 changes: 0 additions & 3 deletions BitPolito-Academy-UI/assets/icon-moon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions BitPolito-Academy-UI/assets/icon-sun.svg

This file was deleted.

Loading
Loading