https://github.com/vra/llm-code-scorer
Code Scorer using LLM
https://github.com/vra/llm-code-scorer
ai github llm vue
Last synced: 10 months ago
JSON representation
Code Scorer using LLM
- Host: GitHub
- URL: https://github.com/vra/llm-code-scorer
- Owner: vra
- License: mit
- Created: 2024-09-07T15:26:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T08:24:32.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:56:20.148Z (10 months ago)
- Topics: ai, github, llm, vue
- Language: Python
- Homepage: http://lcs.simpleai.site
- Size: 194 KB
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# llm-code-scorer
用 LLM 给 GitHub 代码仓库进行打分
体验地址:
## 项目概述
1. LLM:采用免费的智谱`glm-4-flash`模型
2. 网页后端:flask + gunicorn
3. 网页前端:Vue
## 一些限制
1. 采用大模型打分,目前没找到固定回复的方法,每次返回的分值和理由会有变化
2. 超过100M的仓库国内机器下载很慢,因此暂不支持
## 环境搭建
1. 使用nvm安装nodejs和npm
```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 22
node -v
npm -v
```
2. 用npm安装vue
```bash
npm install -g @vue/cli
```
3. 安装python包
```bash
pip install flask gunicorn flask-cors zhipuai
```
## 运行代码
```bash
npm install
npm run serve
cd src
API_KEY= gunicorn -w 4 -b 0.0.0.0:5000 flask_app:app --timeout 600
```
## 项目细节
1. PROMPT设计对结果影响很大,具体参考
2. 国内服务器 github clone很慢,此仓库使用的是gitclone.com镜像