PersonalGPT
1.0.0
あなた自身のGPTを搭載したパーソナルアシスタントは、あなたがあなたの音声コマンドを使用して何かを行うか、何かを検索するように注文または指示することができます。 Langchain、Gpt4all、Llamacpp、Chroma、SentenceTransformersで構築されています。 - また、OpenaiのGPT3、GPT4モデル、Cohereをサポートしています。
このプロジェクトは、GPT支援のためのPrivategptに非常にインスピレーションを受けていますが、このプロジェクトはDeeplake Vectorstoresを使用してデータセット/ファイルを保存します。
Windows:
pip install -r requirements.txt
Linux / Macで:
pip3 install -r requirements.txt
PersonalGPT/env_vars.py
を開きます
env_vars.py
ファイルで変数を適切に編集します。
MODEL_TYPE: supports LlamaCpp, GPT4All, OpenAI & Cohere
PERSIST_DIRECTORY: is the folder you want your vectorstore in
MODEL_PATH: Path to your GPT4All or LlamaCpp supported LLM
MODEL_N_CTX: Maximum token limit for the LLM model
MODEL_N_BATCH: Number of tokens in the prompt that are fed into the model at a time. Optimal value differs a lot depending on the model (8 works well for GPT4All, and 1024 is better for LlamaCpp)
EMBEDDINGS_MODEL_NAME: SentenceTransformers embeddings model name (see https://www.sbert.net/docs/pretrained_models.html)
TARGET_SOURCE_CHUNKS: The amount of chunks (sources) that will be used to answer a question
VOICE_MODEL=pyttsx3
VOICE_REC_ENGINE=SpeechRecognition
API_KEY=OpeAI or Cohere API Key
すべてのファイルをsource_documents
ディレクトリに入れます
サポートされている拡張機能は次のとおりです。
.csv
:CSV、.docx
:Word Document、.doc
:Word Document、.enex
:Evernote、.eml
:メール、.epub
:epub、.html
:HTMLファイル、.md
:マークダウン、.msg
:Outlookメッセージ、.odt
:ドキュメントテキストを開く、.pdf
:ポータブルドキュメント形式(PDF)、.pptx
:PowerPointドキュメント、.ppt
:PowerPointドキュメント、.txt
:テキストファイル(utf-8)、.xls
:Excelスプレッドシート.xlsx
:Excelスプレッドシートすべてのデータを摂取するには、次のコマンドを指定します。
Windows:
python run_PersonalGPT.py
Linux / Macで:
python3 run_PersonalGPT.py
open browser
load my files
ask gpt
tell me a joke
open youtube
そしてもっと
このモジュールは、自由に使用、変更、共有できます
あなたがいくつかの問題を見つけた場合、あなたが問題のリクエストを自由に引いてください、またはあなたがこれを修正してからPRを実行するか、すべての人に貢献が開かれています、
これを読んでくれてありがとう。