Getting Started - Kerdos-Infrasoft-Private-Limited/Kerdos-Infrasoft GitHub Wiki
Getting Started with Kerdos AI
Kerdos AI is a powerful Python library for text generation using state-of-the-art language models. It enables developers to easily integrate advanced AI text generation into their applications with a simple and intuitive API.
Installation
Choose your preferred installation method:
Using pip (from PyPI)
pip install kerdosai
Using git (from GitHub)
pip install git+https://github.com/kerdosdotio/kerdosai.git
Quick Start
Here’s a basic example to get you started in minutes:
from kerdosai import KerdosAI
# Initialize the model
model = KerdosAI()
# Generate text
response = model.generate("Hello, how are you?")
print(response)
Sample output:
Hello, how are you? I’m here to help you integrate AI capabilities seamlessly into your projects.
Key Features
- Text Generation: Generate high-quality, coherent text using cutting-edge language models.
- Custom Parameters: Control generation behavior with options like
temperature
,top_p
, andmax_length
. - Easy Integration: Simple, clean API designed for fast adoption in any Python project.
- Comprehensive Documentation: Full API references and examples to help you make the most out of the library.
API Reference Highlights
KerdosAI
Class
-
__init__(max_length=100, temperature=0.7, top_p=0.9)
Initializes the text generation model with default parameters. -
generate(prompt: str, max_length: int = None, temperature: float = None, top_p: float = None) -> str
Generates text based on the input prompt. Optional parameters override defaults.
Additional Resources
-
[GitHub Repository](https://github.com/kerdosdotio/kerdosai) Explore source code, contribute, and report issues.
-
[PyPI Package](https://pypi.org/project/kerdosai/) View package details, download stats, and version history.
-
Join Our Community Stay updated with new features, collaborate, and share ideas.
Start generating text smarter and faster with Kerdos AI!
© 2025 Kerdos Infrasoft Private Limited