No project description provided
Project description
Knowledgebase GSheet GPT
此專案為使用 GPT 模型回答基於 Google 試算表的知識庫問題。
功能
- 從 Google 試算表下載知識庫內容
- 使用 GPT 模型 (gpt-3.5-turbo 或 gpt-4) 生成知識庫內容的向量表示(embeddings)
- 根據提供的問題,找出與問題最相似的知識庫內容
- 使用 GPT 模型回答問題,並將最相似的知識庫內容作為參考
安裝
- 請先確保已安裝 Python 3.7 或更高版本。
- 下載此專案的存儲庫:
python3 -m pip install knowledgebase-gsheet-gpt
使用方法
- 首先,確保您已擁有 Google API 憑證 (JSON 檔案)。若尚未擁有,請參考 Google API 官方文件 以建立一個。
- 運行以下命令行,將
user替換為您的電子郵件地址,將key_file替換為您 Google API 憑證的路徑,將sheet_ids替換為您要下載的 Google 試算表 ID(以逗號分隔),並將prompt替換為您的問題:
python3 -m knowledgebase_gsheet_gpt --user 用戶電子郵件 --prompt 提示問題 --sheet-ids 試算表ID --key-file Google服務帳戶密鑰JSON文件路徑
例如:
python3 -m knowledgebase_gsheet_gpt --user example@example.com --prompt "請問屁股癢癢的怎麼辦?" --sheet-ids 1abcdefg,2hijklmn --key-file google_key_file.json
- 您將會看到 GPT 模型生成的串流回答。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file knowledgebase-gsheet-gpt-1.2.9.tar.gz.
File metadata
- Download URL: knowledgebase-gsheet-gpt-1.2.9.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78f100b926ff855998fc0f981d2aa712ed4b1eb7692df4f9dd12548ada376535
|
|
| MD5 |
9b86acaa5c30fb8c58919db38371ec0a
|
|
| BLAKE2b-256 |
189695718ebee4f4da05e6aea207a702986dfa644fbaa8449f70e2f6db49a663
|
File details
Details for the file knowledgebase_gsheet_gpt-1.2.9-py3-none-any.whl.
File metadata
- Download URL: knowledgebase_gsheet_gpt-1.2.9-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbcaea0d901f68777e33d1671ebde202bbc6437476b53ca0ca114584a741b7d9
|
|
| MD5 |
819d4b92912b7132f0c4b5cb62740587
|
|
| BLAKE2b-256 |
76389539527f3d08042559654967446b250ae88df0aa5facb3194c360eb84e94
|