diff --git a/debian/copyright b/debian/copyright index cbdef02fe1c3e0521b310d54ef12cf8a08a33311..d7709a5947bf4facf5bdfe3aef01884bfc3403c2 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'. diff --git a/src/datamanagement/datamanagementdatabase.cpp b/src/datamanagement/datamanagementdatabase.cpp index 828ef5d8d2f661d74a758e21dde83d557ec6dc15..8d47cb7834cce85585c4ef0f47bf05e381f489fb 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 c71125b21cda781d9d7b2ca3c49cf7b0642459c6..29cc59c2b91cb80e616e7284d1e13f35b08f2900 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 92e64ebba0c56b01971d24ff3bc3edcdb10a6be2..cb2fda5eb1579adec7789b525337c29fa646dec8 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 8b5765e093179cf0471c8443ac2ce94b8fd17350..6e7b8bb0e146b618efcd4d085d4dc1f6fe24f733 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 752150404610d8e908695a0663aa5d370207312f..c520598c7c67d73129f8d919515365176c2169ab 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 1750bcad4aec1939ec803100053b433f3001f7c1..c2c153681f6863ddcfeb793b1bdfe877cc593610 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 25ed85b736111ab28da5658064ffcc40c2500c04..e748bf3ee96d7d49863f455f5ff827d1737595e2 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 83e0b46fde1e3637db118047a9cba1bd967a1a8b..7d56e9c8038cb32f0c6ae895e48f14bf2af21996 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 241b0b542db669785f7e95e03bfc3078309c654f..6e1074d03b38f6fced97f7ff357f7d8ffa27854e 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 9b70f79bf3f023d374ea1026ab4534d790c01d5a..162ad3290385037937e8b8a451c0636776e3a7c8 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 655bb4e5a0dd3a905fc5ed4cc3e966860b173e62..feaed463865c19bceac6adeabef6fda5b89826ce 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 486d2e3188e3033376488d1c0fb8e0ecad1ff75c..438661f5a8c5fa3645ece2beb65c848d56304f48 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 442dc415edca01e1cd0502ec2feb9bcd8114b8ab..13f6dfc40b1cce609a4b57ba92cd89720962d65a 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 950dc526dec278aa2b8c53ebf0f3541ba0be35ff..122425c4cc4f318881656c4e502868cb8db4ea92 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 055651c46c788905e89fee056fe3b22a7e3025fc..1d3e84619dde3ca47b3e88a06744cba1fbc9a72e 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 20e3342cddb8e1054173ea521162159f5ea52e58..752e96d9d383c66a368ea54fdcd6b7228911a7e9 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 3cf1a9fc6e45978682f3638a44989c8c563f535e..c81d6f41009d76d8f0746f43ab8ba2e38383982e 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 a23df7c12a2e88c83f66c70a51520d21512bb62b..e7256ac3ac5f22d823af08f68f6eb0eb6776da98 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 e9440225687c26aa8103b4678b857803e93bb73b..62ec6d71b08f6c1bee5b7930da1ffe97d2b5d2c4 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 6343ad71b8ce40c4c99eeb4d84300581eb27552f..048cdd84ca813b17d130e5e74b5e4ca157907378 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 6f9c8fdc8a6f80d7f5562eeaa721521a6da4f678..157140313c515be9bc6601aa7b2c3588cd54108e 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 2c45c75d6b11a18eb9a07009c6ebb1f0d615fdb5..e942de75c6be5d27dbf4dd205f2f49c1033b4ee3 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 187a0e20e96fb1d24463f2732188a2d357c51c1e..7949e0a5745a8a5d50616d4419f6047de3664dbf 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 2327021bcccf3a92e4b0768cd0c9fb4ad0b4c084..ed01390ce79b1f4e425626ee0578c5f4dfd4051d 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 8f1039eb47f43a14e33693767d6a53f585a63a4f..2d96f2e82a8922a258ee0f5036f1f0cf76fc9baa 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 614a0fa47a35965fb001f08f3b89eecfb46c7d64..9aa0eded24a293cd19601c7262ec632ffca1c531 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 1fcac3d4ef6055258bfc9af820eac7a140d156d1..ea098e1277b63de9830dd80e085074d55edc4c1d 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 30d807cf98898fe4292bff248e56da8cf548c676..a4d94d299f977f08dc69e8e7832f228bb566fb9f 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 5f3c63d591a51ad56aa51a6a1d1b31810b36706c..fcdbe38cacce2e6a4a2568512414a27225f2c965 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 5c9f1ea1b7f1b8281bd1808f55d850575533064c..5ade12382c92c2e574611ca0e3d5ddb4b3c52265 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 0013619796fb867469e896b8d16eee3da72a9129..1b0d54c43c3fbbf9ec4a19dd3c67e685f82294a1 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 a3b21a6271f1f1f9a13c68990c3e6e62c31c1fe6..7cf0896122c94228f2f7d1e32b489f0f0e0e550d 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 65542a317e5ec42ee17117537fd94a18f4e861de..15ace54dd49f01e999b822e9c92902ecc9d0ee47 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 ebde4dfa2d2ad14536befc837a9dc1b1eb2464f1..1fc4d99d7a33dd53b7099992bf26c04844fa870e 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 a6e7dd9c59bca72de92ed4d4ad32ac9a38dc437b..d0443b2e8c19be6b8b3e0a60fc8df915f0014157 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 13f6dda2b7e2bbe7cae1b860a7819e656a88b410..d80604021a375a42652a4696abb625a89893c4bb 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 893043934549d98a95961f3294377cecf65b9700..a6c89fadb2820e5bc17141e95af6d39d745d9d9c 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 acb1ddb38b133c4ea31bcd962b6225eaac702998..c48dc6a7a1a7126010937536c7ee97a4d1044606 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 bea9d101aaf73e1fcaa82abfbb0b08eca2b1411b..e8bb661d2475f6f2dd3262aefb652b7bb0f69bc5 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 9ff336cc17b0301848aa005cd0301652f36a94c6..cfe860d7227ca392ae67ce437f7c55d1600db8ab 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 99a3d486fea5ba005a305602e610c6c5d537adff..7f0451c939efa0628b9e96803145f70aa6cd833a 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 983623541194eb3473dd0b60fc95f00c1fed8a21..0bcd07be37fdf05e6a11de9d941c01a5da46cddc 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 affdd51bd12b32d275934249c8c77bbca6613792..c49df26a069f33abd65468c24ad2d6651bdabbfa 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 f4cd5b9f4dcb22470ea7508d7678f2ae49198931..37142b4226b171664c6f83456a41f88f097fca3d 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 7ffe81708f4403f31d87ffef9a4af02fcbc1d361..1ec7c58c24734fe821920ac3672b83cf8810b1d2 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 bace34b3354b4ca58c4ee61ec3b312abcde5e6e6..418a3dffbc6b49e574ef9c3ae825d3df60885cbd 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 ba465e76ef244cd956438d25cec41d52f993e446..c5de3e8b46c73883b9f6f66ffffa3be827d7bc61 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 dde164bb6f1abd23dbca701ce2913cdc1291745c..817fbbc1e5fbd8b7d2a125c6f0326cbdeb9de4e9 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 5a226a9e32ee7ba3b332435f4993bea60fe04ade..0b56b2b2b05123a8952bb85138faf280d9a28f4d 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 2c0b64bd2387412662576a12b1864fbe68437c59..7c7a0fa455134a058418d249813d1f8e4ad8a193 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 b22755a527e01735b56351346315933a9c2c2e20..e2c8b85df5376a825b4278be867c49b7771f097a 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 abc3f9e2e78be5c6602b8c207537c8472d64ff94..a11a744fc16abf8e4775701030840dbc489d751b 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 8a44b74a099b0693137b04264081fd950c4544b1..a8edbee2e49a6c02c9b1d9290361fec57b111cc2 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 f1a48c4feb52689949437575fdff4161629065b1..3d589b83edf3367dec4e2a9569358c5705826432 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 457af1dad23de367f2a0d53f254eb537232c14e8..49624ada31dd1ba6218f1c50d9e79ffb5acc855f 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