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许可证的条款获得许可的。