kolzchut-ragbot 1.1.3__tar.gz → 1.2.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.1.3 → kolzchut_ragbot-1.2.0}/PKG-INFO +1 -1
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/engine.py +2 -2
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot.egg-info/PKG-INFO +1 -1
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/setup.py +1 -1
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/README.md +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/Document.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/IntegrateService.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/__init__.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/config.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/llm_client.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot/model.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot.egg-info/SOURCES.txt +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot.egg-info/dependency_links.txt +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot.egg-info/requires.txt +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/kolzchut_ragbot.egg-info/top_level.txt +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/pyproject.toml +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/setup.cfg +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/test/test_configs.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/test/test_document.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/test/test_engine.py +0 -0
- {kolzchut_ragbot-1.1.3 → kolzchut_ragbot-1.2.0}/test/test_model.py +0 -0
|
@@ -178,7 +178,7 @@ class Engine:
|
|
|
178
178
|
all_docs_by_model = self.elastic_model.search(query_embeddings)
|
|
179
179
|
all_docs = []
|
|
180
180
|
ids_for_fusion = []
|
|
181
|
-
all_docs_and_scores =
|
|
181
|
+
all_docs_and_scores = {}
|
|
182
182
|
|
|
183
183
|
for key, values in all_docs_by_model.items():
|
|
184
184
|
print(f"\nFound {len(values)} documents for model\n")
|
|
@@ -190,7 +190,7 @@ class Engine:
|
|
|
190
190
|
all_docs.append(doc)
|
|
191
191
|
scores_for_model.append({"doc": doc["_source"]["title"], "score": doc["_score"]})
|
|
192
192
|
ids_for_fusion.append(model_ids)
|
|
193
|
-
all_docs_and_scores
|
|
193
|
+
all_docs_and_scores[f'{key}'] = scores_for_model
|
|
194
194
|
print(f"\nFusing {len(ids_for_fusion)} results\n")
|
|
195
195
|
fused_ids = self.reciprocal_rank_fusion(ids_for_fusion, k=top_k)
|
|
196
196
|
top_k_documents = []
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='kolzchut-ragbot',
|
|
5
|
-
version='1.
|
|
5
|
+
version='1.2.0',
|
|
6
6
|
author='Shmuel Robinov',
|
|
7
7
|
author_email='shmuel_robinov@webiks.com',
|
|
8
8
|
description='A search engine using machine learning models and Elasticsearch for advanced document retrieval.',
|
|
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.1.3 → kolzchut_ragbot-1.2.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
|