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
Close
Hashes for knowledgebase-gsheet-gpt-1.2.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3c441228835daa79bca6b7e69f9bd897ed1696aaaeb50543feb93b4dbcc847 |
|
MD5 | c55ec4189abe8df9b6eb48118a37aa5f |
|
BLAKE2b-256 | a4195ad38bfe3a2506719bcb854feefaa2f2bea1329ff5e89abb2895033a579f |
Close
Hashes for knowledgebase_gsheet_gpt-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 699b0699440a2e44d9fa4bced3ad9f717b5d77b32f28a7ccd95dd237c35c7c07 |
|
MD5 | a8dda45b3691d520ced29002c1b64c12 |
|
BLAKE2b-256 | 7bc56fc5f0a7df70588a3ac86a8531c2738ad53fd1c8827c826932983a32e87c |