kolzchut-ragbot 1.2.0__tar.gz → 1.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/PKG-INFO +3 -3
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/model.py +8 -13
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/PKG-INFO +3 -3
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/setup.py +7 -2
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/README.md +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/Document.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/IntegrateService.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/__init__.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/config.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/engine.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot/llm_client.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/SOURCES.txt +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/dependency_links.txt +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/requires.txt +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/top_level.txt +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/pyproject.toml +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/setup.cfg +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/test/test_configs.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/test/test_document.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/test/test_engine.py +0 -0
- {kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/test/test_model.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: kolzchut-ragbot
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: A search engine using machine learning models and Elasticsearch for advanced document retrieval.
|
|
5
|
-
Home-page: https://github.com/shmuelrob/
|
|
5
|
+
Home-page: https://github.com/shmuelrob/rag-bot
|
|
6
6
|
Author: Shmuel Robinov
|
|
7
7
|
Author-email: shmuel_robinov@webiks.com
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -93,23 +93,18 @@ class Model:
|
|
|
93
93
|
index = index_from_page_id(int(doc_id))
|
|
94
94
|
|
|
95
95
|
if update:
|
|
96
|
-
hits = []
|
|
97
96
|
try:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
97
|
+
query = {
|
|
98
|
+
"query": {
|
|
99
|
+
"match": {
|
|
100
|
+
f"{identifier}": doc_id
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
self.es_client.delete_by_query(index=f"{EMBEDDING_INDEX}*", body=query)
|
|
105
105
|
|
|
106
106
|
except Exception as e:
|
|
107
107
|
logging.error(f"Error while searching for existing document: {e}")
|
|
108
|
-
if len(hits) > 0:
|
|
109
|
-
print("delete existing documents")
|
|
110
|
-
for hit in hits:
|
|
111
|
-
print("delete existing document", hit["_id"])
|
|
112
|
-
self.es_client.delete(index=index, id=hit["_id"])
|
|
113
108
|
|
|
114
109
|
for i, doc_dict in enumerate(paragraphs_dicts):
|
|
115
110
|
print(f"saving paragraph {i}")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: kolzchut-ragbot
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: A search engine using machine learning models and Elasticsearch for advanced document retrieval.
|
|
5
|
-
Home-page: https://github.com/shmuelrob/
|
|
5
|
+
Home-page: https://github.com/shmuelrob/rag-bot
|
|
6
6
|
Author: Shmuel Robinov
|
|
7
7
|
Author-email: shmuel_robinov@webiks.com
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
|
+
# to deploy the package to PyPI, run the following command:
|
|
4
|
+
# pip install setuptools wheel twine
|
|
5
|
+
# python setup.py sdist bdist_wheel
|
|
6
|
+
# twine upload dist/*
|
|
7
|
+
|
|
3
8
|
setup(
|
|
4
9
|
name='kolzchut-ragbot',
|
|
5
|
-
version='1.
|
|
10
|
+
version='1.4.0',
|
|
6
11
|
author='Shmuel Robinov',
|
|
7
12
|
author_email='shmuel_robinov@webiks.com',
|
|
8
13
|
description='A search engine using machine learning models and Elasticsearch for advanced document retrieval.',
|
|
9
14
|
long_description=open('README.md').read(),
|
|
10
15
|
long_description_content_type='text/markdown',
|
|
11
|
-
url='https://github.com/shmuelrob/
|
|
16
|
+
url='https://github.com/shmuelrob/rag-bot',
|
|
12
17
|
packages=find_packages(),
|
|
13
18
|
install_requires=[
|
|
14
19
|
'elasticsearch==8.17.1',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kolzchut_ragbot-1.2.0 → kolzchut_ragbot-1.4.0}/kolzchut_ragbot.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|