Skip to main content

A simple and user-friendly library for AI services

Project description

RoCat: A Simple and User-Friendly Library for AI Services

RoCat is a Python library that provides a simple and user-friendly interface for integrating AI services into your projects.

Installation

You can install RoCat using pip:

pip install rocat ​

Usage

To use RoCat in your project, follow these steps:

  1. Import the necessary modules from the RoCat library:

from rocat import ChatbotModule, create_app, run_app ​

  1. Create an instance of the ChatbotModule with your OpenAI API key:

api_key = "YOUR_API_KEY" chatbot = ChatbotModule(api_key) ​

  1. Use the generate_response method to generate a response based on a user prompt:

user_prompt = "What is the capital of France?" response = chatbot.generate_response(user_prompt) print(response) ​

  1. (Optional) If you want to customize the system prompt for the chatbot, use the set_system_prompt method:

chatbot.set_system_prompt("You are a helpful travel assistant.") ​

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

Acknowledgements

RoCat is built on top of the following libraries:

  • OpenAI - API for AI services
  • Streamlit - Framework for building web applications

Contact

If you have any questions or inquiries, please contact the author:

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

rocat-0.1.10.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

rocat-0.1.10-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file rocat-0.1.10.tar.gz.

File metadata

  • Download URL: rocat-0.1.10.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for rocat-0.1.10.tar.gz
Algorithm Hash digest
SHA256 c4cf951dd45a74761c5356c9ac1bc7b6f58bb4b0f8e19a3338369b799179ddd6
MD5 008894ab9de88628ee5aba67f24aaf61
BLAKE2b-256 3f7d548185acc89543fad2a55a64ab437092488740be0d014551302aaded3dc4

See more details on using hashes here.

File details

Details for the file rocat-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: rocat-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for rocat-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 aa20115d7e0b7a73530184b7cd5cabcaf858905b97ecb0281d2d5381fd81cfe8
MD5 97ba83d127f9ea45e1a049de69382f95
BLAKE2b-256 40a828c0b25e3e87d94773b649e1c56dcf6caa2092c513de085e3adc43086ef5

See more details on using hashes here.

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