Skip to content

maxfyf/Essay-Writing-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明文档

部署方法

1、切换到backend_algo目录,先后打开两个终端,第一个终端中运行命令uvicorn main:app --port 8001,第二个终端中运行命令chroma run --path ./data_vector_db --host localhost --port 8002,完成算法层的部署。

2、切换到backend目录,打开终端,运行命令uvicorn main:app --port 8000,完成业务层的部署。

3、切换到frontend目录,连接复旦校园网或复旦VPN,打开终端,运行命令npm run dev,完成界面层部署。按住Ctrl键点击URL链接即可在浏览器中打开界面。另外,界面层也可以采用Webstorm打开,在Webstorm中加载该前端项目,通过IDE内置的命令行运行npm run dev,也可以完成界面层的部署。此时,直接点击URL链接即可在浏览器中打开界面。

注意事项:由于业务层依赖于算法层,第1步与第2步绝对不能颠倒顺序,否则业务层代码将无法正常运行。第2步与第3步也不建议颠倒顺序,因为界面层依赖于业务层,倘若只完成界面层的部署,那将面临无法注册登陆的问题。

About

A project finished in the second year of college involving algorithm level (Python+Qwen API+SQLite+vector database), operation level (Python+FastAPI) and interface level (Typescript+html+Vue+El element) that can help write essays with a certain template and a provided knowledge database or polish essays under certain requirements based on Qwen LLM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors