hyperforge-nucliadb 1.0.0.post26__tar.gz → 1.0.0.post32__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.
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/PKG-INFO +3 -2
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/pyproject.toml +8 -2
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/kb_analysis.py +0 -6
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/driver.py +5 -5
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb.egg-info/PKG-INFO +3 -2
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/README.md +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/setup.cfg +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/__init__.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/advanced_ask_agent.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/advanced_ask_config.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/__init__.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/analysis.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/ask.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/config.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/hydrate.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/knowledge_scan.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/models.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/multi.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/nucliadb.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/prompt_analysis.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/query_analysis.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/rerank.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask/utils.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/ask_utils.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/basic_ask_agent.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/basic_ask_config.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/driver_config.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/sync/__init__.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/sync/agent.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/sync/config.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/sync/config_driver.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb/sync/driver.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb.egg-info/SOURCES.txt +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb.egg-info/dependency_links.txt +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb.egg-info/requires.txt +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/src/hyperforge_nucliadb.egg-info/top_level.txt +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/tests/test_ask_utils.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/tests/test_nucliadb.py +0 -0
- {hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/tests/test_sync.py +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyperforge_nucliadb
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.post32
|
|
4
4
|
Summary: NucliaDB Hyperforge agent
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://progress.com
|
|
8
|
-
Project-URL: Repository, https://github.com/nuclia/
|
|
8
|
+
Project-URL: Repository, https://github.com/nuclia/hyperforge
|
|
9
|
+
Project-URL: Changelog, https://github.com/nuclia/hyperforge/blob/main/agents/nucliadb/CHANGELOG.md
|
|
9
10
|
Classifier: Programming Language :: Python
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hyperforge_nucliadb"
|
|
7
|
-
version = "1.0.0.
|
|
7
|
+
version = "1.0.0.post32"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
description = "NucliaDB Hyperforge agent"
|
|
10
10
|
authors = [{ name = "Nuclia", email = "nucliadb@nuclia.com" }]
|
|
@@ -33,7 +33,13 @@ dev = [
|
|
|
33
33
|
|
|
34
34
|
[project.urls]
|
|
35
35
|
Homepage = "https://progress.com"
|
|
36
|
-
Repository = "https://github.com/nuclia/
|
|
36
|
+
Repository = "https://github.com/nuclia/hyperforge"
|
|
37
|
+
Changelog = "https://github.com/nuclia/hyperforge/blob/main/agents/nucliadb/CHANGELOG.md"
|
|
37
38
|
|
|
38
39
|
[tool.pytest.ini_options]
|
|
39
40
|
asyncio_mode = "auto"
|
|
41
|
+
|
|
42
|
+
[tool.uv.build-backend]
|
|
43
|
+
|
|
44
|
+
# Exclude specific files from being packaged
|
|
45
|
+
source-exclude = ["tests/**", "*.pyc"]
|
|
@@ -9,7 +9,6 @@ from nuclia.lib.nua_responses import SemanticConfig
|
|
|
9
9
|
class KnowledgeBoxInfo:
|
|
10
10
|
content_types: Dict[str, int]
|
|
11
11
|
languages: Dict[str, int]
|
|
12
|
-
facets: Dict[str, int]
|
|
13
12
|
paragraph_facets: Dict[str, int]
|
|
14
13
|
entity_model: str
|
|
15
14
|
generative_model: str
|
|
@@ -22,8 +21,6 @@ def get_knowledge_base_analysis(source: Source):
|
|
|
22
21
|
content_types = {}
|
|
23
22
|
languages: Dict[str, int] = {}
|
|
24
23
|
|
|
25
|
-
facets: Dict[str, int] = {}
|
|
26
|
-
|
|
27
24
|
for key, count in source.facets_native.facets.items():
|
|
28
25
|
if key.startswith("/n/i"):
|
|
29
26
|
content_type = key.replace("/n/i/", "")
|
|
@@ -32,14 +29,11 @@ def get_knowledge_base_analysis(source: Source):
|
|
|
32
29
|
elif key.startswith("/s/p/"):
|
|
33
30
|
language = key.replace("/s/p/", "")
|
|
34
31
|
languages[language] = count
|
|
35
|
-
else:
|
|
36
|
-
facets[key] = count
|
|
37
32
|
|
|
38
33
|
return KnowledgeBoxInfo(
|
|
39
34
|
paragraph_facets=source.paragraph_facets,
|
|
40
35
|
content_types=content_types,
|
|
41
36
|
languages=languages,
|
|
42
|
-
facets=facets,
|
|
43
37
|
semantic_models=source.learning_configuration.semantic_models,
|
|
44
38
|
entity_model=source.learning_configuration.ner_model,
|
|
45
39
|
generative_model=source.learning_configuration.generative_model,
|
|
@@ -264,13 +264,13 @@ class NucliaDBDriver(Driver):
|
|
|
264
264
|
|
|
265
265
|
# Run requests in parallel as otherwise the facets endpoint can take too long on large knowledge boxes.
|
|
266
266
|
tasks = []
|
|
267
|
-
for prefix
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
267
|
+
for prefix in [
|
|
268
|
+
"/n/i", # content types
|
|
269
|
+
"/s/p", # primary language
|
|
270
|
+
# "/l", # classification labels
|
|
271
271
|
]:
|
|
272
272
|
request = CatalogFacetsRequest(
|
|
273
|
-
prefixes=[CatalogFacetsPrefix(prefix=prefix
|
|
273
|
+
prefixes=[CatalogFacetsPrefix(prefix=prefix)]
|
|
274
274
|
)
|
|
275
275
|
tasks.append(
|
|
276
276
|
self.driver.catalog_facets(kbid=self.config.kbid, content=request)
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyperforge_nucliadb
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.post32
|
|
4
4
|
Summary: NucliaDB Hyperforge agent
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://progress.com
|
|
8
|
-
Project-URL: Repository, https://github.com/nuclia/
|
|
8
|
+
Project-URL: Repository, https://github.com/nuclia/hyperforge
|
|
9
|
+
Project-URL: Changelog, https://github.com/nuclia/hyperforge/blob/main/agents/nucliadb/CHANGELOG.md
|
|
9
10
|
Classifier: Programming Language :: Python
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/tests/test_ask_utils.py
RENAMED
|
File without changes
|
{hyperforge_nucliadb-1.0.0.post26 → hyperforge_nucliadb-1.0.0.post32}/tests/test_nucliadb.py
RENAMED
|
File without changes
|
|
File without changes
|