I am evaluating at the moment how to use OpenAI and AI in general. Unfortunately I have no detailed understanding about machine learning, but this does not stop me to leverage them.
In the first iteration I integrated an command in the CLI to generate schemas and contents using OpenAI.
How to apply
Starting with v11.0.0 you can use the following command:
ai generate-contents "The ten biggest countries with name, iso2code and area" -k "YOUR KEY"
This will provide a overview of the schema and contents:
Schema Name: ten-biggest-countries
Schema Fields:
---------------------
| Name | Type |
---------------------
| name | string |
---------------------
| iso2code | string |
---------------------
| area | number |
---------------------
Count: 3
Contents:
---------------------------------------
| name | iso2code | area |
---------------------------------------
| Russia | RU | 17124442 |
---------------------------------------
| Canada | CA | 9984670 |
---------------------------------------
| China | CN | 9631411 |
---------------------------------------
| United States | US | 9363520 |
---------------------------------------
| Brazil | BR | 8515767 |
---------------------------------------
| Australia | AU | 7692024 |
---------------------------------------
| India | IN | 3287263 |
---------------------------------------
| Argentina | AR | 2780400 |
---------------------------------------
| Kazakhstan | KZ | 2724900 |
---------------------------------------
| Algeria | DZ | 2381741 |
---------------------------------------
Count: 10
Especially the schema name is not ideal in most cases, but you can override it:
ai generate-contents "The ten biggest countries with name, iso2code and area" -k "YOUR KEY" --schema countries
In general any help is welcome, because It makes a big difference how you write the messages and I am no expert in that.
If you want to apply then add the --execute
flag:
ai generate-contents "The ten biggest countries with name, iso2code and area" -k "YOUR KEY" --schema countries --execute
Other ideas
I have a few other ideas:
- Integration for editors to generate content (using OpenAI)
- Better tagging of images and object recognition: https://medium.com/analytics-vidhya/best-open-source-and-free-custom-object-detection-python-repositories-libraries-3595446857e
- Automatically detect focus points: https://thumbor.readthedocs.io/en/latest/detection_algorithms.html