Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Rutam Prita Mishra
Rutam Prita Mishra

Posted on

     

Deploying DocsGPT on Kamatera Performance Cloud

Cover

Introduction

DocsGPT is an open-source smart solution powered by AI that helps you retrieve relevant information from any technical documentation. This saves the time and effort of manual searches and makes it easier for users to get acquainted with the technical products or even use them.

In this tutorial, you will learn how to host a DocsGPT instance on the Kamatera Cloud Server.

Creating a Kamatera Cloud Server

Kamatera Cloud is one of the popular cloud providers that provides budget-friendly cloud solutions for enterprises of all levels.

To create a cloud server on Kamatera Cloud, follow the steps below.

Step 1:Sign up for a free account and get a 30-day free trial to test its solutions. If you're an existing user, simplylogin to your account.

Sign Up

Step 2: Once you're in the dashboard, click onMy Cloud and then click onServers.

Dashboard

Step 3: In theServer Management dashboard, click on theCreate New Server button.

New Server Page

Step 4: You need to define the server configuration in theCreate New Server page. For this tutorial, feel free to use the configuration specified below.

  • Choose Zone: Asia (China, Hong Kong) [Choose the closest zone to you.]
  • Choose An Image: Server OS Images
    • Image: Ubuntu
    • Choose Version: 22.04 64_bit_optimized_updated
  • Choose Server Specs: Use the specs given below.
    • Type: B General
    • CPU: 2
    • RAM: 4GB
    • SSD DISK#1: 30GB
    • Daily Backup: Leave it unchecked.
    • Management Services: Leave it unchecked.
  • Choose Networking: Simple Mode
    • Public Internet Network: Keep it checked. (Sets a Public IP)
    • Private Local Network: Keep it checked. (Sets a Private IP)
  • Advanced Configuration: Hide
  • Finalize Settings: Use the settings given below.
    • Password: Provide a password of your choice.
    • Validate: Confirm the password once again.
    • Server: 1
    • Name: Provide a name of your choice for the server.
    • Power On Servers: Keep it checked.
  • Billing Cycle and Pricing: Hourly Billing Cycle

Now hit theCreate Server button to start booting up the server.

Server Configuration

It will redirect you to theServer Management dashboard where you can check the status of the server creation process by clicking on theTasks Queue tab at the left bottom section.

Tasks Queue

Step 5: Once the status is 100%, you can interact with the server by clicking on the ▶ button on the dashboard, then selecting theConnect menu, and finally clicking on theOpen Remote Console button.

Connect To Server

Deploying DocsGPT on the Server

You can use the DocsGPT source code to deploy it easily. Follow the steps given below to do so.

Step 1: Use the remote console to login to the server. The username will beroot and the password will be the one that you set above during server configuration.

Remote Login

Step 2: Now clone the DocsGPT GitHub repository to the server.

git clone https://github.com/arc53/DocsGPT.git
Enter fullscreen modeExit fullscreen mode

Git Clone

Step 3: You should update all the package information in the system before proceeding further. Use the command to do the update.

sudoapt update
Enter fullscreen modeExit fullscreen mode

Update Packages

Step 4: To run DocsGPT in the server, you need to install the container toolsdocker anddocker-compose. You can use the command below to install them. PressY+Enter when prompted to proceed with the installation.

sudoaptinstalldocker docker-compose
Enter fullscreen modeExit fullscreen mode

Install Docker

Step 5: Now navigate to the DocsGPT folder and add the necessary.env variables.

cdDocsGPT/nano .env
Enter fullscreen modeExit fullscreen mode

Set the following values in the.env file.

API_KEY= <Your OpenAI API key>VITE_API_STREAMING=true
Enter fullscreen modeExit fullscreen mode

UseCtrl+X, pressY, and then hitEnter to exit the Nano editor.

.env Setup

Step 6: You now need to set the correct IP address of the DocsGPT backend so that the front end can communicate with it. To do this, you need to change the following in thedocker-compose.yaml file of DocsGPT.

nano docker-compose.yaml
Enter fullscreen modeExit fullscreen mode

You can find theVITE_API_HOST parameter on Line 7. Edit and save it so that it points to the public IP of this cloud server.

VITE_API_HOST=http://<Cloud Server Public IP>:7091
Enter fullscreen modeExit fullscreen mode

Vite Host Setup

You can find the public IP of the server by going to theNetwork tab on theServer Management page.

Server Public IP

Step 7: You can now use the command below to run your DocsGPT instance on the server.

sudodocker-compose up-d
Enter fullscreen modeExit fullscreen mode

The initial startup takes up some time, so wait until you get adone status on the remote console terminal.

DocsGPT Start

Testing the DocsGPT Instance

The DocsGPT instance is now available on the port5173. Use the public IP of the server to access its GUI.

http://<Cloud Server Public IP:5173>
Enter fullscreen modeExit fullscreen mode

You have to choose a source documentation when you open this URL. For now, selectdefault and click onSave to proceed.

DocsGPT GUI

Feel free to ask generic questions to DocsGPT in the chat window and it will reply with the answers.

You: What is DocsGPT?DocsGPT: DocsGPT is an AI-powered language model developed using OpenAI's GPT (Generative Pre-trained Transformer) architecture. It is designed specifically to assist users in composing and editing documents. DocsGPT can help generate text in various formats, such as essays, code snippets, technical documentation, and more. It understands natural language commands and provides informative responses to user queries. Through its conversational interface, DocsGPT can assist with a wide range of document-related tasks, including content generation, formatting, organization, and more.
Enter fullscreen modeExit fullscreen mode

Conclusion

In this tutorial, you learned about DocsGPT and Kamatera Cloud. You specifically created a Kamatera Cloud Server, deployed an instance of DocsGPT in it usingdocker anddocker-compose, and finally tested DocsGPT with a sample question.

Now that you've deployed your instance of DocsGPT, feel free to try it out and test its various features. You can check out their official documentationhere for further information.

Lastly, before you close this page, don't forget to drop a like and share your feedback in the comments below.

DocsGPT Cloud

Sponsor

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromRutam Prita Mishra

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp