everalgo-knowledge 0.1.0__py3-none-any.whl
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.
- everalgo/knowledge/__init__.py +10 -0
- everalgo/knowledge/extractor.py +40 -0
- everalgo/knowledge/py.typed +0 -0
- everalgo_knowledge-0.1.0.dist-info/METADATA +46 -0
- everalgo_knowledge-0.1.0.dist-info/RECORD +7 -0
- everalgo_knowledge-0.1.0.dist-info/WHEEL +4 -0
- everalgo_knowledge-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""File-based knowledge extraction — KnowledgeExtractor stub."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
|
|
5
|
+
from everalgo.knowledge.extractor import KnowledgeExtractor
|
|
6
|
+
|
|
7
|
+
__all__ = ["KnowledgeExtractor"]
|
|
8
|
+
|
|
9
|
+
# Library logging setup (ADR-013): NullHandler on each subpackage logger.
|
|
10
|
+
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""KnowledgeExtractor — ParsedContent → list[KnowledgeMemory]. Stub."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from everalgo.llm.protocols import LLMClient
|
|
9
|
+
from everalgo.types import KnowledgeMemory, ParsedContent
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class KnowledgeExtractor:
|
|
13
|
+
"""Extract knowledge memories from parsed content. Stub."""
|
|
14
|
+
|
|
15
|
+
def __init__(self, *, llm: LLMClient) -> None:
|
|
16
|
+
self._llm = llm
|
|
17
|
+
|
|
18
|
+
async def aextract(
|
|
19
|
+
self,
|
|
20
|
+
parsed: ParsedContent,
|
|
21
|
+
*,
|
|
22
|
+
prompt: str | None = None,
|
|
23
|
+
) -> list[KnowledgeMemory]:
|
|
24
|
+
"""EXPERIMENTAL: NOT YET IMPLEMENTED — raises NotImplementedError.
|
|
25
|
+
|
|
26
|
+
Stub: returns placeholder.
|
|
27
|
+
"""
|
|
28
|
+
raise NotImplementedError("stub")
|
|
29
|
+
|
|
30
|
+
def extract(
|
|
31
|
+
self,
|
|
32
|
+
parsed: ParsedContent,
|
|
33
|
+
*,
|
|
34
|
+
prompt: str | None = None,
|
|
35
|
+
) -> list[KnowledgeMemory]:
|
|
36
|
+
"""EXPERIMENTAL: NOT YET IMPLEMENTED — raises NotImplementedError.
|
|
37
|
+
|
|
38
|
+
Stub: returns placeholder.
|
|
39
|
+
"""
|
|
40
|
+
raise NotImplementedError("stub")
|
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: everalgo-knowledge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: EverAlgo knowledge: file-based knowledge extractors producing KnowledgeMemory.
|
|
5
|
+
Project-URL: Homepage, https://github.com/EverMind-AI/EverAlgo
|
|
6
|
+
Project-URL: Repository, https://github.com/EverMind-AI/EverAlgo
|
|
7
|
+
Project-URL: Issues, https://github.com/EverMind-AI/EverAlgo/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/EverMind-AI/EverAlgo/tree/main/packages/everalgo-knowledge
|
|
9
|
+
Project-URL: Changelog, https://github.com/EverMind-AI/EverAlgo/blob/main/packages/everalgo-knowledge/CHANGELOG.md
|
|
10
|
+
Author: EverMind
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Python: >=3.12
|
|
17
|
+
Requires-Dist: everalgo-core<2.0.0,>=0.1.0
|
|
18
|
+
Requires-Dist: everalgo-parser<2.0.0,>=0.1.0
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# everalgo-knowledge
|
|
22
|
+
|
|
23
|
+
> [!WARNING]
|
|
24
|
+
> **NOT YET IMPLEMENTED — placeholder distribution.** All entry points raise `NotImplementedError`. The `everalgo.knowledge` namespace is reserved on PyPI. Track progress in [`docs/concepts/architecture.md`](../../docs/concepts/architecture.md).
|
|
25
|
+
|
|
26
|
+
File-based knowledge extractors for EverAlgo — turns parsed multimodal content (`ParsedContent`) into `KnowledgeMemory` records.
|
|
27
|
+
|
|
28
|
+
See the umbrella project: [EverAlgo monorepo](../../README.md) and the architecture document at [`docs/concepts/architecture.md`](../../docs/concepts/architecture.md).
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install everalgo-knowledge
|
|
34
|
+
# Auto-pulls: everalgo-core, everalgo-parser
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Public surface (stubbed)
|
|
38
|
+
|
|
39
|
+
| Symbol | Module | Role |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| `KnowledgeExtractor` | `everalgo.knowledge` | Stub — raises `NotImplementedError` |
|
|
42
|
+
|
|
43
|
+
## Related distributions
|
|
44
|
+
|
|
45
|
+
- [`everalgo-parser`](../everalgo-parser/) — produces `ParsedContent` from raw files; also experimental
|
|
46
|
+
- [`everalgo-core`](../everalgo-core/) — `KnowledgeMemory` type is defined here
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
everalgo/knowledge/__init__.py,sha256=tIpX__y-YMjeU_V9xOGtk3JIViqhw-vHWAd-ijwpACo,315
|
|
2
|
+
everalgo/knowledge/extractor.py,sha256=AsLRHPJjhLwMWSX13FG0bmOzFVWs6u9JAH4M5FJj02w,1067
|
|
3
|
+
everalgo/knowledge/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
everalgo_knowledge-0.1.0.dist-info/METADATA,sha256=QFVGhpj0vAoqQuDTg5I9HGy7HvxerMCilQjXTx0bTPo,1988
|
|
5
|
+
everalgo_knowledge-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
6
|
+
everalgo_knowledge-0.1.0.dist-info/licenses/LICENSE,sha256=kJxVycxWEtnY0QV7hqsnrmKnd0mN1z3LOEMx3DFW7bI,1065
|
|
7
|
+
everalgo_knowledge-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 EverMind
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|