Skip to main content

CÀI ĐẶT DOCSGPT

 https://dev.to/rutamhere/deploying-docsgpt-on-digitalocean-droplet-50ea

Deploying DocsGPT

Now you need to follow the steps given below to successfully deploy DocsGPT on your cloud instance.

Step 1: Clone the DocsGPT repository to your instance. Use the command given below to do so.

git clone https://github.com/arc53/DocsGPT.git

Git Clone

Step 2: Update the package indexes of your Ubuntu system with the command given below.

sudo apt update

Update Packages

Step 3: DocsGPT needs containerization tools like docker and docker-compose to run. You can install them with the commands given below. Press Y when prompted to proceed with the installation.

sudo apt install docker docker-compose

Docker Install

Step 4: The .env variables for DocsGPT need to be set. You can do so by going to the DocsGPT folder and adding a .env file.

cd DocsGPT/

nano .env

Set .Env

Save the following values in the .env file.

LLM_NAME=DocsGPT-7b (You can choose any available LLM under DocsGPT)
API_KEY= <Your OpenAI API key>
VITE_API_STREAMING= true

You can exit the Nano editor by using Ctrl + X and then hitting Y followed by Enter.

Step 5: DocsGPT's front end needs to connect and communicate with its backend properly for its work. To do this, you need to edit the docker-compose.yaml file so that it points to the correct IP address of the backend. Use the command below to edit the file.

nano docker-compose.yaml

Find Line 7 in the editor and edit the VITE_API_HOST parameter. It should use the public IPv4 of your Droplet.

VITE_API_HOST=http://<Droplet Public IPv4>:7091

You can find the Publiv IPv4 of the Droplet on the Droplet details page.

IPv4

Now save the changes and exit the editor.

Step 6: You are now ready to run DocsGPT on your Droplet with the command given below. Remember that the initial startup time will be a bit longer as it requires downloading all the necessary dependencies and then building the app.

sudo docker-compose up -d

Once you see the done status of a list of DocsGPT jobs in the terminal, you're good to work with it on your Droplet.

Status Done

Working with DocsGPT

You can now access DocsGPT by visiting the following URL.

http://<Public Droplet IPv4:5173>

When you open this URL for the first time, you will need to choose a source documentation. Select default and click on Save to test the deployment.

Source Documentation

You can now ask generic questions about DocsGPT and it will provide you with the relevant 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.

Your DocsGPT deployment is now ready to help you with any technical documentation needs.

Conclusion

DocsGPT can be a great asset to save time by eliminating the need to manually search across docs to seek answers. The team behind this is working continuously to bring more features and upgrade the user experience. You also have the option to try their cloud version directly if you don't wish to host it by yourself.

The community is always welcome to try it out and provide their valuable feedback or suggest additional features by joining their Discord.

Lastly, before you leave, feel free to drop a Like if you loved reading this article, and don't forget to share it with your peers.

Comments

Popular posts from this blog

[RAID] SWITCH FROM AHCI TO RAID WITH INTEL C600 CONTROLLER

I personally have used other ways to do this. Manipulating some registry settings in combination with a safe boot before booting normally does the trick as well. This works with both SATA SSD and M.2 NVMe drives and it enables relatively fast switching between back and forth between AHCI and RAID. I have described this method below.  I have also tried the same process used to switch from RAD to AHCI and that works as well. Switch to safe boot Reboot into BIOS Change from AHCI to RAID in the BIOS Boot into safe mode Turn off safe mode and reboot normally again Nothing else and that also did the trick, just like with moving from RAID to AHCI.  So the link above and my step by step below is here for completeness. You have options in case one of them doesn’t work! Step by step AHCI to RAID registry method This procedure I describe below works on Windows 10 1803/1809 and has been tested on Dell Latitude E6220 an XPS 13 9360. Editing the registry is...

[Hyper-V] - Lỗi không boot vào được sau khi convert máy vật lý sang máy ảo

XỬ LÝ LỖI KHÔNG BOOT ĐƯỢC VÀO MÁY ẢO SAU KHI CONVERT TỪ MÁY VẬT LÝ BẰNG DISK2VHD Sau khi convert server vật lý sang file VHD để import vào Hyper thì khi start máy ảo lên màn hình máy ảo chỉ nhấp nháy con trỏ chuột trên màn hình đen (blinking cursor) NGUYÊN NHÂN Do máy vật lý sử dụng ổ đĩa cài OS được format theo chuẩn GPT (thay vì MBR như truyền thống, tham khảo GPT và MBR ) XỬ LÝ Bước 1: chuyển ổ GPT thành MBR Copy file VHD của ổ đĩa chứa OS về 1 máy tính Windows 8 trở lên Trên máy Windows 8+ click phải chuột lên file VHD vừa copy, chọn lệnh Mount . Lúc này dùng 1 phần mềm miễn phí (vd: Mini Partition Wizard ) để convert ổ đĩa vừa mount từ GPT  -> MBR Sau đó Delete phần Partition dư ra ở phần đầu ổ đĩa được mount (khoảng vài trăm MB) Set " Active " cho ổ đĩa này để là ổ đĩa boot OS Nhấn Apply để phần mềm thực thi tác vụ Sau khi phần mềm làm xong, tắt phần mềm Mini Partition Wizard, vào My Computer chọn eject ổ đĩa đang mount . Copy file VHD vừa đư...

LỖI "The provided partition "Migration...." is not a valid Migration mailbox"

  Solution for a valid Migration mailbox could not be found for this organization To address this issue, we will: Delete Migration mailbox in Active Directory Users and Computers Recreate Migration mailbox with /PrepareAD command Enable Migration mailbox with Exchange Management Shell 1. Delete Migration mailbox in Active Directory Users and Computers We do see the mailbox in ADUC, let’s remove it. If you don’t see it, search for it. It might be in a different container than the default container  Users . We can always verify in Exchange Management Shell if the Migration mailbox is present. If it shows up in the output, it means that it’s present and enabled. The output should be empty. [PS] C:\> Set - ADServerSettings - ViewEntireForest $true ; Get - Mailbox - Identity "Migration.8f3e7716-2011-43e4-96b1-aba62d229136" - Arbitration | Format-Table Name , ServerName , Database , AdminDisplayVersion , ProhibitSendQuota Copy 2. Recreate Migration mailbox with /Prepare...