PersonalGPT
1.0.0
您自己的GPT驅動的個人助理,您可以訂購或指示使用語音命令來執行某些任務或搜索某些內容。由Langchain,GPT4ALL,LLAMACPP,CHROMA和QANCENETRANSFORMER建造。 - 還支持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文檔,.doc
:Word文檔,.enex
:Evernote,.eml
:電子郵件,.epub
:epub,.html
:html文件,.md
:Markdown,.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
謝謝您的閱讀。