How can I access the custom knowledge base with GPT API?

Hi,

I’m interested in creating a chat app using the GPT API, where I can add my own knowledge base. Is it possible to upload my custom data to GPT’s server and access it through the API? I’ve seen some apps doing something similar and would appreciate your input on this.

Thanks!

1 Like

Welcome to the forum!

Asking your question of kapa.ai on the OpenAI Discord forum.


Question

I’m interested in creating a chat app using the GPT API, where I can add my own knowledge base. Is it possible to upload my custom data to GPT’s server and access it through the API? I’ve seen some apps doing something similar and would appreciate your input on this.

Reply

Based on the information available in the provided extracts, it appears that OpenAI does not currently support the ability to upload custom data to the GPT server and access it through the API. Custom GPT models are only available via ChatGPT Plus, and they are not accessible via the developer API source (https://community.openai.com/t/545254).

You may need to develop your own solution using API models that offer similar techniques and handle the language data yourself source (https://community.openai.com/t/545254).

For creating a chat app, you might want to look into the Assistants API source (https://community.openai.com/t/589868).

For more detailed instructions on how to use the API, you can refer to the OpenAI documentation source (https://platform.openai.com/docs). If you need to customize the behavior of the chat model, you might find the article on custom instructions for ChatGPT helpful source (https://help.openai.com/en/articles/8142208-chatgpt-android-app-faq#h_70d81691ec).

Please note that this information is based on the provided extracts and may not be fully comprehensive. For the most accurate and up-to-date information, I recommend checking the official OpenAI resources.


With regards to provided extracts, kapa.ai bot has access to

Note: I added links for provided extracts based on my best understanding. There my be more, some may be wrong.


In short the answer to your question

Is it possible to upload my custom data to GPT’s server and access it through the API?

is no.

You cannot access your GPT with api as it’s not supported yet. What you do otherwise is create an Assistant using Assistants api which has similar functionality as your Custom GPT and then invoke it using api

I have created an open-source for the same use-case to let anyone start with boilerplate needed for converting GPT to Assistant and is available here GitHub - SamurAIGPT/Open-Custom-GPT: Create Custom GPT and add/embed on your site using Assistants api