次のリンクからデータセットをダウンロードできます。
まず、リポジトリをローカルマシンにクローンします。
git clone https://github.com/foxminchan/LawKnowledge次に、プロジェクトのルートディレクトリに移動し、依存関係をインストールします。
pnpm install --forceWebサイトでは、次のコマンドを実行できます。
npx nx serve website --prodAPIの場合、次のコマンドを実行できます。
# 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`でなければなりません。
Webサイトでは、次のコマンドを実行できます。
npx nx test website-e2eAPIの場合、次のコマンドを実行できます。
# 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ライセンスの条件に基づいてライセンスされています。