Update configuration loading with Cargo.toml path and clean up .gitignore

---

This commit message concisely communicates the key changes:

1. The code now builds an absolute path to the `Cargo.toml` file, enhancing clarity in configuration loading.
2. The addition of `PathBuf` usage improves type safety.
3. The removal of unnecessary entries from `.gitignore` helps maintain a clean project structure.

These updates reflect improvements in both functionality and project organization.
This commit is contained in:
geoffsee
2025-08-31 14:06:44 -04:00
parent 7bc9479a11
commit 38d51722f2
3 changed files with 14 additions and 15 deletions

View File

@@ -85,11 +85,6 @@ The architecture supports multiple deployment patterns:
- **Bun**: Required for TypeScript CLI client: `curl -fsSL https://bun.sh/install | bash`
- **Node.js**: Alternative to Bun, supports OpenAI SDK v5.16.0+
#### WASM Frontend Toolchain
- **Trunk**: Required for Leptos frontend builds: `cargo install trunk`
- **wasm-pack**: `cargo install wasm-pack`
- **WASM target**: `rustup target add wasm32-unknown-unknown`
#### ML Framework Dependencies
- **Candle**: Version 0.9.1 with conditional compilation:
- macOS: Metal support with CPU fallback for stability
@@ -134,11 +129,6 @@ cargo build --bin cli --package inference-engine --release
cargo build --bin embeddings-engine --release
```
**Web Frontend:**
```bash
cd crates/leptos-app
trunk build --release
```
### Running Services
@@ -435,8 +425,7 @@ For Kubernetes deployment details, see the [ARCHITECTURE.md](docs/ARCHITECTURE.m
**Symptom:** WASM compilation failures
**Solution:**
1. Install required targets: `rustup target add wasm32-unknown-unknown`
2. Install trunk: `cargo install trunk`
3. Check RUSTFLAGS in leptos-app/run.sh
2. Check RUSTFLAGS in leptos-app/run.sh
### Network/Timeout Issues
**Symptom:** First-time model downloads timing out
@@ -484,7 +473,6 @@ cd crates/leptos-app && ./run.sh &
**Cleanup:**
```bash
pkill -f "predict-otron-9000"
pkill -f "trunk"
```
For networked tests and full functionality, ensure Hugging Face authentication is configured as described above.