This project follows the OpenAI documentation to customize an intelligent assisant for an airport, providing an actual fine-tuning process example.
python 3.8
pip install -r requirements.txt
Prepare your training data (e.g., train_data.jsonl
)
In preparing_dataset.ipynb
, I use OpenAI API to generate multiple questions with the same semantics but different wording, hoping to improve the model's performance.
Note: You can use function to validate your data format in training.ipynb
To train your model, use the training.ipynb
Official OpenAI API documentation on fine-tuning: OpenAI Document