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.pyopen browser
load my files
ask gpt
tell me a joke
open youtube还有更多
此模块可以免费使用,修改,共享
贡献对每个人都开放,如果您发现某个问题可以随意提出问题请求,或者您已经修复了此问题,然后做一个PR
谢谢您的阅读。