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

🐛 fix: refactor knowledge base issue #6973

Merged
merged 3 commits into from
Mar 15, 2025
Merged

🐛 fix: refactor knowledge base issue #6973

merged 3 commits into from
Mar 15, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Mar 15, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 15, 2025
Copy link

vercel bot commented Mar 15, 2025

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 Mar 15, 2025 9:35am
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2025 9:35am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2025 9:35am

@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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
Contributor

gru-agent bot commented Mar 15, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 1a6485d 🚫 Skipped No files need to be tested {"src/const/settings/agent.ts":"target file(src/const/settings/agent.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/ \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/*.spec.js,src/database/server","src/libs/agent-runtime/anthropic/index.ts":"target file(src/libs/agent-runtime/anthropic/index.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/** \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/*.spec.js,src/database/server","src/libs/agent-runtime/google/index.ts":"target file(src/libs/agent-runtime/google/index.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/** \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,**/*.spec.js,s…

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link

codecov bot commented Mar 15, 2025

Codecov Report

Attention: Patch coverage is 95.83333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 91.32%. Comparing base (d4432f1) to head (b7cbcca).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/store/chat/slices/aiChat/actions/rag.ts 77.77% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6973      +/-   ##
==========================================
- Coverage   91.32%   91.32%   -0.01%     
==========================================
  Files         732      732              
  Lines       69197    69217      +20     
  Branches     4746     4752       +6     
==========================================
+ Hits        63194    63210      +16     
- Misses       6003     6007       +4     
Flag Coverage Δ
app 91.32% <95.83%> (-0.01%) ⬇️
server 97.49% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx changed the title ♻️ refactor: refactor agent runtime 🐛 fix: refactor agent runtime Mar 15, 2025
@arvinxx arvinxx changed the title 🐛 fix: refactor agent runtime 🐛 fix: refactor Knowledge base isse Mar 15, 2025
@arvinxx arvinxx changed the title 🐛 fix: refactor Knowledge base isse 🐛 fix: refactor Knowledge base issue Mar 15, 2025
@arvinxx arvinxx changed the title 🐛 fix: refactor Knowledge base issue 🐛 fix: refactor knowledge base issue Mar 15, 2025
@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 Mar 15, 2025
### [Version&nbsp;1.71.2](v1.71.1...v1.71.2)
<sup>Released on **2025-03-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix knowledge base issue.

<br/>

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

#### What's fixed

* **misc**: Fix knowledge base issue, closes [#6973](#6973) ([15f39ef](15f39ef))

</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.71.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Mar 16, 2025
### [Version&nbsp;1.112.2](v1.112.1...v1.112.2)
<sup>Released on **2025-03-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix claude 3.5+ models context max output, fix knowledge base issue.

<br/>

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

#### What's fixed

* **misc**: Fix claude 3.5+ models context max output, closes [lobehub#6984](https://github.com/bentwnghk/lobe-chat/issues/6984) ([da342dd](da342dd))
* **misc**: Fix knowledge base issue, closes [lobehub#6973](https://github.com/bentwnghk/lobe-chat/issues/6973) ([15f39ef](15f39ef))

</details>

<div align="right">

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

</div>
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Mar 17, 2025
* refactor agent runtime

* fix KnowledgeBase search issue

* fix tests
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Mar 17, 2025
### [Version&nbsp;1.71.2](lobehub/lobe-chat@v1.71.1...v1.71.2)
<sup>Released on **2025-03-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix knowledge base issue.

<br/>

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

#### What's fixed

* **misc**: Fix knowledge base issue, closes [lobehub#6973](lobehub#6973) ([15f39ef](lobehub@15f39ef))

</details>

<div align="right">

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

</div>
github-actions bot pushed a commit to jaworldwideorg/OneJA-Bot that referenced this pull request Mar 18, 2025
## [Version&nbsp;1.19.0](v1.18.0...v1.19.0)
<sup>Released on **2025-03-18**</sup>

#### ✨ Features

- **misc**: Support gemini image output in chat.

#### 🐛 Bug Fixes

- **misc**: Fix claude 3.5+ models context max output, fix google gemini output relative issue, fix knowledge base issue.

#### 💄 Styles

- **misc**: Support screenshot to clipboard when sharing, Update Vertex AI models, update Wenxin & Hunyuan model list.

<br/>

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

#### What's improved

* **misc**: Support gemini image output in chat, closes [lobehub#6931](https://github.com/jaworldwideorg/OneJA-Bot/issues/6931) ([d4c0d1f](d4c0d1f))

#### What's fixed

* **misc**: Fix claude 3.5+ models context max output, closes [lobehub#6984](https://github.com/jaworldwideorg/OneJA-Bot/issues/6984) ([da342dd](da342dd))
* **misc**: Fix google gemini output relative issue, closes [lobehub#6970](https://github.com/jaworldwideorg/OneJA-Bot/issues/6970) ([fdcaaf3](fdcaaf3))
* **misc**: Fix knowledge base issue, closes [lobehub#6973](https://github.com/jaworldwideorg/OneJA-Bot/issues/6973) ([15f39ef](15f39ef))

#### Styles

* **misc**: Support screenshot to clipboard when sharing, closes [lobehub#6275](https://github.com/jaworldwideorg/OneJA-Bot/issues/6275) ([45663c3](45663c3))
* **misc**: Update Vertex AI models, closes [lobehub#6967](https://github.com/jaworldwideorg/OneJA-Bot/issues/6967) ([d4432f1](d4432f1))
* **misc**: Update Wenxin & Hunyuan model list, closes [lobehub#6995](https://github.com/jaworldwideorg/OneJA-Bot/issues/6995) ([d017f35](d017f35))

</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
Labels
released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] 加载知识库聊天报错 [Bug] 过长上下文(>8192)下会导致向量化检索失败
2 participants