In this guide, we will walk through the process of uploading data sources to your chatbot using the GPT-trainer API.Documentation Index
Fetch the complete documentation index at: https://guide.gpt-trainer.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following:- An API key for accessing the GPT-trainer API.
- A development environment or tool for making HTTP requests, such as Curl or a programming language like Python.
API Endpoint
The API endpoint for uploading data sources to your chatbot is:https://app.gpt-trainer.com/api/v1/chatbot/{uuid}/data-source/url.
Request Body
To upload a data source, you need to send a POST request to the API endpoint with a JSON request body containing the URL of the data source. Here’s an example request body:- url (string, required): Provide the URL of the data source you want to upload.