Commit graph

1218 commits

Author SHA1 Message Date
Hetavi Shah
bbd80b9749 [OND211-2329]: Fixed ruff and lint issues and updated few test cases for the new invitation flow. 2025-11-28 13:56:45 +05:30
Andreas S. Rath
d274e3903d
Merge branch 'main' into feature/OND211-2329-Check-existing-REST-endponts-and-extend-with-new-requested-endpoints 2025-11-27 15:28:47 +01:00
Hetavi Shah
55e0ace936 [OND211-2329]: Updated add users API and tests to add users with a role(invite/normal/admin). 2025-11-27 15:30:43 +05:30
Yongteng Lei
9d8b96c1d0
Feat: add context for figure and table (#11547)
### What problem does this PR solve?

Add context for figure table.



![demo_figure_table_context](https://github.com/user-attachments/assets/61b37fac-e22e-40a4-9665-9396c7b4103e)


`==================()` for demonstrating purpose. 
### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-27 10:21:44 +08:00
天海蒼灆
a9259917c6
fix(files): replace hard coded status codes with constants (#11544)
### What problem does this PR solve?

To solve the problem of error reporting caused by type errors when
various types of exception returns are triggered

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-27 09:41:24 +08:00
Levi
12979a3f21
feat: improve metadata handling in connector service (#11421)
### What problem does this PR solve?

- Update sync data source to handle metadata properly

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2025-11-26 19:55:48 +08:00
Zhichang Yu
40e84ca41a
Use Infinity single-field-multi-index (#11444)
### What problem does this PR solve?

Use Infinity single-field-multi-index

### Type of change

- [x] Refactoring
- [x] Performance Improvement
2025-11-26 11:06:37 +08:00
Hetavi Shah
ce8862e68c [OND211-2329]: Updated import statements order. 2025-11-25 19:08:10 +05:30
Kevin Hu
f5faf0c94f
Feat: support operator in/not in for metadata filter. (#11503)
### What problem does this PR solve?

#11376 #11378

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-25 12:44:26 +08:00
Hetavi Shah
e462d5f23a [OND211-2329]: Updated permissions API and added tests. 2025-11-24 19:12:14 +05:30
Hetavi Shah
13b8f0cf41 [OND211-2329]: Allowed users to demote themselves from admin. 2025-11-24 16:44:56 +05:30
zhipeng
d5f8548200
Allow create super user when start rag server. (#10634)
### What problem does this PR solve?

New options for rag server scripts to create the super admin user when
start server.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Zhichang Yu <yuzhichang@gmail.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2025-11-24 19:02:08 +08:00
Hetavi Shah
b20737c4ad Merge remote-tracking branch 'origin/main' into feature/OND211-2329-Check-existing-REST-endponts-and-extend-with-new-requested-endpoints 2025-11-24 12:28:29 +05:30
Billy Bao
1009819801
Fix: coroutine object has no attribute get (#11472)
### What problem does this PR solve?

Fix: coroutine object has no attribute get

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-24 12:21:33 +08:00
Hetavi Shah
ed886ffe32 [OND211-2329]: Allow only team owners to promote/demote admins. 2025-11-21 19:12:00 +05:30
Hetavi Shah
89d27c75b6 [OND211-2329]: Added permissions for team users to CRUD on datasets and agents. 2025-11-21 19:11:11 +05:30
Hetavi Shah
60a6265b86 [OND211-2329]: Updated permission on dataset and canvas to share to a specific team. 2025-11-21 16:58:00 +05:30
Kevin Hu
249296e417
Feat: API supports toc_enhance. (#11437)
### What problem does this PR solve?

Close #11433

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-21 14:51:58 +08:00
Hetavi Shah
4c3db69e91 Merge remote-tracking branch 'origin/main' into feature/OND211-2329-Check-existing-REST-endponts-and-extend-with-new-requested-endpoints 2025-11-21 11:15:23 +05:30
Hetavi Shah
cd0dc1344e [OND211-2329]: Removed Department and group modules. 2025-11-21 11:08:17 +05:30
Kevin Hu
820934fc77
Fix: no result if metadata returns none. (#11412)
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-20 19:51:25 +08:00
Kevin Hu
06cef71ba6
Feat: add or logic operations for meta data filters. (#11404)
### What problem does this PR solve?

#11376 #11387

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-20 14:31:12 +08:00
Hetavi Shah
d5dcb4408e [OND211-2329]: Updated remove member from team API and tests. 2025-11-20 11:31:51 +05:30
buua436
7c6d30f4c8
Fix:RagFlow not starting with Postgres DB (#11398)
### What problem does this PR solve?
issue:
#11293 
change:
RagFlow not starting with Postgres DB
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-20 12:49:13 +08:00
天海蒼灆
9f715d6bc2
Feature (canvas): Add mind tagging support (#11359)
### What problem does this PR solve?
Resolve the issue of missing thinking labels when viewing pre-existing
conversations
### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-20 10:11:28 +08:00
Kevin Hu
c43bf1dcf5
Fix: refine error msg. (#11380)
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-19 19:10:45 +08:00
Hetavi Shah
1ce52f07ff [OND211-2329]: Updated create user API to handle encrypted passwords, as register/login(aleady existing ones) API does. 2025-11-19 16:13:28 +05:30
Kevin Hu
1c201c4d54
Fix: circle imports issue. (#11374)
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-19 16:13:21 +08:00
Hetavi Shah
23915dd537 [OND211-2329]: Added group model and API endpoint's 2025-11-19 12:50:56 +05:30
Hetavi Shah
3d02d93227 [OND211-2329]: Updated import statements alignment. 2025-11-19 11:05:30 +05:30
Jin Hai
d1dcf3b43c
Refactor /stats API (#11363)
### What problem does this PR solve?

One loop to get better performance

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2025-11-19 12:27:45 +08:00
Hetavi Shah
c38ec24b08 [OND211-2329]: Added few tests for department API and updated typings. 2025-11-18 18:47:36 +05:30
Kevin Hu
d1716d865a
Feat: Alter flask to Quart for async API serving. (#11275)
### What problem does this PR solve?

#11277

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-18 17:05:16 +08:00
Yongteng Lei
341e5904c8
Fix: No results can be found through the API /api/v1/dify/retrieval (#11338)
### What problem does this PR solve?

No results can be found through the API /api/v1/dify/retrieval. #11307 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-18 15:42:31 +08:00
buua436
ded9bf80c5
Fix:limit random sampling range in check_embedding (#11337)
### What problem does this PR solve?
issue:
[#11319](https://github.com/infiniflow/ragflow/issues/11319)
change:
limit random sampling range in check_embedding

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-18 15:24:27 +08:00
Hetavi Shah
f3dd4bd8ed [OND211-2329]: updated the create and update user API's to handle security. 2025-11-18 12:27:13 +05:30
Hetavi Shah
feb6a3a0df [OND211-2329]: updated the create and update user API's to handle edge cases. 2025-11-18 12:16:55 +05:30
buua436
912b6b023e
fix: update check_embedding failed info (#11321)
### What problem does this PR solve?
change:
update check_embedding failed info

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-18 09:39:45 +08:00
Hetavi Shah
7a8bba853b [OND211-2329]: Added API to list users in a department. 2025-11-17 17:37:01 +05:30
Hetavi Shah
a0204b0bc5 [OND211-2329]: Added API to delete department. 2025-11-17 17:10:04 +05:30
Hetavi Shah
ab88159186 [OND211-2329]: Added API to update department. 2025-11-17 16:52:14 +05:30
Hetavi Shah
83bf319ea8 [OND211-2329]: Added API to promote/demote team admins. 2025-11-17 16:51:28 +05:30
Jin Hai
bd4bc57009
Refactor: move mcp connection utilities to common (#11304)
### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2025-11-17 15:34:17 +08:00
Billy Bao
0569b50fed
Fix: create dataset return type inconsistent (#11272)
### What problem does this PR solve?

Fix: create dataset return type inconsistent #11167 
 
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-17 15:27:19 +08:00
Scott Davidson
6b64641042
Fix: default model base url extraction logic (#11263)
### What problem does this PR solve?

Fixes an issue where default models which used the same factory but
different base URLs would all be initialised with the default chat
model's base URL and would ignore e.g. the embedding model's base URL
config.

For example, with the following service config, the embedding and
reranker models would end up using the base URL for the default chat
model (i.e. `llm1.example.com`):

```yaml
ragflow:
  service_conf:
    user_default_llm:
      factory: OpenAI-API-Compatible
      api_key: not-used
      default_models:
        chat_model:
          name: llm1
          base_url: https://llm1.example.com/v1
        embedding_model:
          name: llm2
          base_url: https://llm2.example.com/v1
        rerank_model:
          name: llm3
          base_url: https://llm3.example.com/v1/rerank

  llm_factories:
    factory_llm_infos:
    - name: OpenAI-API-Compatible
      logo: ""
      tags: "LLM,TEXT EMBEDDING,SPEECH2TEXT,MODERATION"
      status: "1"
      llm:
        - llm_name: llm1
          base_url: 'https://llm1.example.com/v1'
          api_key: not-used
          tags: "LLM,CHAT,IMAGE2TEXT"
          max_tokens: 100000
          model_type: chat
          is_tools: false

        - llm_name: llm2
          base_url: https://llm2.example.com/v1
          api_key: not-used
          tags: "TEXT EMBEDDING"
          max_tokens: 10000
          model_type: embedding

        - llm_name: llm3
          base_url: https://llm3.example.com/v1/rerank
          api_key: not-used
          tags: "RERANK,1k"
          max_tokens: 10000
          model_type: rerank
```

### Type of change

- [X] Bug Fix (non-breaking change which fixes an issue)
2025-11-17 14:21:27 +08:00
Hetavi Shah
f3966d22df [OND211-2329]: Updated the create team API to handle -ve credit score. 2025-11-17 10:57:02 +05:30
Jin Hai
61cf430dbb
Minor tweats (#11271)
### What problem does this PR solve?

As title.

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2025-11-16 19:29:20 +08:00
Hetavi Shah
7253068b0f [OND211-2329]: Added department model and API to create department, add members to a department and remove members from a department. 2025-11-14 19:13:17 +05:30
Billy Bao
68e3b33ae4
Feat: extract message output to file (#11251)
### What problem does this PR solve?

Feat: extract message output to file

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-11-14 19:52:11 +08:00
Lynn
b5f2cf16bc
Fix: check task executor alive and display status (#11270)
### What problem does this PR solve?

Correctly check task executor alive and display status.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-14 15:52:28 +08:00