Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: files and knowledge base #3487

Merged
merged 14 commits into from
Aug 21, 2024
Merged

✨ feat: files and knowledge base #3487

merged 14 commits into from
Aug 21, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Aug 17, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

支持本地文件上传

Google Chrome 2024-08-19 01 11 22

支持不同类型的文件上传:

Google Chrome 2024-08-19 02 27 05

支持文件解析:

image

支持知识库:

image

实现朴素 RAG 以支持文件对话:

image

支持知识库对话:

image

修正服务端数据库下 S3 上传后无法正常显示图片的问题:

📝 补充信息 | Additional Information

#3023

代码量过大,拆几个前置的变更PR 出来:

本地启动带 pgvector 的 PG 实例:

docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg16

Copy link

vercel bot commented Aug 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 0:58am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 0:58am

@lobehubbot
Copy link
Member

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@arvinxx arvinxx force-pushed the feat/file-and-knowledge-base branch from 7e93bfe to 022a536 Compare August 17, 2024 14:31
@arvinxx arvinxx force-pushed the feat/file-and-knowledge-base branch from 521fbb3 to ff1b77b Compare August 17, 2024 15:00
@arvinxx arvinxx force-pushed the feat/file-and-knowledge-base branch from ff1b77b to 88eeeee Compare August 17, 2024 16:35
@arvinxx arvinxx force-pushed the feat/file-and-knowledge-base branch from 88eeeee to 5aff389 Compare August 17, 2024 16:48
@arvinxx arvinxx force-pushed the feat/file-and-knowledge-base branch from 543f3cb to 82a84da Compare August 18, 2024 08:56
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Aug 21, 2024
## [Version 1.12.0](v1.11.9...v1.12.0)
<sup>Released on **2024-08-21**</sup>

#### ✨ Features

- **misc**: Files and knowledge base.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Files and knowledge base, closes [#3487](#3487) ([6574c01](6574c01))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Aug 21, 2024
## [Version&nbsp;1.55.0](v1.54.7...v1.55.0)
<sup>Released on **2024-08-21**</sup>

#### ✨ Features

- **misc**: Files and knowledge base.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Files and knowledge base, closes [lobehub#3487](https://github.com/bentwnghk/lobe-chat/issues/3487) ([6574c01](6574c01))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
akvsdk pushed a commit to akvsdk/lobe-chat that referenced this pull request Aug 26, 2024
* ✨ feat: add files and knowledge base

Update edge.ts

Update test.yml

🎨 chore: fix locale

Update index.tsx

测试 pgvector workflow

* 💄 style: improve upload detail

* ✨ feat: support delete s3 file when delete files

* 💄 style: improve chunks in message

* ♻️ refactor: refactor the auth method

* ✨ feat: support use user client api key

* 💄 style: fix image list in mobile

* ✨ feat: support file upload on mobile

* ✅ test: fix test

* fix vercel build

* docs: update docs

* 👷 build: improve docker

* update i18n
akvsdk pushed a commit to akvsdk/lobe-chat that referenced this pull request Aug 26, 2024
## [Version&nbsp;1.12.0](lobehub/lobe-chat@v1.11.9...v1.12.0)
<sup>Released on **2024-08-21**</sup>

#### ✨ Features

- **misc**: Files and knowledge base.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Files and knowledge base, closes [lobehub#3487](lobehub#3487) ([6574c01](lobehub@6574c01))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment