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

Sync in latest upstream changes #3

Merged
merged 363 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
4a95349
Feat: Modify the link address of the agent id #3909 (#4062)
cike8899 Dec 17, 2024
fddac13
Fix raptor resuable issue. (#4063)
KevinHuSh Dec 17, 2024
bcccacc
Added pagerank support to infinity (#4059)
yuzhichang Dec 17, 2024
1d65299
Fix rerank_model bug in chat and markdown bug (#4061)
Feiue Dec 17, 2024
000cd6d
Fix position lost issue. (#4068)
KevinHuSh Dec 17, 2024
e8b4e8b
Feat: Bind event to the theme Switch #3221 (#4067)
cike8899 Dec 17, 2024
09436f6
Elasticsearch disk-based shard allocator use absolute byte values ins…
yuzhichang Dec 17, 2024
251592e
show avatar dialog instead of default (#4033)
isthaison Dec 17, 2024
bedc09f
Add Architecture-Specific Logic for msodbcsql in Dockerfile #4036 (#4…
midilandlu Dec 17, 2024
163c2a7
Feat: Add AdvancedSettingForm #3221 (#4071)
cike8899 Dec 17, 2024
79e435f
Fix: The cursor is lost after entering a character in the operator fo…
cike8899 Dec 17, 2024
0a3c6ff
update chinese model warning message (#4075)
benquike Dec 18, 2024
00f99ec
Fix: Fixed the issue with external chat box reporting errors #3909 (…
cike8899 Dec 18, 2024
db74a3e
Fix conversation bug in agent session (#4078)
Feiue Dec 18, 2024
f8c9ec4
Fix arm doc (#4080)
yuzhichang Dec 18, 2024
f8cef73
Fix abnormal user invitaion message. (#4081)
KevinHuSh Dec 18, 2024
50c2b9d
Refactor trie load and construct (#4083)
JinHai-CN Dec 18, 2024
dfbdead
Fix: Fixed the issue where the required information in the input box …
cike8899 Dec 18, 2024
742eef0
Add huqie trie to docker image. (#4084)
KevinHuSh Dec 18, 2024
85f3d92
Update team invite message (#4085)
JinHai-CN Dec 18, 2024
4764ca5
Bump infinity to 0.5.0 (#4088)
yuzhichang Dec 18, 2024
1fdad50
Fix raptor (#4089)
yuzhichang Dec 18, 2024
e513ad2
Feat: Add MultiSelect #3221 (#4090)
cike8899 Dec 18, 2024
a45ba3a
Prepare docs for v0.15.0 release (#4077)
KevinHuSh Dec 18, 2024
bfdc494
Added release notes for v0.15.0 (#4056)
writinwaters Dec 18, 2024
57fe5d0
Add latest updates. (#4093)
KevinHuSh Dec 18, 2024
a5cf6fc
Feat: Translate the previous run into parsing #4094 (#4095)
cike8899 Dec 18, 2024
044bb03
Fix release.yml (#4100)
yuzhichang Dec 18, 2024
5fb9136
Miscellaneous updates to session APIs (#4097)
writinwaters Dec 18, 2024
561eeab
add typo locale (#4099)
isthaison Dec 19, 2024
57c99dd
Fixed infinity exception SCORE() / SCORE_FACTORS() requires Fusion or…
yuzhichang Dec 19, 2024
8939206
Separated list_agents() from session management (#4111)
writinwaters Dec 19, 2024
7474348
Fix fastembed reloading issue. (#4117)
KevinHuSh Dec 19, 2024
b35e811
Add parameters for ask_chat and fix bugs in list_sessions (#4119)
Feiue Dec 19, 2024
d8fca43
Make fast embed and default embed mutually exclusive. (#4121)
KevinHuSh Dec 19, 2024
101b8ff
fix chunk method "Table" losing content when the Excel file has multi…
ly0303521 Dec 19, 2024
478da31
add gemini 2.0 (#4115)
isthaison Dec 19, 2024
213218a
Refactor ask decorator (#4116)
JinHai-CN Dec 19, 2024
8dcf996
Corrections. (#4127)
KevinHuSh Dec 19, 2024
e38e3bc
Mask password in log (#4129)
yuzhichang Dec 19, 2024
10a6211
Fix example in doc (#4133)
JinHai-CN Dec 19, 2024
6379a93
Fix redis get error. (#4140)
KevinHuSh Dec 20, 2024
a0dc9e1
Fix position_int on infinity (#4144)
yuzhichang Dec 20, 2024
35580af
Update the component of the agent API with parameters. (#4131)
Feiue Dec 20, 2024
85083ad
Validate returned chunk at list_chunks and add_chunk (#4153)
yuzhichang Dec 20, 2024
cb45431
Fix Voyage re-rank model. Limit file name length. (#4171)
KevinHuSh Dec 23, 2024
f13f503
Use s3 configuration from settings module (#4167)
KennyDizi Dec 23, 2024
96da618
Fix bug over chunks classification by document in the promp (#4156)
devMls Dec 23, 2024
cac7851
Update jin10.svg (#4159)
isthaison Dec 23, 2024
2cbe064
Add Llama3.3 (#4174)
KevinHuSh Dec 23, 2024
31d67c8
Fetch chunk by batches. (#4177)
KevinHuSh Dec 23, 2024
8f070c3
Fix 'SCORE' not found bug (#4178)
JinHai-CN Dec 23, 2024
a4bccc1
Feat: If there is no result in the recall test, an empty data image w…
cike8899 Dec 23, 2024
4abc144
Fix error of changing embedding model (#4184)
JinHai-CN Dec 23, 2024
b635002
Fix duplicated communitiy (#4187)
KevinHuSh Dec 23, 2024
8d73cf6
Added time to progress message (#4185)
yuzhichang Dec 23, 2024
cf62230
Fix: Fixed the issue that the page crashed when the node ID was the …
cike8899 Dec 23, 2024
c373dba
Fix raptor bug. (#4192)
KevinHuSh Dec 23, 2024
a9fd606
Fix score() issue (#4194)
JinHai-CN Dec 23, 2024
d030b4a
Update progress time info (#4193)
JinHai-CN Dec 23, 2024
76cd23e
Catch the exception while parsing pptx. (#4202)
KevinHuSh Dec 24, 2024
321e9f3
fix: stop rerank by model when search result is empty (#4203)
mieco Dec 24, 2024
b7a7413
Bump infinity to 0.5.2 (#4207)
yuzhichang Dec 24, 2024
03cbbf7
Add user_id for third-party system to record sessions. (#4206)
KevinHuSh Dec 24, 2024
7d8e060
Remove session owner check. (#4211)
KevinHuSh Dec 24, 2024
4e5f92f
Fix interface as input variable for component. (#4212)
KevinHuSh Dec 24, 2024
bc3288d
Fix misspell. (#4219)
KevinHuSh Dec 25, 2024
61790eb
Fix: Rename chat name, missing field 'avatar' #4125 (#4221)
cike8899 Dec 25, 2024
1160b58
Update pyproject.toml to 0.15.1 (#4222)
JinHai-CN Dec 25, 2024
a3eeb5d
Fix: Q&A chunk modification (#4227)
cike8899 Dec 25, 2024
85511cb
Miscellaneous updates (#4228)
writinwaters Dec 25, 2024
28eeb29
Fix component input error. (#4231)
KevinHuSh Dec 26, 2024
7e06328
Removing invisible chars before tokenization. (#4233)
KevinHuSh Dec 26, 2024
fe27975
Update version info (#4232)
JinHai-CN Dec 26, 2024
9fa7377
Fixed invoke component parameters #4236 (#4237)
gegef2009 Dec 26, 2024
722545e
Fix bugs (#4241)
JinHai-CN Dec 26, 2024
600f435
Fix text (#4244)
JinHai-CN Dec 26, 2024
097aab0
Replace image2text model check with internal image. (#4250)
KevinHuSh Dec 26, 2024
a6f4153
Update UI text (#4248)
JinHai-CN Dec 27, 2024
a1a825c
Feat: Add the iteration Node #4242 (#4247)
cike8899 Dec 27, 2024
c3e3f0f
Add iteration for agent. (#4258)
KevinHuSh Dec 27, 2024
f948c0d
Clean query. (#4259)
KevinHuSh Dec 27, 2024
146e8bb
Feat: Limit the iteration start node to only be the source node #4242…
cike8899 Dec 27, 2024
6f6303d
Fix Python SDK example error. (#4262)
KevinHuSh Dec 27, 2024
c781877
Fix Python SDK example error. (#4263)
KevinHuSh Dec 27, 2024
c75aa11
Fix: The edit box for the headers parameter of the invoke operator is…
cike8899 Dec 27, 2024
2d17e5a
Feat: Delete useless code #4242 (#4267)
cike8899 Dec 27, 2024
798eb36
Fix chat listing error. (#4270)
KevinHuSh Dec 27, 2024
7773afa
Update text2sql agent manual document (#4226) (#4271)
TeslaZY Dec 27, 2024
8cdf101
Initial draft of the begin component reference (#4272)
writinwaters Dec 27, 2024
dd13a5d
Fix some bugs in text2sql.(#4279)(#4281) (#4280)
TeslaZY Dec 30, 2024
8feb4c1
Fix BaiduFanyi TestRun parameter validation and debug method missing …
WANGRUI-ZB Dec 30, 2024
713b837
Feat: Translate the system prompt of the generate operator #3993 (#4…
cike8899 Dec 30, 2024
3ba2b8d
Fix agent session list by user_id. (#4285)
KevinHuSh Dec 30, 2024
54908eb
Fix the bug in create_dataset function (#4284)
Feiue Dec 30, 2024
d1971e9
Feat: The Begin and IterationStart operators cannot be deleted using …
cike8899 Dec 30, 2024
f619d5a
Fix: After executing npm i --force locally, the login page cannot be …
cike8899 Dec 30, 2024
8fb18f3
Code refactor. (#4291)
KevinHuSh Dec 30, 2024
d42e78b
Fix bugs in chunk api (#4293)
Feiue Dec 30, 2024
b52b0f6
Add top_k for create_chat and update_chat api (#4294)
Feiue Dec 30, 2024
4ba4f62
Refactor (#4303)
KevinHuSh Dec 31, 2024
accd3a6
Support OpenAI gpt-4o and gpt-4o-mini for img2text (#4300)
hrchu Dec 31, 2024
7c7b7d2
Update error message for agent name conflict (#4299)
Feiue Dec 31, 2024
0e5124e
Show the errors out. (#4305)
KevinHuSh Dec 31, 2024
e5b1511
Fix: Fixed the issue that the graph could not display the grouping #4…
cike8899 Dec 31, 2024
419b546
Update displayed_name to display_name (#4311)
Feiue Dec 31, 2024
5071df9
Fix parameter name error. (#4312)
KevinHuSh Dec 31, 2024
061a225
Feat: Add DatasetCreatingDialog #3221 (#4313)
cike8899 Dec 31, 2024
5642777
Update exesql component for agent (#4307)
Feiue Dec 31, 2024
50f2092
Synchronize with enterprise version (#4325)
yingfeng Jan 2, 2025
5883493
Feat: Add FileUploadDialog #3221 (#4327)
cike8899 Jan 2, 2025
df22ead
Fix agent_completion bug (#4329)
Feiue Jan 2, 2025
59a7840
Fix t_recognizer.py after model updating. (#4330)
KevinHuSh Jan 2, 2025
5083d92
Feat: Add model id to ExeSql operator form. #1739 (#4333)
cike8899 Jan 2, 2025
8674156
Fix potential SSRF attack vulnerability (#4334)
Feiue Jan 2, 2025
5dad156
Feat: Add FileUploadDialog #3221 (#4327) (#4335)
cike8899 Jan 3, 2025
52c2003
Fix total number error. (#4339)
KevinHuSh Jan 3, 2025
6288b6d
chrome extensions (#4308)
isthaison Jan 3, 2025
9c6cf12
Refactor model list. (#4346)
KevinHuSh Jan 3, 2025
bad764b
Improve storage engine (#4341)
KennyDizi Jan 6, 2025
a9ba051
Adds a research report generator. (#4354)
KevinHuSh Jan 6, 2025
983ec06
Fix param error. (#4355)
KevinHuSh Jan 6, 2025
b93c136
Fix gemini embedding error. (#4356)
KevinHuSh Jan 6, 2025
4561970
Updated outdated descriptions and added multi-turn optimization (#4362)
writinwaters Jan 6, 2025
439d20e
Use LTS polars to resolve some machines don't support AVX CPU flag (#…
JinHai-CN Jan 6, 2025
1d93eb8
Feat: Add TagTable #4367 (#4368)
cike8899 Jan 6, 2025
bb24e5f
Added instructions on embedding agent or assistant into a third-party…
writinwaters Jan 6, 2025
16e1681
Refine DB assistant template. (#4383)
KevinHuSh Jan 7, 2025
d088a34
Feat: Add LoadingButton #4368 (#4384)
cike8899 Jan 7, 2025
2e40c2a
Fix t_recognizer issue. (#4387)
KevinHuSh Jan 7, 2025
de822a1
Refine variable display name. (#4397)
KevinHuSh Jan 7, 2025
8ec392a
Feat: Add TagWorkCloud #4368 (#4393)
cike8899 Jan 7, 2025
01a122d
fix bug, agent invoke can not get params from begin (#4390)
WANGRUI-ZB Jan 7, 2025
ac89a2d
[Fix] fix duckduck go search 202 ratelimit failed (#4398)
gegef2009 Jan 7, 2025
d9a4e4c
Fix page size error. (#4401)
KevinHuSh Jan 7, 2025
49cebd9
Feat: Add description for tag parsing method #4368 (#4402)
cike8899 Jan 7, 2025
5e64d79
Added generate component description (#4399)
writinwaters Jan 7, 2025
b7ce4e7
fix:t_recognizer TypeError: 'super' object is not callable (#4404)
michaelice Jan 8, 2025
3d66d78
Fix API retrieval error. (#4408)
KevinHuSh Jan 8, 2025
af43cb0
Feat: Add tag_kwd parameter to chunk configuration modal #4368 (#4414)
cike8899 Jan 8, 2025
d64df4d
Update error message (#4417)
JinHai-CN Jan 8, 2025
7bebf4b
Added descriptions of the retrieval agent component (#4416)
writinwaters Jan 9, 2025
b6c71c1
Fix typo in helm charts (#4419)
hrchu Jan 9, 2025
bc681e2
Remove redundant param of rewrite component. (#4422)
KevinHuSh Jan 9, 2025
f86d890
Fixed code error when mssql returns multiple columns (#4420)
isthaison Jan 9, 2025
f892d7d
Let the agent talk while there's pre-set param. (#4423)
KevinHuSh Jan 9, 2025
c5da3cd
Tagging (#4426)
KevinHuSh Jan 9, 2025
dac54de
Added a description of the Categorize agent component (#4428)
writinwaters Jan 9, 2025
300d8ec
Feat: Add TagFeatureItem #4368 (#4432)
cike8899 Jan 9, 2025
48bca0c
Fix: Modify the text of the category operator form #4412 (#4433)
cike8899 Jan 9, 2025
6acbd37
fix duckduckgo search subsection error (#4430)
gegef2009 Jan 10, 2025
06c5436
Feat: Display tag word cloud on recall test page #4368 (#4438)
cike8899 Jan 10, 2025
93b30b2
update res vi (#4437)
isthaison Jan 10, 2025
4dde73f
Error message: Infinity not support table parsing method (#4439)
JinHai-CN Jan 10, 2025
7d909d4
Add doc meta data. (#4442)
KevinHuSh Jan 10, 2025
95261f1
Bump infinity to v0.6.0-dev1 (#4448)
yuzhichang Jan 12, 2025
2c7ba90
Fix: In order to distinguish the keys of a pair of messages, add a pr…
cike8899 Jan 13, 2025
ecdb2a8
Fix: Can not select GPT-4o / 4o mini as Chat Model #4421 (#4453)
cike8899 Jan 13, 2025
e098fcf
Fix csv for TAG. (#4454)
KevinHuSh Jan 13, 2025
46c52d6
Add meta data while chatting. (#4455)
KevinHuSh Jan 13, 2025
d8346cb
Feat: Metadata in documents for improve the prompt #3690 (#4462)
cike8899 Jan 13, 2025
c083820
Check meta data format in json map (#4461)
KevinHuSh Jan 13, 2025
fd0bf3a
Format: dos2unix (#4467)
JinHai-CN Jan 13, 2025
d3c0779
Replace poetry with uv (#4471)
yuzhichang Jan 14, 2025
f318342
Recalling the file uploaded while chatting. (#4472)
KevinHuSh Jan 14, 2025
f556f02
Fix dify retrieval issue. (#4473)
KevinHuSh Jan 14, 2025
23ad459
Feat: Add background to next login page #3221 (#4474)
cike8899 Jan 14, 2025
8f7ecde
Update description (#4468)
JinHai-CN Jan 14, 2025
713f380
Sync prerequisites with Helm Charts (#4483)
hrchu Jan 15, 2025
e478586
Refactor. (#4487)
KevinHuSh Jan 15, 2025
7944aac
Feat: add gpustack model provider (#4469)
alexcodelf Jan 15, 2025
be5f830
Truncate text for zhipu embedding. (#4490)
KevinHuSh Jan 15, 2025
b4614e9
Feat: Add FilesTable #3221 (#4491)
cike8899 Jan 15, 2025
c852a6d
Accelerate titles' embeddings. (#4492)
KevinHuSh Jan 15, 2025
57b4e0c
Bump infinity to v0.6.0-dev2 (#4497)
yuzhichang Jan 16, 2025
961e8c4
Fix: the Display when the knowledge base empty. (#4496)
limengning Jan 16, 2025
a75cda4
Feat: Add LinkToDatasetDialog #3221 (#4500)
cike8899 Jan 16, 2025
3805621
Fix xinference rerank issue. (#4499)
KevinHuSh Jan 16, 2025
39be08c
Feat: Add the MessageHistoryWindowSizeItem to RewriteQuestionForm #17…
cike8899 Jan 16, 2025
3723531
Fix: Fixed an issue where math formulas could not be displayed correc…
cike8899 Jan 16, 2025
4946e43
Feat: Make the category operator form displayed in collapsed mode by …
cike8899 Jan 16, 2025
c0799c5
Added descriptions of Message and Keyword agent components (#4512)
writinwaters Jan 16, 2025
0efe7a5
Change index url per NEED_MIRROR (#4515)
yuzhichang Jan 17, 2025
03d7a51
add file README_tzh.md (#4513)
luohuanhuan2019 Jan 17, 2025
6998455
Fix: Translate the operator options of the Switch operator #1739 (#4519)
cike8899 Jan 17, 2025
f4d084b
Fix doc progress issue. (#4520)
KevinHuSh Jan 17, 2025
938492c
Fix: Rename segmented.tsx #3221 (#4522)
cike8899 Jan 17, 2025
4f9f940
Remove use of eval() from ocr.py (#4481)
panzi Jan 20, 2025
75e1981
Remove use of eval() from recognizer.py (#4480)
panzi Jan 20, 2025
2962284
Bump akshare (#4536)
yuzhichang Jan 20, 2025
367babd
Make `Categorize` see more chat hisotry. (#4538)
KevinHuSh Jan 20, 2025
e0f52ee
Added descriptions of Rewrite and Switch components. To be continued …
writinwaters Jan 20, 2025
a3391c4
Feat: Rename document name #3221 (#4544)
cike8899 Jan 20, 2025
99430a7
Added description of the Concentrator component (#4549)
writinwaters Jan 20, 2025
db80376
Added entrypoint for task executor (#4551)
yuzhichang Jan 20, 2025
fc35821
Feat: Make the scroll bar of the DatasetSettings page appear inside #…
cike8899 Jan 21, 2025
5632613
Add language portugese br (#4550)
henriquelca Jan 21, 2025
21052b2
Feat: Support for Portuguese language #4557 (#4558)
cike8899 Jan 21, 2025
a2946b0
Added descriptions of the Note and Template components (#4560)
writinwaters Jan 21, 2025
583050a
minor (#4568)
writinwaters Jan 21, 2025
3894de8
Update comments (#4569)
JinHai-CN Jan 21, 2025
4b82275
Fix Latest Release button on PT README (#4572)
henriquelca Jan 22, 2025
cbc3c52
Revert the chat history for rewrite. (#4579)
KevinHuSh Jan 22, 2025
598e142
re-fix (#4584)
isthaison Jan 22, 2025
336e5fb
Renamed entrypoint_task_executor.sh entrypoint-parser.sh (#4583)
yuzhichang Jan 22, 2025
1a36766
Remove usage of eval() from postprocess.py (#4571)
panzi Jan 22, 2025
dd0ebbe
Light GraphRAG (#4585)
KevinHuSh Jan 22, 2025
c5c0dd2
Feat: Display the knowledge graph on the knowledge base page #4543 (#…
cike8899 Jan 22, 2025
15f9406
Fix: Capture the problem that the knowledge graph interface returns n…
cike8899 Jan 23, 2025
c4b9e90
Fix index not found for new user. (#4597)
KevinHuSh Jan 23, 2025
13f04b7
Fix pdf applying Q&A issue. (#4599)
KevinHuSh Jan 23, 2025
52fa8bd
fix bug KGSearch.search() got an unexpected keyword argument 'rank_fe…
bulexu Jan 23, 2025
240e7d7
Unified user_service.py (#4606)
yuzhichang Jan 23, 2025
b23a4a8
Feat: Add keyword item to AssistantSetting #4543 (#4603)
cike8899 Jan 23, 2025
bbc1d02
Template conversion adds Jinjia2 syntax support (#4545)
WANGRUI-ZB Jan 23, 2025
8689295
Rebuild graph when it's out of time. (#4607)
KevinHuSh Jan 23, 2025
07b3e55
Feat: Set the style of the header tag #3221 (#4608)
cike8899 Jan 23, 2025
55f2b7c
Code format. (#4611)
KevinHuSh Jan 23, 2025
e14d6ae
Refactor. (#4612)
KevinHuSh Jan 23, 2025
4230402
deepdoc use GPU if possible (#4618)
yuzhichang Jan 24, 2025
f1d9f42
Fix TogetherAIEmbed. (#4623)
KevinHuSh Jan 24, 2025
e9ccba0
Add timestamp to messages (#4624)
KevinHuSh Jan 24, 2025
1bff6b7
Fix t_ocr.py for PNG image. (#4625)
KevinHuSh Jan 24, 2025
fa42772
Added document: Accelerate document indexing and retrieval (#4600)
writinwaters Jan 24, 2025
898ae7f
Fix missplace for vector sim weight and token sim weight. (#4627)
KevinHuSh Jan 24, 2025
8b49734
Added onnxruntime-gpu (#4631)
yuzhichang Jan 24, 2025
9d717f0
Fix csv reader exception. (#4628)
KevinHuSh Jan 24, 2025
71c132f
Make infinity adapt (#4635)
KevinHuSh Jan 24, 2025
3c2c894
Removed onnxruntime (#4632)
yuzhichang Jan 24, 2025
c4b1c4e
Fix onnxruntime-gpu marks (#4643)
yuzhichang Jan 26, 2025
530b0da
Make infinity able to cal embedding sim only. (#4644)
KevinHuSh Jan 26, 2025
f33415b
refactor: better vertical alignment for icon and text in some setting…
vndee Jan 26, 2025
42f7261
Fix param error. (#4645)
KevinHuSh Jan 26, 2025
284b4d4
Align table heading with 'System Model Settings' (#4646)
writinwaters Jan 26, 2025
2cb8edc
Added GPUStack (#4649)
writinwaters Jan 26, 2025
4011c8f
Fix potential error. (#4650)
KevinHuSh Jan 26, 2025
c24137b
Fix too long integer for `Table`. (#4651)
KevinHuSh Jan 26, 2025
4776fa5
Refactor for total_tokens. (#4652)
KevinHuSh Jan 26, 2025
b4303f6
Update README. (#4654)
KevinHuSh Jan 26, 2025
c354239
Make infinity adapt to condition `exist`. (#4657)
KevinHuSh Jan 26, 2025
47b28a2
Added description of the Iteration component (#4656)
writinwaters Jan 27, 2025
656a2fa
Refresh deepseek models. (#4660)
KevinHuSh Jan 27, 2025
bc6a768
Refactor the delimiter name (#4659)
JinHai-CN Jan 27, 2025
ce8658a
Update FAQ (#4661)
JinHai-CN Jan 27, 2025
d970d0e
Fix typos (#4662)
JinHai-CN Jan 27, 2025
6f30397
Infinity adapt to graphrag. (#4663)
KevinHuSh Jan 27, 2025
50055c4
Infinity mapping refine. (#4665)
KevinHuSh Jan 27, 2025
1915873
Fix macOS startup (#4658)
Mulugruntz Jan 28, 2025
1733d9a
Merge branch 'infiniflow:main' into update/upstream
sd109 Jan 28, 2025
6a59674
Bump RAGFlow image to v0.15.1
sd109 Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
124 changes: 124 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: release

on:
schedule:
- cron: '0 13 * * *' # This schedule runs every 13:00:00Z(21:00:00+08:00)
# The "create tags" trigger is specifically focused on the creation of new tags, while the "push tags" trigger is activated when tags are pushed, including both new tag creations and updates to existing tags.
create:
tags:
- "v*.*.*" # normal release
- "nightly" # the only one mutable tag

# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
release:
runs-on: [ "self-hosted", "overseas" ]
steps:
- name: Ensure workspace ownership
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE

# https://github.com/actions/checkout/blob/v3/README.md
- name: Check out code
uses: actions/checkout@v4
with:
token: ${{ secrets.MY_GITHUB_TOKEN }} # Use the secret as an environment variable
fetch-depth: 0
fetch-tags: true

- name: Prepare release body
run: |
if [[ $GITHUB_EVENT_NAME == 'create' ]]; then
RELEASE_TAG=${GITHUB_REF#refs/tags/}
if [[ $RELEASE_TAG == 'nightly' ]]; then
PRERELEASE=true
else
PRERELEASE=false
fi
echo "Workflow triggered by create tag: $RELEASE_TAG"
else
RELEASE_TAG=nightly
PRERELEASE=true
echo "Workflow triggered by schedule"
fi
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
RELEASE_DATETIME=$(date --rfc-3339=seconds)
echo Release $RELEASE_TAG created from $GITHUB_SHA at $RELEASE_DATETIME > release_body.md

- name: Move the existing mutable tag
# https://github.com/softprops/action-gh-release/issues/171
run: |
git fetch --tags
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
# Determine if a given tag exists and matches a specific Git commit.
# actions/checkout@v4 fetch-tags doesn't work when triggered by schedule
if [ "$(git rev-parse -q --verify "refs/tags/$RELEASE_TAG")" = "$GITHUB_SHA" ]; then
echo "mutable tag $RELEASE_TAG exists and matches $GITHUB_SHA"
else
git tag -f $RELEASE_TAG $GITHUB_SHA
git push -f origin $RELEASE_TAG:refs/tags/$RELEASE_TAG
echo "created/moved mutable tag $RELEASE_TAG to $GITHUB_SHA"
fi
fi

- name: Create or overwrite a release
# https://github.com/actions/upload-release-asset has been replaced by https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.MY_GITHUB_TOKEN }} # Use the secret as an environment variable
prerelease: ${{ env.PRERELEASE }}
tag_name: ${{ env.RELEASE_TAG }}
# The body field does not support environment variable substitution directly.
body_path: release_body.md

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# https://github.com/marketplace/actions/docker-login
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: infiniflow
password: ${{ secrets.DOCKERHUB_TOKEN }}

# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push full image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: infiniflow/ragflow:${{ env.RELEASE_TAG }}
file: Dockerfile
platforms: linux/amd64

# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push slim image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: infiniflow/ragflow:${{ env.RELEASE_TAG }}-slim
file: Dockerfile
build-args: LIGHTEN=1
platforms: linux/amd64

- name: Build ragflow-sdk
if: startsWith(github.ref, 'refs/tags/v')
run: |
cd sdk/python && \
uv build

- name: Publish package distributions to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdk/python/dist/
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
39 changes: 23 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,36 @@ jobs:
fetch-depth: 0
fetch-tags: true

- name: Build ragflow:dev-slim
# https://github.com/astral-sh/ruff-action
- name: Static check with Ruff
uses: astral-sh/ruff-action@v2
with:
version: ">=0.8.2"
args: "check --ignore E402"

- name: Build ragflow:nightly-slim
run: |
RUNNER_WORKSPACE_PREFIX=${RUNNER_WORKSPACE_PREFIX:-$HOME}
cp -r ${RUNNER_WORKSPACE_PREFIX}/huggingface.co ${RUNNER_WORKSPACE_PREFIX}/nltk_data ${RUNNER_WORKSPACE_PREFIX}/libssl*.deb ${RUNNER_WORKSPACE_PREFIX}/tika-server*.jar* ${RUNNER_WORKSPACE_PREFIX}/chrome* ${RUNNER_WORKSPACE_PREFIX}/cl100k_base.tiktoken .
sudo docker pull ubuntu:22.04
sudo docker build --progress=plain -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
sudo docker build --progress=plain --build-arg LIGHTEN=1 --build-arg NEED_MIRROR=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .

- name: Build ragflow:dev
- name: Build ragflow:nightly
run: |
sudo docker build --progress=plain -f Dockerfile -t infiniflow/ragflow:dev .
sudo docker build --progress=plain --build-arg NEED_MIRROR=1 -f Dockerfile -t infiniflow/ragflow:nightly .

- name: Start ragflow:dev-slim
- name: Start ragflow:nightly-slim
run: |
echo "RAGFLOW_IMAGE=infiniflow/ragflow:nightly-slim" >> docker/.env
sudo docker compose -f docker/docker-compose.yml up -d

- name: Stop ragflow:dev-slim
- name: Stop ragflow:nightly-slim
if: always() # always run this step even if previous steps failed
run: |
sudo docker compose -f docker/docker-compose.yml down -v

- name: Start ragflow:dev
- name: Start ragflow:nightly
run: |
echo "RAGFLOW_IMAGE=infiniflow/ragflow:dev" >> docker/.env
echo "RAGFLOW_IMAGE=infiniflow/ragflow:nightly" >> docker/.env
sudo docker compose -f docker/docker-compose.yml up -d

- name: Run sdk tests against Elasticsearch
Expand All @@ -82,7 +89,7 @@ jobs:
echo "Waiting for service to be available..."
sleep 5
done
cd sdk/python && poetry install && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py
cd sdk/python && uv sync --python 3.10 --frozen && uv pip install . && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py

- name: Run frontend api tests against Elasticsearch
run: |
Expand All @@ -92,15 +99,15 @@ jobs:
echo "Waiting for service to be available..."
sleep 5
done
cd sdk/python && poetry install && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
cd sdk/python && uv sync --python 3.10 --frozen && uv pip install . && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py


- name: Stop ragflow:dev
- name: Stop ragflow:nightly
if: always() # always run this step even if previous steps failed
run: |
sudo docker compose -f docker/docker-compose.yml down -v

- name: Start ragflow:dev
- name: Start ragflow:nightly
run: |
sudo DOC_ENGINE=infinity docker compose -f docker/docker-compose.yml up -d

Expand All @@ -112,7 +119,7 @@ jobs:
echo "Waiting for service to be available..."
sleep 5
done
cd sdk/python && poetry install && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py
cd sdk/python && uv sync --python 3.10 --frozen && uv pip install . && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py

- name: Run frontend api tests against Infinity
run: |
Expand All @@ -122,9 +129,9 @@ jobs:
echo "Waiting for service to be available..."
sleep 5
done
cd sdk/python && poetry install && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
cd sdk/python && uv sync --python 3.10 --frozen && uv pip install . && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py

- name: Stop ragflow:dev
- name: Stop ragflow:nightly
if: always() # always run this step even if previous steps failed
run: |
sudo DOC_ENGINE=infinity docker compose -f docker/docker-compose.yml down -v
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ rag/res/deepdoc
sdk/python/ragflow.egg-info/
sdk/python/build/
sdk/python/dist/
sdk/python/ragflow_sdk.egg-info/
sdk/python/ragflow_sdk.egg-info/
huggingface.co/
nltk_data/
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contribution guidelines

This document offers guidlines and major considerations for submitting your contributions to RAGFlow.
This document offers guidelines and major considerations for submitting your contributions to RAGFlow.

- To report a bug, file a [GitHub issue](https://github.com/infiniflow/ragflow/issues/new/choose) with us.
- For further questions, you can explore existing discussions or initiate a new one in [Discussions](https://github.com/orgs/infiniflow/discussions).
Expand Down
Loading