jinhai-2012 commited on
Commit
fa82d94
·
1 Parent(s): 19c1e26

Update comments (#4569)

Browse files

### What problem does this PR solve?

Add license statement.

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <[email protected]>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. agent/__init__.py +16 -0
  2. agent/component/__init__.py +16 -0
  3. agent/settings.py +1 -1
  4. api/__init__.py +16 -0
  5. api/utils/t_crypt.py +16 -0
  6. api/utils/web_utils.py +16 -0
  7. deepdoc/__init__.py +16 -0
  8. deepdoc/parser/__init__.py +3 -0
  9. deepdoc/parser/docx_parser.py +3 -0
  10. deepdoc/parser/excel_parser.py +3 -0
  11. deepdoc/parser/html_parser.py +4 -0
  12. deepdoc/parser/json_parser.py +16 -0
  13. deepdoc/parser/markdown_parser.py +4 -0
  14. deepdoc/parser/pdf_parser.py +3 -0
  15. deepdoc/parser/ppt_parser.py +4 -0
  16. deepdoc/parser/resume/__init__.py +3 -0
  17. deepdoc/parser/resume/entities/__init__.py +15 -0
  18. deepdoc/parser/resume/entities/corporations.py +3 -0
  19. deepdoc/parser/resume/entities/degrees.py +3 -0
  20. deepdoc/parser/resume/entities/industries.py +3 -0
  21. deepdoc/parser/resume/entities/regions.py +4 -0
  22. deepdoc/parser/resume/entities/schools.py +3 -0
  23. deepdoc/parser/resume/step_one.py +3 -0
  24. deepdoc/parser/resume/step_two.py +4 -0
  25. deepdoc/parser/txt_parser.py +4 -0
  26. deepdoc/parser/utils.py +3 -0
  27. deepdoc/vision/__init__.py +3 -0
  28. deepdoc/vision/layout_recognizer.py +4 -0
  29. deepdoc/vision/ocr.py +3 -0
  30. deepdoc/vision/postprocess.py +3 -0
  31. deepdoc/vision/recognizer.py +3 -0
  32. deepdoc/vision/seeit.py +3 -0
  33. deepdoc/vision/t_ocr.py +3 -0
  34. deepdoc/vision/t_recognizer.py +4 -0
  35. deepdoc/vision/table_structure_recognizer.py +3 -0
  36. intergrations/chatgpt-on-wechat/plugins/__init__.py +16 -0
  37. intergrations/chatgpt-on-wechat/plugins/ragflow_chat.py +16 -0
  38. rag/__init__.py +16 -0
  39. rag/app/__init__.py +15 -0
  40. rag/app/audio.py +4 -0
  41. rag/app/book.py +4 -0
  42. rag/app/email.py +3 -0
  43. rag/app/knowledge_graph.py +16 -0
  44. rag/app/laws.py +4 -0
  45. rag/app/manual.py +1 -1
  46. rag/app/naive.py +4 -0
  47. rag/app/one.py +4 -0
  48. rag/app/paper.py +4 -0
  49. rag/app/picture.py +4 -0
  50. rag/app/presentation.py +4 -0
agent/__init__.py CHANGED
@@ -1,2 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from beartype.claw import beartype_this_package
2
  beartype_this_package()
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  from beartype.claw import beartype_this_package
18
  beartype_this_package()
agent/component/__init__.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import importlib
2
  from .begin import Begin, BeginParam
3
  from .generate import Generate, GenerateParam
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  import importlib
18
  from .begin import Begin, BeginParam
19
  from .generate import Generate, GenerateParam
agent/settings.py CHANGED
@@ -1,5 +1,5 @@
1
  #
2
- # Copyright 2019 The FATE Authors. All Rights Reserved.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
 
1
  #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
api/__init__.py CHANGED
@@ -1,2 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from beartype.claw import beartype_this_package
2
  beartype_this_package()
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  from beartype.claw import beartype_this_package
18
  beartype_this_package()
api/utils/t_crypt.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import base64
2
  import os
3
  import sys
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  import base64
18
  import os
19
  import sys
api/utils/web_utils.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import re
2
  import socket
3
  from urllib.parse import urlparse
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  import re
18
  import socket
19
  from urllib.parse import urlparse
deepdoc/__init__.py CHANGED
@@ -1,2 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from beartype.claw import beartype_this_package
2
  beartype_this_package()
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  from beartype.claw import beartype_this_package
18
  beartype_this_package()
deepdoc/parser/__init__.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/docx_parser.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/excel_parser.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/html_parser.py CHANGED
@@ -1,4 +1,7 @@
1
  # -*- coding: utf-8 -*-
 
 
 
2
  # Licensed under the Apache License, Version 2.0 (the "License");
3
  # you may not use this file except in compliance with the License.
4
  # You may obtain a copy of the License at
@@ -11,6 +14,7 @@
11
  # See the License for the specific language governing permissions and
12
  # limitations under the License.
13
  #
 
14
  from rag.nlp import find_codec
15
  import readability
16
  import html_text
 
1
  # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
4
+ #
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
  # you may not use this file except in compliance with the License.
7
  # You may obtain a copy of the License at
 
14
  # See the License for the specific language governing permissions and
15
  # limitations under the License.
16
  #
17
+
18
  from rag.nlp import find_codec
19
  import readability
20
  import html_text
deepdoc/parser/json_parser.py CHANGED
@@ -1,4 +1,20 @@
1
  # -*- coding: utf-8 -*-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  # The following documents are mainly referenced, and only adaptation modifications have been made
3
  # from https://github.com/langchain-ai/langchain/blob/master/libs/text-splitters/langchain_text_splitters/json.py
4
 
 
1
  # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
  # The following documents are mainly referenced, and only adaptation modifications have been made
19
  # from https://github.com/langchain-ai/langchain/blob/master/libs/text-splitters/langchain_text_splitters/json.py
20
 
deepdoc/parser/markdown_parser.py CHANGED
@@ -1,4 +1,7 @@
1
  # -*- coding: utf-8 -*-
 
 
 
2
  # Licensed under the Apache License, Version 2.0 (the "License");
3
  # you may not use this file except in compliance with the License.
4
  # You may obtain a copy of the License at
@@ -11,6 +14,7 @@
11
  # See the License for the specific language governing permissions and
12
  # limitations under the License.
13
  #
 
14
  import re
15
 
16
  class RAGFlowMarkdownParser:
 
1
  # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
4
+ #
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
  # you may not use this file except in compliance with the License.
7
  # You may obtain a copy of the License at
 
14
  # See the License for the specific language governing permissions and
15
  # limitations under the License.
16
  #
17
+
18
  import re
19
 
20
  class RAGFlowMarkdownParser:
deepdoc/parser/pdf_parser.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/ppt_parser.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  from io import BytesIO
15
  from pptx import Presentation
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  from io import BytesIO
19
  from pptx import Presentation
deepdoc/parser/resume/__init__.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/entities/__init__.py CHANGED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
deepdoc/parser/resume/entities/corporations.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/entities/degrees.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/entities/industries.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/entities/regions.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import re
14
 
15
  TBL = {
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import re
18
 
19
  TBL = {
deepdoc/parser/resume/entities/schools.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/step_one.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/parser/resume/step_two.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  import re
15
  import copy
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  import re
19
  import copy
deepdoc/parser/txt_parser.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import re
14
 
15
  from deepdoc.parser.utils import get_text
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import re
18
 
19
  from deepdoc.parser.utils import get_text
deepdoc/parser/utils.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/__init__.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/layout_recognizer.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import os
14
  import re
15
  from collections import Counter
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import os
18
  import re
19
  from collections import Counter
deepdoc/vision/ocr.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/postprocess.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/recognizer.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/seeit.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/t_ocr.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
deepdoc/vision/t_recognizer.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  import os
15
  import sys
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  import os
19
  import sys
deepdoc/vision/table_structure_recognizer.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
intergrations/chatgpt-on-wechat/plugins/__init__.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from beartype.claw import beartype_this_package
2
  beartype_this_package()
3
 
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  from beartype.claw import beartype_this_package
18
  beartype_this_package()
19
 
intergrations/chatgpt-on-wechat/plugins/ragflow_chat.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import logging
2
  import requests
3
  from bridge.context import ContextType # Import Context, ContextType
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  import logging
18
  import requests
19
  from bridge.context import ContextType # Import Context, ContextType
rag/__init__.py CHANGED
@@ -1,2 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from beartype.claw import beartype_this_package
2
  beartype_this_package()
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  from beartype.claw import beartype_this_package
18
  beartype_this_package()
rag/app/__init__.py CHANGED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
rag/app/audio.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import re
14
 
15
  from api.db import LLMType
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import re
18
 
19
  from api.db import LLMType
rag/app/book.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  from tika import parser
15
  import re
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  from tika import parser
19
  import re
rag/app/email.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
rag/app/knowledge_graph.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import re
2
 
3
  from graphrag.index import build_knowledge_graph_chunks
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
  import re
18
 
19
  from graphrag.index import build_knowledge_graph_chunks
rag/app/laws.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  from tika import parser
15
  import re
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  from tika import parser
19
  import re
rag/app/manual.py CHANGED
@@ -1,5 +1,5 @@
1
  #
2
- # Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
 
1
  #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
rag/app/naive.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  from tika import parser
15
  from io import BytesIO
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  from tika import parser
19
  from io import BytesIO
rag/app/one.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  from tika import parser
15
  from io import BytesIO
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  from tika import parser
19
  from io import BytesIO
rag/app/paper.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import logging
14
  import copy
15
  import re
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import logging
18
  import copy
19
  import re
rag/app/picture.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import io
14
 
15
  import numpy as np
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import io
18
 
19
  import numpy as np
rag/app/presentation.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Licensed under the Apache License, Version 2.0 (the "License");
2
  # you may not use this file except in compliance with the License.
3
  # You may obtain a copy of the License at
@@ -10,6 +13,7 @@
10
  # See the License for the specific language governing permissions and
11
  # limitations under the License.
12
  #
 
13
  import copy
14
  import re
15
  from io import BytesIO
 
1
+ #
2
+ # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
3
+ #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
6
  # You may obtain a copy of the License at
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+
17
  import copy
18
  import re
19
  from io import BytesIO