Creating a ChatGPT application with Confluence data and LlamaIndex

Lejdi Prifti
5 min readOct 10, 2023

In this step-by-step tutorial, I am going to describe how to create a custom ChatGPT that finds information from Confluence spaces.

To build this custom ChatGPT, we are going to use the OpenAI large language model, Django and React.

The purpose of using Django is to create an API that we will use to ask questions. The Django API loads the information from Confluence and upon request, queries the LLM.

The purpose of using React is to create a minimalistic UI to ask question and display the response.

Let’s start!

A llama image generated with AI

Twitter: https://twitter.com/lejdipr

Website: https://lejdiprifti.com/blog/

Support the content: https://www.buymeacoffee.com/lejdiprifti

We begin with creating a Django project.

Django provides a command-line tool called django-admin to help us create and manage projects.

pip install django
django-admin startproject mygpt

Next, we go inside the directory chatgpt and create an app.

python manage.py startapp api

Perfect!

--

--

Lejdi Prifti

Software Engineer @ Linfa | Building daily | Sharing insights