From d8968e121ee46b6ca1a8407d5f481005dbc3dac0 Mon Sep 17 00:00:00 2001 From: wangyan Date: Fri, 17 May 2024 14:09:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix:(chore)=20=E6=BA=90=E7=A0=81=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E6=96=B0=E5=A2=9Ecopyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/datamanagement/datamanagementdatabase.cpp | 17 +++++++++++++++++ src/datamanagement/datamanagementdatabase.h | 16 ++++++++++++++++ src/datamanagement/datamanagementjsonhelper.cpp | 16 ++++++++++++++++ src/datamanagement/datamanagementjsonhelper.h | 16 ++++++++++++++++ src/datamanagement/datamanagementprocessor.cpp | 16 ++++++++++++++++ src/datamanagement/datamanagementprocessor.h | 16 ++++++++++++++++ src/datamanagement/datamanagementservice.cpp | 16 ++++++++++++++++ src/datamanagement/datamanagementservice.h | 16 ++++++++++++++++ src/datamanagement/segmenttokenizer.cpp | 16 ++++++++++++++++ src/datamanagement/segmenttokenizer.h | 16 ++++++++++++++++ .../baseembeddingservice.cpp | 16 ++++++++++++++++ src/embeddingtaskmanager/baseembeddingservice.h | 16 ++++++++++++++++ src/embeddingtaskmanager/embeddingtask.cpp | 16 ++++++++++++++++ src/embeddingtaskmanager/embeddingtask.h | 16 ++++++++++++++++ .../embeddingtaskmanager.cpp | 16 ++++++++++++++++ src/embeddingtaskmanager/embeddingtaskmanager.h | 16 ++++++++++++++++ .../imageembeddingservice.cpp | 16 ++++++++++++++++ .../imageembeddingservice.h | 16 ++++++++++++++++ .../textembeddingservice.cpp | 16 ++++++++++++++++ src/embeddingtaskmanager/textembeddingservice.h | 16 ++++++++++++++++ src/main.cpp | 16 ++++++++++++++++ src/utils/autotokenizer.cpp | 16 ++++++++++++++++ src/utils/autotokenizer.h | 16 ++++++++++++++++ src/utils/imageembedder.cpp | 16 ++++++++++++++++ src/utils/imageembedder.h | 16 ++++++++++++++++ src/utils/math.cpp | 16 ++++++++++++++++ src/utils/math.h | 16 ++++++++++++++++ src/utils/parser/docxparser.cpp | 16 ++++++++++++++++ src/utils/parser/docxparser.h | 16 ++++++++++++++++ src/utils/parser/fileparserfactory.cpp | 16 ++++++++++++++++ src/utils/parser/fileparserfactory.h | 16 ++++++++++++++++ src/utils/parser/officepyparserwrapper.cpp | 16 ++++++++++++++++ src/utils/parser/officepyparserwrapper.h | 16 ++++++++++++++++ src/utils/parser/parser.cpp | 16 ++++++++++++++++ src/utils/parser/parser.h | 16 ++++++++++++++++ src/utils/parser/pdfparser.cpp | 16 ++++++++++++++++ src/utils/parser/pdfparser.h | 16 ++++++++++++++++ src/utils/parser/pptxparser.cpp | 16 ++++++++++++++++ src/utils/parser/pptxparser.h | 16 ++++++++++++++++ src/utils/parser/txtparser.cpp | 16 ++++++++++++++++ src/utils/parser/txtparser.h | 16 ++++++++++++++++ src/utils/python/autotokenizer.py | 14 ++++++++++++++ src/utils/python/chroma_db.py | 14 ++++++++++++++ src/utils/python/docxparser.py | 14 ++++++++++++++ src/utils/python/officeparser.py | 14 ++++++++++++++ src/utils/python/pptxparser.py | 15 ++++++++++++++- src/utils/pythonthreadlocker.h | 16 ++++++++++++++++ src/utils/pythonutil.cpp | 16 ++++++++++++++++ src/utils/pythonutil.h | 16 ++++++++++++++++ src/utils/textembedder.cpp | 16 ++++++++++++++++ src/utils/textembedder.h | 16 ++++++++++++++++ src/utils/utils.cpp | 16 ++++++++++++++++ src/utils/utils.h | 16 ++++++++++++++++ src/utils/vectordb/vectordb.cpp | 16 ++++++++++++++++ src/utils/vectordb/vectordb.h | 16 ++++++++++++++++ 55 files changed, 871 insertions(+), 1 deletion(-) diff --git a/src/datamanagement/datamanagementdatabase.cpp b/src/datamanagement/datamanagementdatabase.cpp index 828ef5d..8d47cb7 100644 --- a/src/datamanagement/datamanagementdatabase.cpp +++ b/src/datamanagement/datamanagementdatabase.cpp @@ -1,3 +1,20 @@ + +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "datamanagementdatabase.h" #include "utils/vectordb/vectordb.h" #include "utils/utils.h" diff --git a/src/datamanagement/datamanagementdatabase.h b/src/datamanagement/datamanagementdatabase.h index c71125b..29cc59c 100644 --- a/src/datamanagement/datamanagementdatabase.h +++ b/src/datamanagement/datamanagementdatabase.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef DATAMANAGEMENTDATABASE_H #define DATAMANAGEMENTDATABASE_H diff --git a/src/datamanagement/datamanagementjsonhelper.cpp b/src/datamanagement/datamanagementjsonhelper.cpp index 92e64eb..cb2fda5 100644 --- a/src/datamanagement/datamanagementjsonhelper.cpp +++ b/src/datamanagement/datamanagementjsonhelper.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "datamanagementjsonhelper.h" #include diff --git a/src/datamanagement/datamanagementjsonhelper.h b/src/datamanagement/datamanagementjsonhelper.h index 8b5765e..6e7b8bb 100644 --- a/src/datamanagement/datamanagementjsonhelper.h +++ b/src/datamanagement/datamanagementjsonhelper.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef DATAMANAGEMENTJSONHELPER_H #define DATAMANAGEMENTJSONHELPER_H diff --git a/src/datamanagement/datamanagementprocessor.cpp b/src/datamanagement/datamanagementprocessor.cpp index 7521504..c520598 100644 --- a/src/datamanagement/datamanagementprocessor.cpp +++ b/src/datamanagement/datamanagementprocessor.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + // #include "datamanagement/datamanagementtaskmanager.h" #include "datamanagement/datamanagementprocessor.h" #include "datamanagement/datamanagementservice.h" diff --git a/src/datamanagement/datamanagementprocessor.h b/src/datamanagement/datamanagementprocessor.h index 1750bca..c2c1536 100644 --- a/src/datamanagement/datamanagementprocessor.h +++ b/src/datamanagement/datamanagementprocessor.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef DATAMANAGEMENTPROCESSOR_H #define DATAMANAGEMENTPROCESSOR_H diff --git a/src/datamanagement/datamanagementservice.cpp b/src/datamanagement/datamanagementservice.cpp index 25ed85b..e748bf3 100644 --- a/src/datamanagement/datamanagementservice.cpp +++ b/src/datamanagement/datamanagementservice.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "datamanagementservice.h" #include "thirdparty/threadpool/async.h" #include "datamanagement/datamanagementjsonhelper.h" diff --git a/src/datamanagement/datamanagementservice.h b/src/datamanagement/datamanagementservice.h index 83e0b46..7d56e9c 100644 --- a/src/datamanagement/datamanagementservice.h +++ b/src/datamanagement/datamanagementservice.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef DATAMANAGEMENTSERVICE_H #define DATAMANAGEMENTSERVICE_H diff --git a/src/datamanagement/segmenttokenizer.cpp b/src/datamanagement/segmenttokenizer.cpp index 241b0b5..6e1074d 100644 --- a/src/datamanagement/segmenttokenizer.cpp +++ b/src/datamanagement/segmenttokenizer.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "segmenttokenizer.h" namespace SegmentTokenizer { diff --git a/src/datamanagement/segmenttokenizer.h b/src/datamanagement/segmenttokenizer.h index 9b70f79..162ad32 100644 --- a/src/datamanagement/segmenttokenizer.h +++ b/src/datamanagement/segmenttokenizer.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef SEGMENTTOKENIZER_H #define SEGMENTTOKENIZER_H diff --git a/src/embeddingtaskmanager/baseembeddingservice.cpp b/src/embeddingtaskmanager/baseembeddingservice.cpp index 655bb4e..feaed46 100644 --- a/src/embeddingtaskmanager/baseembeddingservice.cpp +++ b/src/embeddingtaskmanager/baseembeddingservice.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "baseembeddingservice.h" #include diff --git a/src/embeddingtaskmanager/baseembeddingservice.h b/src/embeddingtaskmanager/baseembeddingservice.h index 486d2e3..438661f 100644 --- a/src/embeddingtaskmanager/baseembeddingservice.h +++ b/src/embeddingtaskmanager/baseembeddingservice.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef BASEEMBEDDINGSERVICE_H #define BASEEMBEDDINGSERVICE_H diff --git a/src/embeddingtaskmanager/embeddingtask.cpp b/src/embeddingtaskmanager/embeddingtask.cpp index 442dc41..13f6dfc 100644 --- a/src/embeddingtaskmanager/embeddingtask.cpp +++ b/src/embeddingtaskmanager/embeddingtask.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "embeddingtask.h" #include "utils/utils.h" diff --git a/src/embeddingtaskmanager/embeddingtask.h b/src/embeddingtaskmanager/embeddingtask.h index 950dc52..122425c 100644 --- a/src/embeddingtaskmanager/embeddingtask.h +++ b/src/embeddingtaskmanager/embeddingtask.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef EMBEDDINGTASK_H #define EMBEDDINGTASK_H diff --git a/src/embeddingtaskmanager/embeddingtaskmanager.cpp b/src/embeddingtaskmanager/embeddingtaskmanager.cpp index 055651c..1d3e846 100644 --- a/src/embeddingtaskmanager/embeddingtaskmanager.cpp +++ b/src/embeddingtaskmanager/embeddingtaskmanager.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "embeddingtaskmanager.h" #include "embeddingtaskmanager/textembeddingservice.h" #include "embeddingtaskmanager/imageembeddingservice.h" diff --git a/src/embeddingtaskmanager/embeddingtaskmanager.h b/src/embeddingtaskmanager/embeddingtaskmanager.h index 20e3342..752e96d 100644 --- a/src/embeddingtaskmanager/embeddingtaskmanager.h +++ b/src/embeddingtaskmanager/embeddingtaskmanager.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef EMBEDDINGTASKMANAGER_H #define EMBEDDINGTASKMANAGER_H diff --git a/src/embeddingtaskmanager/imageembeddingservice.cpp b/src/embeddingtaskmanager/imageembeddingservice.cpp index 3cf1a9f..c81d6f4 100644 --- a/src/embeddingtaskmanager/imageembeddingservice.cpp +++ b/src/embeddingtaskmanager/imageembeddingservice.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "imageembeddingservice.h" #include diff --git a/src/embeddingtaskmanager/imageembeddingservice.h b/src/embeddingtaskmanager/imageembeddingservice.h index a23df7c..e7256ac 100644 --- a/src/embeddingtaskmanager/imageembeddingservice.h +++ b/src/embeddingtaskmanager/imageembeddingservice.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef IMAGEEMBEDDINGSERVICE_H #define IMAGEEMBEDDINGSERVICE_H diff --git a/src/embeddingtaskmanager/textembeddingservice.cpp b/src/embeddingtaskmanager/textembeddingservice.cpp index e944022..62ec6d7 100644 --- a/src/embeddingtaskmanager/textembeddingservice.cpp +++ b/src/embeddingtaskmanager/textembeddingservice.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "textembeddingservice.h" #include "utils/textembedder.h" diff --git a/src/embeddingtaskmanager/textembeddingservice.h b/src/embeddingtaskmanager/textembeddingservice.h index 6343ad7..048cdd8 100644 --- a/src/embeddingtaskmanager/textembeddingservice.h +++ b/src/embeddingtaskmanager/textembeddingservice.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef TEXTEMBEDDINGSERVICE_H #define TEXTEMBEDDINGSERVICE_H diff --git a/src/main.cpp b/src/main.cpp index 6f9c8fd..1571403 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "server.h" #include "embeddingtaskmanager/embeddingtaskmanager.h" diff --git a/src/utils/autotokenizer.cpp b/src/utils/autotokenizer.cpp index 2c45c75..e942de7 100644 --- a/src/utils/autotokenizer.cpp +++ b/src/utils/autotokenizer.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "autotokenizer.h" #include "utils/pythonutil.h" diff --git a/src/utils/autotokenizer.h b/src/utils/autotokenizer.h index 187a0e2..7949e0a 100644 --- a/src/utils/autotokenizer.h +++ b/src/utils/autotokenizer.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef AUTOTOKENIZER_H #define AUTOTOKENIZER_H diff --git a/src/utils/imageembedder.cpp b/src/utils/imageembedder.cpp index 2327021..ed01390 100644 --- a/src/utils/imageembedder.cpp +++ b/src/utils/imageembedder.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "imageembedder.h" #include "math.h" diff --git a/src/utils/imageembedder.h b/src/utils/imageembedder.h index 8f1039e..2d96f2e 100644 --- a/src/utils/imageembedder.h +++ b/src/utils/imageembedder.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef IMAGEEMBEDDER_H #define IMAGEEMBEDDER_H diff --git a/src/utils/math.cpp b/src/utils/math.cpp index 614a0fa..9aa0ede 100644 --- a/src/utils/math.cpp +++ b/src/utils/math.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "math.h" #include diff --git a/src/utils/math.h b/src/utils/math.h index 1fcac3d..ea098e1 100644 --- a/src/utils/math.h +++ b/src/utils/math.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef MATH_H #define MATH_H diff --git a/src/utils/parser/docxparser.cpp b/src/utils/parser/docxparser.cpp index 30d807c..a4d94d2 100644 --- a/src/utils/parser/docxparser.cpp +++ b/src/utils/parser/docxparser.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "docxparser.h" #include "officepyparserwrapper.h" diff --git a/src/utils/parser/docxparser.h b/src/utils/parser/docxparser.h index 5f3c63d..fcdbe38 100644 --- a/src/utils/parser/docxparser.h +++ b/src/utils/parser/docxparser.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef DOCXPARSER_H #define DOCXPARSER_H diff --git a/src/utils/parser/fileparserfactory.cpp b/src/utils/parser/fileparserfactory.cpp index 5c9f1ea..5ade123 100644 --- a/src/utils/parser/fileparserfactory.cpp +++ b/src/utils/parser/fileparserfactory.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "fileparserfactory.h" #include "parser.h" diff --git a/src/utils/parser/fileparserfactory.h b/src/utils/parser/fileparserfactory.h index 0013619..1b0d54c 100644 --- a/src/utils/parser/fileparserfactory.h +++ b/src/utils/parser/fileparserfactory.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef FILEPARSERFACTORY_H #define FILEPARSERFACTORY_H diff --git a/src/utils/parser/officepyparserwrapper.cpp b/src/utils/parser/officepyparserwrapper.cpp index a3b21a6..7cf0896 100644 --- a/src/utils/parser/officepyparserwrapper.cpp +++ b/src/utils/parser/officepyparserwrapper.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "officepyparserwrapper.h" #include "utils/pythonutil.h" diff --git a/src/utils/parser/officepyparserwrapper.h b/src/utils/parser/officepyparserwrapper.h index 65542a3..15ace54 100644 --- a/src/utils/parser/officepyparserwrapper.h +++ b/src/utils/parser/officepyparserwrapper.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef OFFICEPYPARSERWRAPPER_H #define OFFICEPYPARSERWRAPPER_H diff --git a/src/utils/parser/parser.cpp b/src/utils/parser/parser.cpp index ebde4df..1fc4d99 100644 --- a/src/utils/parser/parser.cpp +++ b/src/utils/parser/parser.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "parser.h" #include "docxparser.h" diff --git a/src/utils/parser/parser.h b/src/utils/parser/parser.h index a6e7dd9..d0443b2 100644 --- a/src/utils/parser/parser.h +++ b/src/utils/parser/parser.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef PARSER_H #define PARSER_H diff --git a/src/utils/parser/pdfparser.cpp b/src/utils/parser/pdfparser.cpp index 13f6dda..d806040 100644 --- a/src/utils/parser/pdfparser.cpp +++ b/src/utils/parser/pdfparser.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "pdfparser.h" #include diff --git a/src/utils/parser/pdfparser.h b/src/utils/parser/pdfparser.h index 8930439..a6c89fa 100644 --- a/src/utils/parser/pdfparser.h +++ b/src/utils/parser/pdfparser.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef PDFPARSER_H #define PDFPARSER_H diff --git a/src/utils/parser/pptxparser.cpp b/src/utils/parser/pptxparser.cpp index acb1ddb..c48dc6a 100644 --- a/src/utils/parser/pptxparser.cpp +++ b/src/utils/parser/pptxparser.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "pptxparser.h" #include "officepyparserwrapper.h" diff --git a/src/utils/parser/pptxparser.h b/src/utils/parser/pptxparser.h index bea9d10..e8bb661 100644 --- a/src/utils/parser/pptxparser.h +++ b/src/utils/parser/pptxparser.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef PPTXPARSER_H #define PPTXPARSER_H diff --git a/src/utils/parser/txtparser.cpp b/src/utils/parser/txtparser.cpp index 9ff336c..cfe860d 100644 --- a/src/utils/parser/txtparser.cpp +++ b/src/utils/parser/txtparser.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "txtparser.h" #include diff --git a/src/utils/parser/txtparser.h b/src/utils/parser/txtparser.h index 99a3d48..7f0451c 100644 --- a/src/utils/parser/txtparser.h +++ b/src/utils/parser/txtparser.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef TXTPARSER_H #define TXTPARSER_H diff --git a/src/utils/python/autotokenizer.py b/src/utils/python/autotokenizer.py index 9836235..0bcd07b 100644 --- a/src/utils/python/autotokenizer.py +++ b/src/utils/python/autotokenizer.py @@ -1,3 +1,17 @@ +# Copyright 2024 KylinSoft Co., Ltd. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + from transformers import AutoTokenizer diff --git a/src/utils/python/chroma_db.py b/src/utils/python/chroma_db.py index affdd51..c49df26 100644 --- a/src/utils/python/chroma_db.py +++ b/src/utils/python/chroma_db.py @@ -1,3 +1,17 @@ +# Copyright 2024 KylinSoft Co., Ltd. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + import chromadb from chromadb.config import Settings diff --git a/src/utils/python/docxparser.py b/src/utils/python/docxparser.py index f4cd5b9..37142b4 100644 --- a/src/utils/python/docxparser.py +++ b/src/utils/python/docxparser.py @@ -1,3 +1,17 @@ +# Copyright 2024 KylinSoft Co., Ltd. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + # -*- coding: utf-8 -*- from officeparser import OfficeParser diff --git a/src/utils/python/officeparser.py b/src/utils/python/officeparser.py index 7ffe817..1ec7c58 100644 --- a/src/utils/python/officeparser.py +++ b/src/utils/python/officeparser.py @@ -1,3 +1,17 @@ +# Copyright 2024 KylinSoft Co., Ltd. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + # This Python file uses the following encoding: utf-8 from abc import ABC, abstractmethod diff --git a/src/utils/python/pptxparser.py b/src/utils/python/pptxparser.py index bace34b..418a3df 100644 --- a/src/utils/python/pptxparser.py +++ b/src/utils/python/pptxparser.py @@ -1,3 +1,17 @@ +# Copyright 2024 KylinSoft Co., Ltd. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + # This Python file uses the following encoding: utf-8 from officeparser import OfficeParser @@ -36,4 +50,3 @@ class PptxParser(OfficeParser): # print("Author:", parser.author()) # print("Page Count:", parser.page_count()) # print("Title:", parser.title()) - diff --git a/src/utils/pythonthreadlocker.h b/src/utils/pythonthreadlocker.h index ba465e7..c5de3e8 100644 --- a/src/utils/pythonthreadlocker.h +++ b/src/utils/pythonthreadlocker.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef PYTHONTHREADLOCKER_H #define PYTHONTHREADLOCKER_H diff --git a/src/utils/pythonutil.cpp b/src/utils/pythonutil.cpp index dde164b..817fbbc 100644 --- a/src/utils/pythonutil.cpp +++ b/src/utils/pythonutil.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "pythonutil.h" #include diff --git a/src/utils/pythonutil.h b/src/utils/pythonutil.h index 5a226a9..0b56b2b 100644 --- a/src/utils/pythonutil.h +++ b/src/utils/pythonutil.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef PYTHONUTIL_H #define PYTHONUTIL_H diff --git a/src/utils/textembedder.cpp b/src/utils/textembedder.cpp index 2c0b64b..7c7a0fa 100644 --- a/src/utils/textembedder.cpp +++ b/src/utils/textembedder.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "textembedder.h" #include "math.h" diff --git a/src/utils/textembedder.h b/src/utils/textembedder.h index b22755a..e2c8b85 100644 --- a/src/utils/textembedder.h +++ b/src/utils/textembedder.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef TEXTEMBEDDER_H #define TEXTEMBEDDER_H diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index abc3f9e..a11a744 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "utils.h" #include diff --git a/src/utils/utils.h b/src/utils/utils.h index 8a44b74..a8edbee 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef UTILS_H #define UTILS_H #include diff --git a/src/utils/vectordb/vectordb.cpp b/src/utils/vectordb/vectordb.cpp index f1a48c4..3d589b8 100644 --- a/src/utils/vectordb/vectordb.cpp +++ b/src/utils/vectordb/vectordb.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #include "vectordb.h" #include "utils/pythonthreadlocker.h" #include "utils/pythonutil.h" diff --git a/src/utils/vectordb/vectordb.h b/src/utils/vectordb/vectordb.h index 457af1d..49624ad 100644 --- a/src/utils/vectordb/vectordb.h +++ b/src/utils/vectordb/vectordb.h @@ -1,3 +1,19 @@ +/* + * Copyright 2024 KylinSoft Co., Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + #ifndef VECTORDB_H #define VECTORDB_H -- Gitee From 086176eb9038990a6f06e6e84ee330cbb2602366 Mon Sep 17 00:00:00 2001 From: wangyan Date: Fri, 17 May 2024 14:19:29 +0800 Subject: [PATCH 2/2] Chore: update debian/copyright --- debian/copyright | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/debian/copyright b/debian/copyright index cbdef02..d7709a5 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,32 +1,19 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: kylin-ai-business-framework-service Upstream-Contact: wangyan -Source: https://gitee.com/openkylin/vectordb-engine-plugin +Source: Files: * -Copyright: 2023, KylinSoft Co., Ltd. -License: GPL-2+ - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - . - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License - along with this program. If not, see - . - On Debian systems, the complete text of the GNU General - Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". +Copyright: 2024, KylinSoft Co., Ltd. +License: GPL-3+ -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here. -# Please avoid picking licenses with terms that are more restrictive than the -# packaged work, as it may make Debian's contributions unacceptable upstream. -# -# If you need, there are some extra license texts available in two places: -# /usr/share/debhelper/dh_make/licenses/ -# /usr/share/common-licenses/ +License: GPL-3+ + This software is Copyright (c) 2024 by foo. + This is free software, licensed under: + The GNU General Public License, Version 3, June 2007 + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 3 dated June, 2007, or (at + your option) any later version. + On Debian systems, the complete text of version 3 of the GNU General + Public License can be found in '/usr/share/common-licenses/GPL-3'. -- Gitee