refactor: consolidate to handler-base, migrate to pyproject.toml, add tests

This commit is contained in:
2026-02-02 07:10:54 -05:00
parent f0b626a5e7
commit 77d6822a63
10 changed files with 548 additions and 1122 deletions

View File

@@ -6,17 +6,10 @@ End-to-end voice assistant pipeline for the DaviesTechLabs AI/ML platform.
### Real-time Handler (NATS-based)
The voice assistant service listens on NATS for audio requests and returns synthesized speech responses.
The voice assistant service listens on NATS for audio requests and returns synthesized speech responses. It uses the [handler-base](https://git.daviestechlabs.io/daviestechlabs/handler-base) library for standardized NATS handling, telemetry, and health checks.
**Pipeline:** STT → Embeddings → Milvus RAG → Rerank → LLM → TTS
| File | Description |
|------|-------------|
| `voice_assistant.py` | Standalone handler (v1) |
| `voice_assistant_v2.py` | Handler using handler-base library |
| `Dockerfile` | Standalone image |
| `Dockerfile.v2` | Handler-base image |
### Kubeflow Pipeline (Batch)
For batch processing or async workflows via Kubeflow Pipelines.
@@ -106,11 +99,10 @@ NATS (voice.request)
## Building
```bash
# Standalone image (v1)
docker build -f Dockerfile -t voice-assistant:latest .
docker build -t voice-assistant:latest .
# Handler-base image (v2 - recommended)
docker build -f Dockerfile.v2 -t voice-assistant:v2 .
# With specific handler-base tag
docker build --build-arg BASE_TAG=latest -t voice-assistant:latest .
```
## Related