auralith-aura 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.
- auralith_aura-0.1.0/LICENSE +190 -0
- auralith_aura-0.1.0/PKG-INFO +369 -0
- auralith_aura-0.1.0/README.md +317 -0
- auralith_aura-0.1.0/aura/__init__.py +40 -0
- auralith_aura-0.1.0/aura/compiler.py +904 -0
- auralith_aura-0.1.0/aura/loader.py +298 -0
- auralith_aura-0.1.0/aura/memory.py +504 -0
- auralith_aura-0.1.0/aura/protocol.py +178 -0
- auralith_aura-0.1.0/aura/rag.py +393 -0
- auralith_aura-0.1.0/aura/torch.py +23 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/PKG-INFO +369 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/SOURCES.txt +23 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/dependency_links.txt +1 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/entry_points.txt +2 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/requires.txt +23 -0
- auralith_aura-0.1.0/auralith_aura.egg-info/top_level.txt +4 -0
- auralith_aura-0.1.0/examples/basic_compile.py +76 -0
- auralith_aura-0.1.0/integrations/aura-codex/scripts/aura_codex.py +118 -0
- auralith_aura-0.1.0/integrations/aura-gemini-cli/scripts/aura_gemini.py +118 -0
- auralith_aura-0.1.0/integrations/aura-openclaw/scripts/compile.py +45 -0
- auralith_aura-0.1.0/integrations/aura-openclaw/scripts/memory.py +130 -0
- auralith_aura-0.1.0/integrations/aura-openclaw/scripts/query.py +100 -0
- auralith_aura-0.1.0/pyproject.toml +73 -0
- auralith_aura-0.1.0/setup.cfg +4 -0
- auralith_aura-0.1.0/setup.py +70 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2024-2026 Auralith Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: auralith-aura
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The Universal Context Compiler for AI Agent Memory
|
|
5
|
+
Home-page: https://github.com/Auralith-Inc/aura-core
|
|
6
|
+
Author: Auralith Inc.
|
|
7
|
+
Author-email: "Auralith Inc." <info@auralith.org>
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Project-URL: Homepage, https://aura.auralith.org
|
|
10
|
+
Project-URL: Documentation, https://github.com/Auralith-Inc/aura-core#readme
|
|
11
|
+
Project-URL: Repository, https://github.com/Auralith-Inc/aura-core.git
|
|
12
|
+
Project-URL: Issues, https://github.com/Auralith-Inc/aura-core/issues
|
|
13
|
+
Project-URL: Changelog, https://github.com/Auralith-Inc/aura-core/releases
|
|
14
|
+
Keywords: ai,agent-memory,rag,retrieval-augmented-generation,context-compiler,openclaw,claude-code,codex,gemini-cli,llm,knowledge-base
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Science/Research
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
26
|
+
Requires-Python: >=3.8
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: numpy>=1.21.0
|
|
30
|
+
Requires-Dist: msgpack>=1.0.0
|
|
31
|
+
Requires-Dist: safetensors>=0.3.0
|
|
32
|
+
Requires-Dist: tqdm>=4.60.0
|
|
33
|
+
Provides-Extra: docs
|
|
34
|
+
Requires-Dist: unstructured>=0.10.0; extra == "docs"
|
|
35
|
+
Requires-Dist: pypdf>=3.0.0; extra == "docs"
|
|
36
|
+
Requires-Dist: python-docx>=0.8.11; extra == "docs"
|
|
37
|
+
Provides-Extra: data
|
|
38
|
+
Requires-Dist: pandas>=1.3.0; extra == "data"
|
|
39
|
+
Requires-Dist: openpyxl>=3.0.0; extra == "data"
|
|
40
|
+
Requires-Dist: pyarrow>=10.0.0; extra == "data"
|
|
41
|
+
Provides-Extra: all
|
|
42
|
+
Requires-Dist: auralith-aura[data,docs]; extra == "all"
|
|
43
|
+
Requires-Dist: unstructured[all-docs]>=0.10.0; extra == "all"
|
|
44
|
+
Provides-Extra: dev
|
|
45
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
46
|
+
Requires-Dist: black>=22.0.0; extra == "dev"
|
|
47
|
+
Requires-Dist: isort>=5.10.0; extra == "dev"
|
|
48
|
+
Dynamic: author
|
|
49
|
+
Dynamic: home-page
|
|
50
|
+
Dynamic: license-file
|
|
51
|
+
Dynamic: requires-python
|
|
52
|
+
|
|
53
|
+
<p align="center">
|
|
54
|
+
<img src="logo.png" alt="Auralith Logo" width="120">
|
|
55
|
+
<h1 align="center">Aura: The Universal Context Compiler</h1>
|
|
56
|
+
<p align="center">
|
|
57
|
+
<strong>Compile any document into AI-ready knowledge bases with built-in agent memory.</strong>
|
|
58
|
+
</p>
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<a href="https://pypi.org/project/auralith-aura/"><img src="https://badge.fury.io/py/auralith-aura.svg" alt="PyPI version"></a>
|
|
63
|
+
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a>
|
|
64
|
+
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="Python 3.8+"></a>
|
|
65
|
+
<a href="https://github.com/Auralith-Inc/aura-core"><img src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-lightgrey" alt="Platform"></a>
|
|
66
|
+
</p>
|
|
67
|
+
|
|
68
|
+
<p align="center">
|
|
69
|
+
<a href="#-quick-start">Quick Start</a> •
|
|
70
|
+
<a href="#-agent-memory">Agent Memory</a> •
|
|
71
|
+
<a href="#-agent-integrations">Integrations</a> •
|
|
72
|
+
<a href="#-rag-support">RAG Support</a> •
|
|
73
|
+
<a href="https://aura.auralith.org">Website</a>
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Context is the new Compute.
|
|
79
|
+
|
|
80
|
+
Aura compiles messy, real-world files (PDFs, DOCX, HTML, code, spreadsheets — **60+ formats**) into a single optimized binary (`.aura`) ready for **RAG retrieval** and **AI agent memory**.
|
|
81
|
+
|
|
82
|
+
One command. No JSONL scripting. No parsing pipelines.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pip install auralith-aura
|
|
86
|
+
aura compile ./my_data/ --output knowledge.aura
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## ⚡ Quick Start
|
|
92
|
+
|
|
93
|
+
### 1. Install
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pip install auralith-aura
|
|
97
|
+
|
|
98
|
+
# For full document support (PDFs, DOCX, etc.)
|
|
99
|
+
pip install 'aura-core[all]'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 2. Compile
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Basic compilation
|
|
106
|
+
aura compile ./company_data/ --output knowledge.aura
|
|
107
|
+
|
|
108
|
+
# With PII masking (emails, phones, SSNs automatically redacted)
|
|
109
|
+
aura compile ./data/ --output knowledge.aura --pii-mask
|
|
110
|
+
|
|
111
|
+
# Filter low-quality content
|
|
112
|
+
aura compile ./data/ --output knowledge.aura --min-quality 0.3
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 3. Use
|
|
116
|
+
|
|
117
|
+
**For RAG (Knowledge Retrieval):**
|
|
118
|
+
```python
|
|
119
|
+
from aura.rag import AuraRAGLoader
|
|
120
|
+
|
|
121
|
+
loader = AuraRAGLoader("knowledge.aura")
|
|
122
|
+
text = loader.get_text_by_id("doc_001")
|
|
123
|
+
|
|
124
|
+
# Framework wrappers
|
|
125
|
+
langchain_docs = loader.to_langchain_documents()
|
|
126
|
+
llama_docs = loader.to_llama_index_documents()
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**For Agent Memory:**
|
|
130
|
+
```python
|
|
131
|
+
from aura.memory import AuraMemoryOS
|
|
132
|
+
|
|
133
|
+
memory = AuraMemoryOS()
|
|
134
|
+
|
|
135
|
+
# Write to memory tiers
|
|
136
|
+
memory.write("fact", "User prefers dark mode", source="agent")
|
|
137
|
+
memory.write("episodic", "Discussed deployment strategy")
|
|
138
|
+
memory.write("pad", "TODO: check auth module")
|
|
139
|
+
|
|
140
|
+
# Search memory
|
|
141
|
+
results = memory.query("user preferences")
|
|
142
|
+
|
|
143
|
+
# End session (flushes to durable shards)
|
|
144
|
+
memory.end_session()
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 🧠 Agent Memory
|
|
150
|
+
|
|
151
|
+
Aura includes a **3-Tier Memory OS** with a **Two-Speed Write-Ahead Log**:
|
|
152
|
+
|
|
153
|
+
| Tier | Purpose | Lifecycle |
|
|
154
|
+
|------|---------|-----------|
|
|
155
|
+
| `/pad` | Working notes, scratch space | Transient |
|
|
156
|
+
| `/episodic` | Session transcripts, conversation history | Auto-archived |
|
|
157
|
+
| `/fact` | Verified facts, user preferences | Persistent |
|
|
158
|
+
|
|
159
|
+
**Two-Speed WAL:**
|
|
160
|
+
- **Speed 1** (~0.001s): Instant JSONL append — agents are never blocked
|
|
161
|
+
- **Speed 2** (background): Compiles to durable `.aura` shards at session end
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# CLI memory management
|
|
165
|
+
aura memory list # View all memory shards
|
|
166
|
+
aura memory usage # Storage usage by tier
|
|
167
|
+
aura memory prune --before 2026-01-01 # Clean up old memories
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 🤖 Agent Integrations
|
|
173
|
+
|
|
174
|
+
Aura works natively with the major AI agent platforms:
|
|
175
|
+
|
|
176
|
+
| Platform | Repo | Use Case |
|
|
177
|
+
|----------|------|----------|
|
|
178
|
+
| **OpenClaw** | [`aura-openclaw`](https://github.com/Auralith-Inc/aura-openclaw) | Persistent RAG + memory for always-on agents |
|
|
179
|
+
| **Claude Code** | [`aura-claude-code`](https://github.com/Auralith-Inc/aura-claude-code) | Context-aware coding with `/aura` commands |
|
|
180
|
+
| **OpenAI Codex** | [`aura-codex`](https://github.com/Auralith-Inc/aura-codex) | Knowledge-backed Codex agents |
|
|
181
|
+
| **Gemini CLI** | [`aura-gemini-cli`](https://github.com/Auralith-Inc/aura-gemini-cli) | Gemini CLI extension for RAG |
|
|
182
|
+
|
|
183
|
+
### How It Works (Agent RAG Flow)
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
You: "Learn everything in my /docs/ folder"
|
|
187
|
+
→ Agent runs: aura compile ./docs/ --output knowledge.aura
|
|
188
|
+
→ Agent loads: AuraRAGLoader("knowledge.aura")
|
|
189
|
+
→ You: "What does the auth module do?"
|
|
190
|
+
→ Agent queries the .aura file and responds with cited answers
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 🌟 Key Features
|
|
196
|
+
|
|
197
|
+
| Feature | Description |
|
|
198
|
+
|---------|-------------|
|
|
199
|
+
| **Universal Ingestion** | Parses 60+ formats: PDF, DOCX, HTML, MD, CSV, code, and more |
|
|
200
|
+
| **Agent Memory OS** | 3-tier memory (pad/episodic/fact) with instant writes |
|
|
201
|
+
| **PII Masking** | Automatically redacts emails, phones, SSNs before compilation |
|
|
202
|
+
| **Instant RAG** | Query any document by keyword or ID. LangChain + LlamaIndex wrappers |
|
|
203
|
+
| **Quality Filtering** | Skip low-quality content with configurable thresholds |
|
|
204
|
+
| **Cross-Platform** | macOS, Windows, and Linux |
|
|
205
|
+
| **Secure by Design** | No pickle. No arbitrary code execution. Safe to share. |
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## 📁 Supported File Formats
|
|
210
|
+
|
|
211
|
+
<details>
|
|
212
|
+
<summary><b>Documents</b> - PDF, DOCX, HTML, and more</summary>
|
|
213
|
+
|
|
214
|
+
- `.pdf`, `.docx`, `.doc`, `.rtf`, `.odt`, `.epub`, `.txt`, `.pages`, `.wpd`
|
|
215
|
+
- `.html`, `.htm`, `.xml`
|
|
216
|
+
- `.eml`, `.msg` (emails)
|
|
217
|
+
- `.pptx`, `.ppt` (presentations)
|
|
218
|
+
|
|
219
|
+
</details>
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary><b>Data</b> - Spreadsheets and structured data</summary>
|
|
223
|
+
|
|
224
|
+
- `.csv`, `.tsv`
|
|
225
|
+
- `.xlsx`, `.xls`
|
|
226
|
+
- `.parquet`
|
|
227
|
+
- `.json`, `.jsonl`
|
|
228
|
+
- `.yaml`, `.yml`, `.toml`
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
<details>
|
|
233
|
+
<summary><b>Code</b> - All major programming languages</summary>
|
|
234
|
+
|
|
235
|
+
- **Python**: `.py`, `.pyi`, `.ipynb`
|
|
236
|
+
- **Web**: `.js`, `.ts`, `.jsx`, `.tsx`, `.css`
|
|
237
|
+
- **Systems**: `.c`, `.cpp`, `.h`, `.hpp`, `.rs`, `.go`, `.java`, `.kt`, `.swift`
|
|
238
|
+
- **Scripts**: `.sh`, `.bash`, `.zsh`, `.ps1`, `.bat`
|
|
239
|
+
- **Backend**: `.sql`, `.php`, `.rb`, `.cs`, `.scala`
|
|
240
|
+
- **Config**: `.ini`, `.cfg`, `.conf`, `.env`, `.dockerfile`
|
|
241
|
+
|
|
242
|
+
</details>
|
|
243
|
+
|
|
244
|
+
<details>
|
|
245
|
+
<summary><b>Markup</b> - Documentation formats</summary>
|
|
246
|
+
|
|
247
|
+
- `.md` (Markdown)
|
|
248
|
+
- `.rst` (reStructuredText)
|
|
249
|
+
- `.tex`, `.latex`
|
|
250
|
+
|
|
251
|
+
</details>
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## 🔧 CLI Reference
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
aura compile <input_directory> --output <file.aura> [options]
|
|
259
|
+
|
|
260
|
+
Options:
|
|
261
|
+
--pii-mask Mask PII (emails, phones, SSNs)
|
|
262
|
+
--min-quality SCORE Filter low-quality content (0.0-1.0)
|
|
263
|
+
--domain DOMAIN Tag with domain context
|
|
264
|
+
--no-recursive Don't search subdirectories
|
|
265
|
+
--verbose, -v Verbose output
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Memory Management
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
aura memory list # List all memory shards
|
|
272
|
+
aura memory usage # Show storage by tier
|
|
273
|
+
aura memory prune --before 2026-01-01 # Remove old shards
|
|
274
|
+
aura memory prune --id <shard_id> # Remove specific shard
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Inspect an Archive
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
aura info knowledge.aura
|
|
281
|
+
|
|
282
|
+
📦 Aura Archive: knowledge.aura
|
|
283
|
+
Datapoints: 1,234
|
|
284
|
+
|
|
285
|
+
Sample datapoint:
|
|
286
|
+
Tensors: ['raw_text']
|
|
287
|
+
Source: legal/contract_001.pdf
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## 🔌 RAG Support
|
|
293
|
+
|
|
294
|
+
```python
|
|
295
|
+
from aura.rag import AuraRAGLoader
|
|
296
|
+
|
|
297
|
+
loader = AuraRAGLoader("knowledge.aura")
|
|
298
|
+
|
|
299
|
+
# Text retrieval
|
|
300
|
+
text = loader.get_text_by_id("doc_001")
|
|
301
|
+
|
|
302
|
+
# Filter documents
|
|
303
|
+
pdf_docs = loader.filter_by_extension(".pdf")
|
|
304
|
+
legal_docs = loader.filter_by_source("legal/")
|
|
305
|
+
|
|
306
|
+
# Framework wrappers
|
|
307
|
+
langchain_docs = loader.to_langchain_documents() # LangChain
|
|
308
|
+
llama_docs = loader.to_llama_index_documents() # LlamaIndex
|
|
309
|
+
dict_list = loader.to_dict_list() # Universal
|
|
310
|
+
|
|
311
|
+
# Statistics
|
|
312
|
+
stats = loader.get_stats()
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## 📐 File Format Specification
|
|
318
|
+
|
|
319
|
+
The `.aura` format is a secure, indexed binary archive:
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
[Datapoint 1][Datapoint 2]...[Datapoint N][Index][Footer]
|
|
323
|
+
|
|
324
|
+
Each Datapoint:
|
|
325
|
+
[meta_length: 4 bytes, uint32]
|
|
326
|
+
[tensor_length: 4 bytes, uint32]
|
|
327
|
+
[metadata: msgpack bytes]
|
|
328
|
+
[tensors: safetensors bytes]
|
|
329
|
+
|
|
330
|
+
Footer:
|
|
331
|
+
[index_offset: 8 bytes, uint64]
|
|
332
|
+
[magic: 4 bytes, 'AURA']
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
**Security**: Uses `safetensors` (not pickle) — safe to load untrusted files.
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
## 💻 System Requirements
|
|
340
|
+
|
|
341
|
+
| Use Case | Files | RAM | Time |
|
|
342
|
+
|----------|-------|-----|------|
|
|
343
|
+
| Personal docs | 50–500 | ~2 GB | < 1 min |
|
|
344
|
+
| Team knowledge base | 500–5,000 | ~4 GB | 5–15 min |
|
|
345
|
+
| Enterprise corpus | 5,000–50,000 | ~8 GB | 30–60 min |
|
|
346
|
+
|
|
347
|
+
**Platforms**: macOS, Windows, Linux
|
|
348
|
+
**Python**: 3.8+
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## 📜 License
|
|
353
|
+
|
|
354
|
+
[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## 🔗 Links
|
|
359
|
+
|
|
360
|
+
- **Website**: [aura.auralith.org](https://aura.auralith.org)
|
|
361
|
+
- **PyPI**: [pypi.org/project/auralith-aura](https://pypi.org/project/auralith-aura)
|
|
362
|
+
- **GitHub**: [github.com/Auralith-Inc/aura-core](https://github.com/Auralith-Inc/aura-core)
|
|
363
|
+
- **OpenClaw Skill**: [github.com/Auralith-Inc/aura-openclaw](https://github.com/Auralith-Inc/aura-openclaw)
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
<p align="center">
|
|
368
|
+
Made with ❤️ by <a href="https://auralith.org">Auralith Inc.</a>
|
|
369
|
+
</p>
|