Code Monkey home page Code Monkey logo

notebook's Introduction

简介

以复习为主要目的,通过自主生成问题创造知识应用场景,结合艾宾浩斯遗忘曲线这一描述记忆衰退过程的理论合理安排复习,达到及时巩固记忆的效果。


运行环境

  • Python版本:3.11
  • MySQL版本:3.8

快速开始(docker启动)

在/notebook路径下,使用下面指令:docker-compose up

单独启动

1. OpenAI账号注册

前往 OpenAI注册页面 创建账号,参考这篇 教程 可以通过虚拟手机号来接收验证码。创建完账号则前往 API管理页面创建一个 API Key 并保存。

2. 前端启动方式

Install

pnpm install

Run

pnpm dev

3. 启动MySQL数据库

  1. 找到mysql的安装路径:C:\Program Files\MySQL\MySQL Server 5.6\bin(我的路径在这里)
  2. mysql -u root -p(我的默认密码为空,直接回车即可)
  3. net start(后面应该接服务名,但我的默认服务名为空,直接回车即可)
  4. 查看所有的数据库名字:SHOW DATABASES; 选择一个数据库操作: USE ${database_name}(注意:指令均为大写,小写无法识别)
  5. 查看当前数据库下所有的表名:SHOW TABLES。
  6. 修改MySQLHandler中的'user'、'password'、'port'、'database'(这个是数据库名,不是表名。)

4. 后端启动方式

Install

pip install -r requirements.txt

Run

uvicorn main:app --reload --port 51717 --host 0.0.0.0

⚠️注意:前端启动位置要在/app下,后端启动要在/server下,后端如果在其他位置启动,会报错关于ASGI相关问题。

5. 启动后的设置

  • 打开设置页面,添加ChatGPT的API,如果是中转,则需要修改API_BASE。

TODO

  • 将已有笔记进行自动重构
  • 提炼提纲
  • 基于笔记内容进行问答

notebook's People

Contributors

sgly2004 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.