Skip to content

acseo/eshop-ai-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACSEO Eshop AI Tools

Description

This project is a PHP command-line tool based on Symfony Console. It allows you to analyze text or images to generate tags or descriptions using a large language model (LLM). The features are as follows:

  • text-to-tags: Analyze a text to generate a list of tags.
  • pictures-to-tags: Analyze one or more pictures to generate a list of tags.
  • text-to-description: Analyze a text to generate a complete description.
  • pictures-to-description: Analyze one or more pictures to generate a complete description.

Prerequisites

  • PHP 7.4 or higher
  • Composer
  • An account and API key for a large language model (LLM) service such as OpenAI.

Installation

  1. Clone the project repository:

    git clone https://github.com/acseo/eshop-ai-tools
    cd eshop-ai-tools
  2. Install the dependencies using Composer:

    composer install

Usage

Available Commands

  1. text-to-tags

    Analyze a text to generate tags.

    php bin/console text-to-tags "Your text here" --apiKey="your_api_key"

    Options:

    • --baseUri: Specify the LLM API endpoint (default is api.openai.com/v1).
    • --apiKey: API key for authentication.
    • --existingTags: List of existing tags that can be used.
    • --locale: Language to use (default is en_US).
  2. pictures-to-tags

    Analyze one or more pictures to generate tags.

    php bin/console pictures-to-tags image1.jpg image2.png --apiKey="your_api_key"

    Similar options as text-to-tags.

  3. text-to-description

    Analyze a text to generate a complete description.

    php bin/console text-to-description "Your text here" --apiKey="your_api_key"

    Similar options as text-to-tags.

  4. pictures-to-description

    Analyze one or more pictures to generate a complete description.

    php bin/console pictures-to-description image1.jpg image2.png --apiKey="your_api_key"

    Similar options as text-to-tags.

  5. pictures-to-product

    Analyze a picture and tranform it to a product

    php bin/console pictures-to-product prodcut.jpg --apiKey="your_api_key"

    Similar options as text-to-tags.

Configuration

You can configure default options such as baseUri and locale directly in the code or via environment variables.

Authors

This project was developed by the ACSEO team.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages