LawKnowledge
v0.2.0-rc
您可以從以下鏈接下載數據集:
首先,將存儲庫克隆到您的本地計算機:
git clone https://github.com/foxminchan/LawKnowledge接下來,導航到項目的根目錄並安裝依賴項:
pnpm install --force對於網站,您可以運行以下命令:
npx nx serve website --prod對於API,您可以運行以下命令:
# For the API Gateway
npx nx serve api-gateway --prod
# For the Auth Service
npx nx serve auth-svc --prod
# For the Law Service
npx nx serve law-svc --prod
# For the Search Service, navigate to the search-svc directory
npx nx build search-svc && cd apps/api/search-svc/search-svc && python main.py
# For the Chat Service, navigate to the chat-svc directory
npx nx build chat-svc && cd apps/api/chat-svc/chat-svc && python main.py為了瀏覽模型,您可以運行以下命令:
npx nx build bert && cd apps/nlp/bert/bert && python main.py要設置基礎架構,您可以運行以下命令:
npx nx up pulumi重要的
如果您想與NX一起運行,請確保您在全球範圍內安裝了``詩''。 Python版本必須為`> = 3.9.1 <= 3.12`。
對於網站,您可以運行以下命令:
npx nx test website-e2e對於API,您可以運行以下命令:
# For the Auth Service
npx nx test auth-svc-e2e
# For the Law Service
npx nx test law-svc-e2e
# For the Search Service
npx nx test search-svc-e2e
# For the Chat Service
npx nx test chat-svc要測試模型,您可以運行以下命令:
npx nx test bert要運行用於處理數據集的工具,您可以運行以下命令:
npx nx build processor && cd apps/nlp/processor/processor && python main.py對於運行文檔,您可以運行以下命令:
npx nx serve docs對於將圖作為代碼運行,您可以運行以下命令:
npx nx build dac && cd assets/dac/dac && python main.py一些有用的腳本:
# Navigate to the scripts directory
cd tools/scripts && ls
# + scripts
# +-- build.sh --> Build the project
# +-- clean.sh --> Clean the docker image
# +-- init.sh --> Initialize the project
# +-- prepare.sh --> Prepare the project
# +-- start.sh --> Start the project
# +-- start-o11y.sh --> Start the observability stack
# +-- stop-o11y.sh --> Stop the observability stack
# Run the script
./ < script-name >您可以通過運行以下命令來查看項目的依賴關係圖:
npx nx dep-graph這是項目的依賴圖:
我們很高興您有興趣為這個項目做出貢獻!在提交貢獻之前,請確保花點時間閱讀以下準則:
閱讀我們的貢獻指南,以了解我們的提交過程,編碼規則等。
是否想報告錯誤,貢獻一些代碼或改進文檔?出色的!閱讀我們的貢獻指南,然後查看我們標有幫助或好的第一期的問題之一。
幫助我們保持法律知識開放和包容。請閱讀並遵循我們的行為準則。




該項目是根據MIT許可證的條款獲得許可的。