Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kanao-1.0.0.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

kanao-1.0.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page