Log Processor & SBERT Training Tool
Project description
🧠 Vatrix
Vatrix is a command-line tool for processing log data, rendering natural language descriptions using Jinja2 templates, injecting augmented data, and generating training pairs for fine-tuning Sentence Transformers (SBERT).
✨ Features
- CLI-powered processing of logs
- Modular template system powered by Jinja2
- SBERT data generation and similarity scoring
- Supports file mode, stream mode, and CLI flags
- Exports training pairs to CSV
- Exports highly similar sentence pairs for SBERT fine-tuning
- Flexible and colorful logging with log rotation
📦 Installation
pip install vatrix
Or install the latest from source:
git clone https://github.com/brianbatesactual/vatrix.git
cd vatrix
make setup
🛠️ Usage
vatrix --mode file \
--render-mode all \
--input data/input_logs.json \
--output data/processed_logs.csv \
--unmatched data/unmatched_logs.json \
--generate-sbert-data \
--log-level DEBUG \
--log-file logs/vatrix_debug.log
Makefile Commands
make setup # Create venv and install dependencies
make run # Run log processor on default file
make stream # Start reading NDJSON from stdin
make retrain # Export SBERT sentence pairs
make freeze # Regenerate requirements.txt
make clean # Clean environment and build artifacts
make nuke # Full reset of the project environment
🧠 Example
🧪 Testing
make test
📁 Logs
All logs are saved to the logs/ directory with daily rotation.
🧼 Cleanup
make clean # Clean temp data
make nuke # Wipe and rebuild virtualenv
📚 License
MIT © Brian Bates
Built with ❤️ for log intelligibility and NLP adventures.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vatrix-0.1.1.tar.gz.
File metadata
- Download URL: vatrix-0.1.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15d0b7f0e58a55fed0b5ea09b951fa25b556e172e8187770b4bdcf86c525a20
|
|
| MD5 |
96523326f641aa938cd87719450c1081
|
|
| BLAKE2b-256 |
6ee4d2a196e2ed2512992730c0d043bac12aa8f17f7b92471f5f7e588f1e7b38
|
File details
Details for the file vatrix-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vatrix-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17548ed975acd41bb77e81dd538bf7b67eea648124ee1f257fe079c649958be6
|
|
| MD5 |
4ca5c408a7d38e72760d1658c36f7dd6
|
|
| BLAKE2b-256 |
cc5e7531dc748275ce5af636acfe4cc4fd68ca38a392a12945b6a50b5c60c597
|