paper-ai-release-24-07-21/README.md

90 lines
3.2 KiB
Markdown
Raw Normal View History

2024-01-23 15:27:57 +08:00
[English Documentation](./README_en.md)
2024-01-23 15:29:15 +08:00
<a href="https://paperai.life">
2024-01-23 15:17:09 +08:00
<img alt="Next.js and Supabase Starter Kit - the fastest way to build apps with Next.js and Supabase" src="https://paperai.life/opengraph-image.png">
<h1 align="center">paper-ai</h1>
2024-01-18 15:46:18 +08:00
</a>
<p align="center">
2024-01-23 15:27:57 +08:00
使用真实文献最快速完成论文的方法
2024-01-18 15:46:18 +08:00
</p>
<p align="center">
2024-01-23 15:17:09 +08:00
<a href="#功能"><strong>功能</strong></a> ·
<a href="#演示"><strong>演示</strong></a> ·
2024-01-29 17:50:41 +08:00
<a href="#部署到Vercel"><strong>部署到 Vercel</strong></a> ·
2024-01-29 17:48:47 +08:00
<a href="#克隆并在本地运行"><strong>克隆并在本地运行</strong></a> ·
2024-01-18 15:46:18 +08:00
</p>
<br/>
2024-01-23 15:27:57 +08:00
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
## 功能
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
### 利用人工智能撰写论文
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
- **人工智能书写功能** 点击 "AI 写作 "进行正常对话互动。人工智能将根据您的输入提供写作建议或回答问题。
2024-02-10 13:47:55 +08:00
- **Paper2AI功能** 点击 "Paper2AI"根据输入的关键词在Semantic Scholar或arxiv或PubMed中搜索论文。系统将把信息整合到您的论文中。
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
### 编辑和修改
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
- 在编辑器中直接编辑和修改人工智能生成的内容。
- 使用提供的工具调整文本样式和布局。
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
## 演示
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
您可以在 [paperai.life](https://paperai.life) 查看完整的工作演示。
2024-01-18 15:46:18 +08:00
2024-01-29 17:50:41 +08:00
## 部署到Vercel
2024-01-18 15:46:18 +08:00
2024-01-23 15:27:57 +08:00
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/14790897/paper-ai&project-name=paper-ai&repository-name=paper-ai&demo-title=paper-ai&demo-description=This%20starter%20configures%20Supabase%20Auth%20to%20use%20cookies%2C%20making%20the%20user's%20session%20available%20throughout%20the%20entire%20Next.js%20app%20-%20Client%20Components%2C%20Server%20Components%2C%20Route%20Handlers%2C%20Server%20Actions%20and%20Middleware.&demo-url=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2F&external-id=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase&demo-image=https%3A%2F%2Fpaperai.life%2Fopengraph-image.png)
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
上述操作还会将 repo 克隆到 GitHub。
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
如果只想在本地开发,而不想部署到 Vercel[请按以下步骤操作](#clone-and-run-locally)。
2024-01-18 15:46:18 +08:00
2024-02-11 19:36:43 +08:00
## 镜像运行
1. 拉取镜像
```sh
docker pull 14790897/paperai:latest
```
2. 运行镜像
```sh
docker run -d -p 3000:3000 \
-e NEXT_PUBLIC_AI_URL=自定义AI模型地址\
-e NEXT_PUBLIC_OPENAI_API_KEY=自定义API KEY \
14790897/paperai:latest
```
2024-02-13 15:12:48 +08:00
## 环境变量说明
NEXT_PUBLIC_OPENAI_API_KEY 设置key只要在设置界面右上角齿轮对应的位置留空就会使用预定的变量
NEXT_PUBLIC_AI_URL 设置上游url只要在设置界面右上角齿轮对应的位置留空就会使用预定的变量
NEXT_PUBLIC_SEMANTIC_API_KEY 设置semantic scholar的key可以增加请求量
NEXT_PUBLIC_PUBMED_API_KEY 设置pubmed的key可以增加请求量
2024-01-23 15:17:09 +08:00
## 克隆并在本地运行
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
```bash
# 克隆版本库
git clone https://github.com/14790897/paper-ai.git
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
# 进入项目目录
cd paper-ai
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
# 安装依赖项
npm install
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
# 运行项目
npm run dev
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
```
2024-02-13 15:12:48 +08:00
## 参考文档
semantic scholar api: https://api.semanticscholar.org/api-docs/#tag/Paper-Data/operation/get_graph_paper_relevance_search
pubmed api: https://www.ncbi.nlm.nih.gov/books/NBK25500/
2024-01-18 15:46:18 +08:00
2024-01-23 15:17:09 +08:00
## 许可证
2024-02-10 13:47:55 +08:00
MIT