privateGPT のインストールと動作確認を行う.
【目次】
【関連する外部ページ】
公式の GitHub のページ:https://github.com/imartinez/privateGPT
Gitは,バージョン管理システム.ソースコードの管理や複数人での共同に役立つ.
【サイト内の関連ページ】
Windows での Git のインストール: 別ページ »で説明している.
【関連する外部ページ】
Git の公式ページ: https://git-scm.com/
CMake はビルドツールである.
【サイト内の関連ページ】
Windows での cmake のインストール: 別ページ »で説明している.
【関連する外部ページ】
CMake の公式ダウンロードページ: https://cmake.org/download/
【サイト内の関連ページ】
Windows での Visual Studio Community 2022 のインストール: 別ページ »で説明している.なお,Visual Studio には,ビルドツール(Build Tools)が含まれている.
Windows での ビルドツール for Visual Studio 2022 (Build Tools for Visual Studio 2022) のインストール: 別ページ »で説明している.
【関連する外部ページ】
【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
OpenCV 4.7.0 のインストール,動作確認(Windows 上): 別ページ »で説明している.
コマンドプロンプトを管理者として実行: 別ページ »で説明
次のコマンドを実行.
cd %HOMEPATH% rmdir /s /q privateGPT git clone https://github.com/imartinez/privateGPT.git cd privateGPT python -m pip install -r requirements.txt copy example.env .env mkdir models cd models curl -L -O https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin
cd %HOMEPATH%\privateGPT python ingest.py
次のコマンドを実行.
cd %HOMEPATH%\privateGPT python privateGPT.py
プロンプトを入れ,しばらく待つ.プロンプトとして「Please explain about computer science for beginner.」を入れたときの実行結果は次の通り.