Train your own ChatGPT with external docs.
- Python 3.9
Get the API directly from here: https://platform.openai.com/account/api-keys
- Create a Azure OpenAI resource
- Get the key and the endpoint
- Create a
text-embedding-ada-002(version 2)
model with nametext-embedding-ada-002
for embedding. - Create a
gpt-35-turbo
model with namechat
for chat completion.
pip install -r requirements.txt
cp .env.sample .env
Update the configuration in .env
.
Download existing vector index files or build a new one:
source .env
./cli.py build ../your_internal_docs doc_index.json
./cli.py ask "How to deploy jar package?"
./web.py