RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Update info (#1005)
Jin Hai9ed0e50f6bb7
diff --git a/rag/app/manual.py b/rag/app/manual.pyindex e1115489e3..240463e3c4 100644--- a/rag/app/manual.py+++ b/rag/app/manual.py@@ -1,3 +1,19 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import copyimport rediff --git a/rag/llm/rpc_server.py b/rag/llm/rpc_server.pyindex 20a1775207..dcfb38b0c5 100644--- a/rag/llm/rpc_server.py+++ b/rag/llm/rpc_server.py@@ -1,3 +1,19 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import argparseimport pickleimport randomdiff --git a/rag/nlp/__init__.py b/rag/nlp/__init__.pyindex 3a921c2ca6..9cc57992c5 100644--- a/rag/nlp/__init__.py+++ b/rag/nlp/__init__.py@@ -1,3 +1,19 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import randomfrom collections import Counterdiff --git a/rag/nlp/query.py b/rag/nlp/query.pyindex 3f6dfd0399..3ab3106f0f 100644--- a/rag/nlp/query.py+++ b/rag/nlp/query.py@@ -1,4 +1,18 @@-# -*- coding: utf-8 -*-+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#import jsonimport mathdiff --git a/rag/nlp/rag_tokenizer.py b/rag/nlp/rag_tokenizer.pyindex c728d72a65..11881162da 100644--- a/rag/nlp/rag_tokenizer.py+++ b/rag/nlp/rag_tokenizer.py@@ -1,4 +1,18 @@-# -*- coding: utf-8 -*-+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#import copyimport datriediff --git a/rag/nlp/search.py b/rag/nlp/search.pyindex 9afb3dedb3..43483237e4 100644--- a/rag/nlp/search.py+++ b/rag/nlp/search.py@@ -1,4 +1,19 @@-# -*- coding: utf-8 -*-+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import jsonimport refrom copy import deepcopydiff --git a/rag/nlp/surname.py b/rag/nlp/surname.pyindex e7098cee95..0b6a682d4f 100644--- a/rag/nlp/surname.py+++ b/rag/nlp/surname.py@@ -1,4 +1,19 @@-#-*- coding: utf-8 -*-+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+m = set(["赵","钱","孙","李","周","吴","郑","王","冯","陈","褚","卫",diff --git a/rag/nlp/synonym.py b/rag/nlp/synonym.pyindex d6fccd325e..12ca1dd799 100644--- a/rag/nlp/synonym.py+++ b/rag/nlp/synonym.py@@ -1,3 +1,19 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import jsonimport osimport timediff --git a/rag/nlp/term_weight.py b/rag/nlp/term_weight.pyindex 639896c883..720087acca 100644--- a/rag/nlp/term_weight.py+++ b/rag/nlp/term_weight.py@@ -1,4 +1,19 @@-# -*- coding: utf-8 -*-+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import mathimport jsonimport rediff --git a/rag/svr/cache_file_svr.py b/rag/svr/cache_file_svr.pyindex e9654818ed..dcd6778982 100644--- a/rag/svr/cache_file_svr.py+++ b/rag/svr/cache_file_svr.py@@ -1,3 +1,18 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#import randomimport timeimport tracebackdiff --git a/rag/utils/__init__.py b/rag/utils/__init__.pyindex f1db2e409d..e6b7552bcd 100644--- a/rag/utils/__init__.py+++ b/rag/utils/__init__.py@@ -1,3 +1,19 @@+#+# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+import osimport reimport tiktoken