ragflow/api
Zhenglin Dong 11e6d84d46
Fix: 'Chunk not found!' error in team-sharing knowledge base. (#5361)
### What problem does this PR solve?

As issue #3268 mentioned, "Chun not found!" exception will occur,
especially during the teamwork of knowledge bases.

### The reason of this bug

"tenants" are the people on current_user's team, including the team
owner itself. The old one only checks the first "tenant", tenants[0],
which will cause error when anyone editing the chunk that is not in
tenants[0]'s knowledge base.

My modification won't introduce new errors while iterate all the tenant
then retrieve knowledge bases of each.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-26 10:24:35 +08:00
..
apps Fix: 'Chunk not found!' error in team-sharing knowledge base. (#5361) 2025-02-26 10:24:35 +08:00
db Add tavily as web searh tool. (#5349) 2025-02-26 10:21:04 +08:00
utils Add another decrypt function. (#5043) 2025-02-17 18:09:11 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
constants.py Add more web test cases (#3702) 2024-11-28 15:46:35 +08:00
ragflow_server.py Refactor. (#4487) 2025-01-15 14:06:46 +08:00
settings.py Add configuration to choose default llm models (#5245) 2025-02-24 10:13:39 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00