這是一個結合 RAG 架構與 ChatGPT 的企業內部文件問答系統,使用者可於網頁介面輸入問題,即可查詢 PDF/TXT/DOCX 文件並獲得智慧回答。
- GPT-4o-mini 模型回答
- 向量檢索結合 LangChain + FAISS
- 文件資料來源顯示
- 直觀 Streamlit UI
git clone https://github.com/your-username/privategpt-enterprise-ui.git
cd privategpt-enterprise-ui
# 安裝套件
pip install -r requirements.txt
# 放入你的文件到 source_documents/
python ingest.py
# 啟動 UI
streamlit run app.py在 Streamlit Cloud 專案設定 secrets:
OPENAI_API_KEY=your-key
EMBEDDING_PROVIDER=openai
EMBEDDING_MODEL_NAME=text-embedding-3-small
LLM_PROVIDER=openai
MODEL_NAME=gpt-4o-mini
├── app.py
├── private_gpt.py
├── ingest.py
├── requirements.txt
├── .env.example
├── source_documents/
├── vectorstore/ (執行 ingest 後自動產生)
- Wayne Chou
本專案靈感源自 privateGPT,並基於其架構重構成簡潔的企業級版本。