kolzchut-ragbot 1.7.5__tar.gz → 1.7.7__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.
Potentially problematic release.
This version of kolzchut-ragbot might be problematic. Click here for more details.
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/PKG-INFO +1 -1
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/engine.py +4 -4
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot.egg-info/PKG-INFO +1 -1
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/pyproject.toml +1 -1
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/setup.py +1 -1
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/README.md +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/Document.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/IntegrateService.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/__init__.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/config.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/get_full_documents_utilities.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/llm_client.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/model.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot.egg-info/SOURCES.txt +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot.egg-info/dependency_links.txt +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot.egg-info/requires.txt +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot.egg-info/top_level.txt +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/setup.cfg +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/test/test_configs.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/test/test_docs.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/test/test_document.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/test/test_engine.py +0 -0
- {kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/test/test_model.py +0 -0
|
@@ -303,6 +303,7 @@ class Engine:
|
|
|
303
303
|
additional_page_time = None
|
|
304
304
|
if page_id:
|
|
305
305
|
additional_document, additional_page_time = results[1]
|
|
306
|
+
print(f'retrived document {page_id} in {additional_page_time} ms: \n {additional_document}')
|
|
306
307
|
|
|
307
308
|
# Combine documents
|
|
308
309
|
top_k_documents_and_additional_document = top_k_documents.copy()
|
|
@@ -334,11 +335,10 @@ class Engine:
|
|
|
334
335
|
request_params['timers_ms'] = {
|
|
335
336
|
"answer_time": int(answer_time * 1000),
|
|
336
337
|
"retrieval_time": int(retrieval_time * 1000),
|
|
337
|
-
"llm_time": int(gpt_elapsed * 1000)
|
|
338
|
-
|
|
338
|
+
"llm_time": int(gpt_elapsed * 1000),
|
|
339
|
+
"additional_page_time": int((additional_page_time or 0) * 1000)
|
|
339
340
|
|
|
340
|
-
|
|
341
|
-
request_params['timers_ms']['additional_page_time'] = int(additional_page_time * 1000)
|
|
341
|
+
}
|
|
342
342
|
|
|
343
343
|
return top_k_documents, gpt_answer, stats, all_docs_and_scores, request_params
|
|
344
344
|
|
|
@@ -7,7 +7,7 @@ from setuptools import setup, find_packages
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name='kolzchut-ragbot',
|
|
10
|
-
version='1.7.
|
|
10
|
+
version='1.7.7',
|
|
11
11
|
author='Shmuel Robinov',
|
|
12
12
|
author_email='shmuel_robinov@webiks.com',
|
|
13
13
|
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
|
{kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/kolzchut_ragbot/get_full_documents_utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kolzchut_ragbot-1.7.5 → kolzchut_ragbot-1.7.7}/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
|