Kanao is a project designed to train a GPT (Generative Pre-trained Transformer) model on custom datasets. It provides the capability to train the model using various data sources, including PDFs, Word documents, plain text files, and URLs.
Project description
Kanao 📚
Project Overview
Kanao is a project designed to train a GPT (Generative Pre-trained Transformer) model on custom datasets. It provides the capability to train the model using various data sources, including PDFs, Word documents, plain text files, and URLs.
Features
- Versatile Training: Train the GPT model on diverse data types, including PDFs, Word documents, plain text files, and URLs.
- Conversational AI: Utilize the trained model for generating responses in a conversational manner.
- Easy Integration: Seamlessly integrate Kanao into your projects for natural language understanding and generation.
Getting Started
To get started with Kanao, follow the installation instructions and examples in the documentation.
Installation
pip install Kanao
Usage
from kanao.core.kanao import Kanao
open_ai_api_key = ""
# Initialize Kanao
kanao_instance = Kanao(open_ai_api_key)
# Train the model on custom data
kanao_instance.train_on_pdf('path/to/pdf/file.pdf')
# Generate a response
response_txt = kanao_instance.generate_response("What is in the document?")
For more detailed usage, refer to the documentation.
Contribution
Contributions are welcome! Feel free to open issues or pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 kanao-1.0.0.tar.gz.
File metadata
- Download URL: kanao-1.0.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
139d1ca6fedb1cd2fe1d8482ed2a84e931c7a67dc06f1263b9416f707dd4af8a
|
|
| MD5 |
8dfabff606735ccc0618802221ea35c8
|
|
| BLAKE2b-256 |
1fbca1b2c8105aadb4b25ddecac27b2a8012a4ae7244e304e2c8412d68fcb4b1
|
File details
Details for the file kanao-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kanao-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4002cdb5990b70f8be0ae0dfac9f3708cc019e2d08dd192bc27516956344e84
|
|
| MD5 |
8e4dbcfacc65fcd9fc319d47fb1c84d3
|
|
| BLAKE2b-256 |
7a25aa15d2d5b67a9f90791653ee5debf1e69cc67fdfa03ab6d9a1240ed943cb
|