Tip Of AI
Discover what you can do with AI
The datasette-chatgpt-plugin is a plugin for Datasette, a tool for exploring and visualizing data, that turns a Datasette instance into a ChatGPT plugin. With this plugin, users can ask questions about their data using ChatGPT, an AI language model developed by OpenAI. To install the datasette-chatgpt-plugin, it should be installed in the same environment as Datasette on a deployed instance. Alternatively, it can be installed using the datasette publish command. Once installed, the Datasette instance will work with the ChatGPT plugin system. To use the plugin, users need access to the ChatGPT preview. They can then go to the Plugins menu, select Plugin store, and install an unverified plugin by entering the URL of their Datasette instance. If that doesn't work, users can select Develop my own plugin and paste in the URL instead. The plugin can be discovered by ChatGPT by hitting the /.well-known/ai-plugin.json endpoint. Once the plugin is installed and discovered, users can ask questions about their data. Some examples of questions that can be asked include showing a list of tables or showing the first 10 rows of a specific table. In terms of development, the plugin code can be checked out, and a new virtual environment can be created to set up the plugin locally. Dependencies and test dependencies can be installed using the pip command, and tests can be run using pytest. The datasette-chatgpt-plugin is powered by Datasette and follows the Datasette code of conduct.