recallic-engine 0.1.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.
- recallic_engine-0.1.0/LICENSE +105 -0
- recallic_engine-0.1.0/NOTICE +19 -0
- recallic_engine-0.1.0/PKG-INFO +48 -0
- recallic_engine-0.1.0/README.md +24 -0
- recallic_engine-0.1.0/pyproject.toml +33 -0
- recallic_engine-0.1.0/recallic_engine/__init__.py +10 -0
- recallic_engine-0.1.0/recallic_engine/api/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/api/deps.py +36 -0
- recallic_engine-0.1.0/recallic_engine/brain/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/__init__.py +1 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/aggregation_check.py +796 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/answer_check.default.json +23 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/answer_check.py +199 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/answer_check_learning.py +164 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/answer_verify.py +78 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/as_of.py +122 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/calibration.py +119 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/dates.py +124 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/facts.py +472 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/implicit.py +208 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/learned_facts.py +121 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/modes.py +70 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/query.py +297 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/reranker.py +87 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/schemas.py +222 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/summarize.py +72 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/trust.default.json +37 -0
- recallic_engine-0.1.0/recallic_engine/brain/features/trust.py +165 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/archive/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/archive/archive_store.py +64 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/audit.py +84 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/episodic/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/episodic/episodic_memory.py +500 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/freshness.py +104 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/index_key.py +55 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/index_sync.py +109 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/long_term/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/long_term/long_term_memory.py +80 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/manager.py +326 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/proactive.py +81 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/reasoning_engine.py +35 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/recall_engine.py +1211 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/reflective/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/reflective/reflective_memory.py +58 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/semantic/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/semantic/semantic_memory.py +167 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/short_term/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/short_term/sensory.py +33 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/truth_engine.py +110 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/update_classifier.py +76 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/updates.py +572 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/working/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory/working/working_memory.py +74 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/fit_importance.py +91 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/fit_ranker.py +188 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/importance_ranker.py +166 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/importance_weights.default.json +16 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/importance_weights.prior.json +14 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/logistic.py +72 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/ranker.py +414 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/ranker_model.default.json +54 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/ranker_model.hash.json +54 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/ranker_model.prior.json +22 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/reinforcement_learning.py +57 -0
- recallic_engine-0.1.0/recallic_engine/brain/memory_ranking/self_improve.py +187 -0
- recallic_engine-0.1.0/recallic_engine/brain/models/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/models/model_router.py +189 -0
- recallic_engine-0.1.0/recallic_engine/brain/models/onnx_runtime.py +149 -0
- recallic_engine-0.1.0/recallic_engine/brain/prediction/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/prediction/predictive_recall.py +14 -0
- recallic_engine-0.1.0/recallic_engine/brain/utils/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/utils/decay_logic.py +27 -0
- recallic_engine-0.1.0/recallic_engine/brain/world_model/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/brain/world_model/planning_engine.py +47 -0
- recallic_engine-0.1.0/recallic_engine/brain/world_model/prediction_engine.py +87 -0
- recallic_engine-0.1.0/recallic_engine/brain/world_model/state_inference.py +100 -0
- recallic_engine-0.1.0/recallic_engine/brain/world_model/timeline_engine.py +67 -0
- recallic_engine-0.1.0/recallic_engine/config.yaml +518 -0
- recallic_engine-0.1.0/recallic_engine/embedded.py +65 -0
- recallic_engine-0.1.0/recallic_engine/settings.py +115 -0
- recallic_engine-0.1.0/recallic_engine/tools/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/tools/portable.py +137 -0
- recallic_engine-0.1.0/recallic_engine/utils/__init__.py +0 -0
- recallic_engine-0.1.0/recallic_engine/utils/internal_client.py +82 -0
- recallic_engine-0.1.0/recallic_engine/utils/local_engine.py +136 -0
- recallic_engine-0.1.0/recallic_engine/utils/paths.py +29 -0
- recallic_engine-0.1.0/recallic_engine.egg-info/PKG-INFO +48 -0
- recallic_engine-0.1.0/recallic_engine.egg-info/SOURCES.txt +92 -0
- recallic_engine-0.1.0/recallic_engine.egg-info/dependency_links.txt +1 -0
- recallic_engine-0.1.0/recallic_engine.egg-info/requires.txt +8 -0
- recallic_engine-0.1.0/recallic_engine.egg-info/top_level.txt +1 -0
- recallic_engine-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Ayishik Das
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Recallic
|
|
2
|
+
Copyright 2026 Ayishik Das
|
|
3
|
+
|
|
4
|
+
Licensing:
|
|
5
|
+
- Everything in this repository is licensed under the Functional Source License, Version 1.1, ALv2 Future
|
|
6
|
+
License (FSL-1.1-ALv2); see LICENSE. The exceptions are the client SDKs below. Under FSL you may use, copy,
|
|
7
|
+
modify and self-host Recallic for any purpose except a Competing Use: offering it, or something
|
|
8
|
+
substantially similar built from it, as a commercial product or service. Each version becomes available
|
|
9
|
+
under the Apache License 2.0 two years after it is published.
|
|
10
|
+
- The client SDKs in sdk/python and sdk/typescript (published as "recallic" on PyPI and npm) are licensed
|
|
11
|
+
under the Apache License 2.0; see the LICENSE file in each folder.
|
|
12
|
+
- Versions published up to and including commit e5fddcd0 (2026-11-24) were released under the Apache License
|
|
13
|
+
2.0, and remain available under it.
|
|
14
|
+
|
|
15
|
+
"Recallic" and the Recallic logo are trademarks of Ayishik Das. Neither license grants any right to use them,
|
|
16
|
+
except to identify the origin of the software.
|
|
17
|
+
|
|
18
|
+
When you redistribute this software or derivatives of it, keep this NOTICE file, the LICENSE file and all
|
|
19
|
+
copyright notices.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: recallic-engine
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Recallic's LLM-free memory pipeline in your own Python process (LocalMemory): no server, no torch
|
|
5
|
+
License: FSL-1.1-ALv2
|
|
6
|
+
Project-URL: Homepage, https://www.recallic.com
|
|
7
|
+
Project-URL: Source, https://github.com/Recallic/Recallic
|
|
8
|
+
Keywords: memory,ai-agents,llm,rag,embedded
|
|
9
|
+
Classifier: License :: Other/Proprietary License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: NOTICE
|
|
15
|
+
Requires-Dist: numpy>=1.26
|
|
16
|
+
Requires-Dist: pyyaml>=6.0
|
|
17
|
+
Requires-Dist: python-dotenv>=1.2.2
|
|
18
|
+
Requires-Dist: requests>=2.33.0
|
|
19
|
+
Requires-Dist: urllib3>=2.8.0
|
|
20
|
+
Requires-Dist: onnxruntime>=1.20
|
|
21
|
+
Requires-Dist: transformers>=5.10.0
|
|
22
|
+
Requires-Dist: huggingface_hub>=0.30
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# recallic-engine
|
|
26
|
+
|
|
27
|
+
Recallic's memory pipeline inside your own Python process: no server, no Docker, no vector engine, no torch.
|
|
28
|
+
Usually installed through the client: `pip install "recallic[local]"`.
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from recallic import LocalMemory
|
|
32
|
+
|
|
33
|
+
mem = LocalMemory("./recallic-data") # a folder; created on first use
|
|
34
|
+
mem.store("I moved to Pune last month.")
|
|
35
|
+
mem.recall("Where do I live?")
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The same pipeline as the Recallic server (facts, dates, answer check, re-ranking, deletion receipts), with no LLM
|
|
39
|
+
calls. On first use it downloads three small models (about 700 MB in all) from the Hugging Face Hub and runs them with
|
|
40
|
+
ONNX Runtime on the CPU. If torch is installed, it is used instead (faster on a GPU). One process should own a data
|
|
41
|
+
folder at a time; for several processes or apps, run the server.
|
|
42
|
+
|
|
43
|
+
Licence: Functional Source License 1.1, ALv2 Future License (FSL-1.1-ALv2): use it for anything except offering it,
|
|
44
|
+
or something substantially similar, as a competing commercial product or service; each version becomes Apache 2.0
|
|
45
|
+
two years after release. The client SDK `recallic` is Apache 2.0. Model licences: bge-small-en-v1.5 (MIT),
|
|
46
|
+
ms-marco-MiniLM-L-6-v2 (Apache 2.0), roberta-base-squad2 by deepset (CC BY 4.0).
|
|
47
|
+
|
|
48
|
+
Website: https://www.recallic.com
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# recallic-engine
|
|
2
|
+
|
|
3
|
+
Recallic's memory pipeline inside your own Python process: no server, no Docker, no vector engine, no torch.
|
|
4
|
+
Usually installed through the client: `pip install "recallic[local]"`.
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
from recallic import LocalMemory
|
|
8
|
+
|
|
9
|
+
mem = LocalMemory("./recallic-data") # a folder; created on first use
|
|
10
|
+
mem.store("I moved to Pune last month.")
|
|
11
|
+
mem.recall("Where do I live?")
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The same pipeline as the Recallic server (facts, dates, answer check, re-ranking, deletion receipts), with no LLM
|
|
15
|
+
calls. On first use it downloads three small models (about 700 MB in all) from the Hugging Face Hub and runs them with
|
|
16
|
+
ONNX Runtime on the CPU. If torch is installed, it is used instead (faster on a GPU). One process should own a data
|
|
17
|
+
folder at a time; for several processes or apps, run the server.
|
|
18
|
+
|
|
19
|
+
Licence: Functional Source License 1.1, ALv2 Future License (FSL-1.1-ALv2): use it for anything except offering it,
|
|
20
|
+
or something substantially similar, as a competing commercial product or service; each version becomes Apache 2.0
|
|
21
|
+
two years after release. The client SDK `recallic` is Apache 2.0. Model licences: bge-small-en-v1.5 (MIT),
|
|
22
|
+
ms-marco-MiniLM-L-6-v2 (Apache 2.0), roberta-base-squad2 by deepset (CC BY 4.0).
|
|
23
|
+
|
|
24
|
+
Website: https://www.recallic.com
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "recallic-engine"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Recallic's LLM-free memory pipeline in your own Python process (LocalMemory): no server, no torch"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "FSL-1.1-ALv2" }
|
|
12
|
+
keywords = ["memory", "ai-agents", "llm", "rag", "embedded"]
|
|
13
|
+
classifiers = ["License :: Other/Proprietary License", "Programming Language :: Python :: 3"]
|
|
14
|
+
dependencies = [
|
|
15
|
+
"numpy>=1.26",
|
|
16
|
+
"pyyaml>=6.0",
|
|
17
|
+
"python-dotenv>=1.2.2",
|
|
18
|
+
"requests>=2.33.0",
|
|
19
|
+
"urllib3>=2.8.0",
|
|
20
|
+
"onnxruntime>=1.20",
|
|
21
|
+
"transformers>=5.10.0", # tokenizers only; torch is not needed
|
|
22
|
+
"huggingface_hub>=0.30",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://www.recallic.com"
|
|
27
|
+
Source = "https://github.com/Recallic/Recallic"
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.packages.find]
|
|
30
|
+
include = ["recallic_engine*"]
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
"*" = ["*.yaml", "*.json"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Recallic recallic_engine."""
|
|
2
|
+
import os as _os
|
|
3
|
+
|
|
4
|
+
# The server version (OpenAPI, /health). SDK and integration docs say "server 0.2.5 or newer" for mode= and timestamp=.
|
|
5
|
+
__version__ = "0.2.5"
|
|
6
|
+
|
|
7
|
+
# The project was called Recallix before; settings named RECALLIX_* still work (RECALLIC_* wins when both are set).
|
|
8
|
+
for _k, _v in list(_os.environ.items()):
|
|
9
|
+
if _k.startswith("RECALLIX_") and ("RECALLIC_" + _k[9:]) not in _os.environ:
|
|
10
|
+
_os.environ["RECALLIC_" + _k[9:]] = _v
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import threading
|
|
2
|
+
|
|
3
|
+
_lock = threading.RLock() # re-entrant: get_scheduler() creates the memory manager while holding it
|
|
4
|
+
_memory_manager = None
|
|
5
|
+
_scheduler = None
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def get_memory_manager():
|
|
9
|
+
"""Process-wide MemoryManager (created on first use)."""
|
|
10
|
+
global _memory_manager
|
|
11
|
+
if _memory_manager is None:
|
|
12
|
+
with _lock:
|
|
13
|
+
if _memory_manager is None:
|
|
14
|
+
from recallic_engine.brain.memory.manager import MemoryManager
|
|
15
|
+
_memory_manager = MemoryManager()
|
|
16
|
+
return _memory_manager
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def get_scheduler():
|
|
20
|
+
global _scheduler
|
|
21
|
+
if _scheduler is None:
|
|
22
|
+
with _lock:
|
|
23
|
+
if _scheduler is None:
|
|
24
|
+
from recallic_engine.brain.workers.scheduler import Scheduler
|
|
25
|
+
_scheduler = Scheduler(get_memory_manager())
|
|
26
|
+
return _scheduler
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def reset():
|
|
30
|
+
"""Drop singletons (tests)."""
|
|
31
|
+
global _memory_manager, _scheduler
|
|
32
|
+
with _lock:
|
|
33
|
+
if _scheduler is not None:
|
|
34
|
+
_scheduler.stop()
|
|
35
|
+
_memory_manager = None
|
|
36
|
+
_scheduler = None
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""LLM-free feature extraction for the store path (facts, schemas)."""
|