Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Knowledge Base

English | 中文

A personal knowledge base that runs locally in Docker.

Features

  • Password sign-in; the default password is 123456
  • Upload .txt, .md, .pdf, and .docx files
  • Automatically split documents and create a local retrieval index
  • Return relevant document excerpts for questions
  • Generate AI answers from the stored material when OPENAI_API_KEY is configured
  • View file details, preview excerpts, and delete files or indexes

Start

cd C:\Users\jiayu\Desktop\personal-knowledge-base
docker compose up -d --build

Open:

http://localhost:8010

Stop

docker compose down

Change the Password or Enable AI Answers

Create a .env file in the project directory:

APP_PASSWORD=your-new-password
SESSION_SECRET=a-long-random-string
OPENAI_API_KEY=your-OpenAI-key
OPENAI_MODEL=gpt-4.1-mini

Then restart:

docker compose up -d --build

个人知识库

English | 中文

这是一个运行在本机 Docker 里的个人知识库。

功能

  • 密码登录,默认密码是 123456
  • 上传 .txt、.md、.pdf、.docx
  • 自动切分资料并建立本地检索索引
  • 提问后返回相关资料片段
  • 配置 OPENAI_API_KEY 后,可根据资料生成 AI 回答
  • 查看文件详情、预览片段、删除文件和索引

启动

cd C:\Users\jiayu\Desktop\personal-knowledge-base
docker compose up -d --build

打开:

http://localhost:8010

停止

docker compose down

修改密码或开启 AI 回答

在项目目录新建 .env 文件:

APP_PASSWORD=你的新密码
SESSION_SECRET=随便写一串更长的随机字符
OPENAI_API_KEY=你的 OpenAI Key
OPENAI_MODEL=gpt-4.1-mini

然后重新启动:

docker compose up -d --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages