keep-skill 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.
- keep/__init__.py +53 -0
- keep/__main__.py +8 -0
- keep/api.py +686 -0
- keep/chunking.py +364 -0
- keep/cli.py +503 -0
- keep/config.py +323 -0
- keep/context.py +127 -0
- keep/indexing.py +208 -0
- keep/logging_config.py +73 -0
- keep/paths.py +67 -0
- keep/pending_summaries.py +166 -0
- keep/providers/__init__.py +40 -0
- keep/providers/base.py +416 -0
- keep/providers/documents.py +250 -0
- keep/providers/embedding_cache.py +260 -0
- keep/providers/embeddings.py +245 -0
- keep/providers/llm.py +371 -0
- keep/providers/mlx.py +256 -0
- keep/providers/summarization.py +107 -0
- keep/store.py +403 -0
- keep/types.py +65 -0
- keep_skill-0.1.0.dist-info/METADATA +290 -0
- keep_skill-0.1.0.dist-info/RECORD +26 -0
- keep_skill-0.1.0.dist-info/WHEEL +4 -0
- keep_skill-0.1.0.dist-info/entry_points.txt +2 -0
- keep_skill-0.1.0.dist-info/licenses/LICENSE +21 -0
keep/__init__.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Keep - Semantic Memory
|
|
3
|
+
|
|
4
|
+
A persistent semantic memory with similarity search, full-text search,
|
|
5
|
+
and tag-based retrieval. Remember everything, find by meaning.
|
|
6
|
+
|
|
7
|
+
Quick Start:
|
|
8
|
+
from keep import Keeper
|
|
9
|
+
|
|
10
|
+
kp = Keeper() # uses .keep/ at git repo root
|
|
11
|
+
kp.update("file:///path/to/document.md", source_tags={"project": "myproject"})
|
|
12
|
+
results = kp.find("something similar to this query")
|
|
13
|
+
|
|
14
|
+
CLI Usage:
|
|
15
|
+
keep find "query text"
|
|
16
|
+
keep update file:///path/to/doc.md -t category=docs
|
|
17
|
+
keep collections --json
|
|
18
|
+
|
|
19
|
+
Default Store:
|
|
20
|
+
.keep/ at the git repository root (created automatically).
|
|
21
|
+
Override with KEEP_STORE_PATH or explicit path argument.
|
|
22
|
+
|
|
23
|
+
Environment Variables:
|
|
24
|
+
KEEP_STORE_PATH - Override default store location
|
|
25
|
+
KEEP_OPENAI_API_KEY - API key for OpenAI providers
|
|
26
|
+
|
|
27
|
+
The store is initialized automatically on first use. Configuration is persisted
|
|
28
|
+
in a TOML file within the store directory.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
# Configure quiet mode early (before any library imports)
|
|
32
|
+
import os
|
|
33
|
+
if not os.environ.get("KEEP_VERBOSE"):
|
|
34
|
+
os.environ.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")
|
|
35
|
+
os.environ.setdefault("TRANSFORMERS_VERBOSITY", "error")
|
|
36
|
+
os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
|
|
37
|
+
os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1")
|
|
38
|
+
os.environ.setdefault("HF_HUB_DISABLE_SYMLINKS_WARNING", "1")
|
|
39
|
+
|
|
40
|
+
from .api import Keeper
|
|
41
|
+
from .types import Item, filter_non_system_tags, SYSTEM_TAG_PREFIX
|
|
42
|
+
from .context import WorkingContext, TopicSummary, RoutingContext
|
|
43
|
+
|
|
44
|
+
__version__ = "0.1.0"
|
|
45
|
+
__all__ = [
|
|
46
|
+
"Keeper",
|
|
47
|
+
"Item",
|
|
48
|
+
"WorkingContext",
|
|
49
|
+
"TopicSummary",
|
|
50
|
+
"RoutingContext",
|
|
51
|
+
"filter_non_system_tags",
|
|
52
|
+
"SYSTEM_TAG_PREFIX",
|
|
53
|
+
]
|