aura-research 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.
- aura_research-0.1.0/LICENSE +190 -0
- aura_research-0.1.0/PKG-INFO +298 -0
- aura_research-0.1.0/README.md +263 -0
- aura_research-0.1.0/aura_research.egg-info/PKG-INFO +298 -0
- aura_research-0.1.0/aura_research.egg-info/SOURCES.txt +19 -0
- aura_research-0.1.0/aura_research.egg-info/dependency_links.txt +1 -0
- aura_research-0.1.0/aura_research.egg-info/entry_points.txt +2 -0
- aura_research-0.1.0/aura_research.egg-info/requires.txt +20 -0
- aura_research-0.1.0/aura_research.egg-info/top_level.txt +3 -0
- aura_research-0.1.0/pyproject.toml +49 -0
- aura_research-0.1.0/research/__init__.py +8 -0
- aura_research-0.1.0/research/cli.py +468 -0
- aura_research-0.1.0/research/compiler.py +363 -0
- aura_research-0.1.0/research/config.py +206 -0
- aura_research-0.1.0/research/ingest.py +182 -0
- aura_research-0.1.0/research/linter.py +219 -0
- aura_research-0.1.0/research/prompts.py +185 -0
- aura_research-0.1.0/research/query.py +233 -0
- aura_research-0.1.0/research/search.py +103 -0
- aura_research-0.1.0/research/web.py +61 -0
- aura_research-0.1.0/setup.cfg +4 -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,298 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aura-research
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: LLM-powered research knowledge base — compile raw documents into a living wiki
|
|
5
|
+
Author-email: Rta Labs <info@rtalabs.org>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/Rtalabs-ai/aura-research
|
|
8
|
+
Project-URL: Repository, https://github.com/Rtalabs-ai/aura-research.git
|
|
9
|
+
Project-URL: Issues, https://github.com/Rtalabs-ai/aura-research/issues
|
|
10
|
+
Keywords: ai,research,knowledge-base,wiki,rag,llm,aura,agent-memory
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: auralith-aura>=0.2.3
|
|
21
|
+
Requires-Dist: pyyaml>=6.0
|
|
22
|
+
Provides-Extra: openai
|
|
23
|
+
Requires-Dist: openai>=1.0.0; extra == "openai"
|
|
24
|
+
Provides-Extra: anthropic
|
|
25
|
+
Requires-Dist: anthropic>=0.20.0; extra == "anthropic"
|
|
26
|
+
Provides-Extra: gemini
|
|
27
|
+
Requires-Dist: google-generativeai>=0.5.0; extra == "gemini"
|
|
28
|
+
Provides-Extra: search
|
|
29
|
+
Requires-Dist: duckduckgo-search>=5.0.0; extra == "search"
|
|
30
|
+
Provides-Extra: watch
|
|
31
|
+
Requires-Dist: watchdog>=3.0.0; extra == "watch"
|
|
32
|
+
Provides-Extra: all
|
|
33
|
+
Requires-Dist: aura-research[anthropic,gemini,openai,search,watch]; extra == "all"
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
|
|
36
|
+
<p align="center">
|
|
37
|
+
<img src="https://github.com/Rtalabs-ai/aura-core/raw/main/logo.png" alt="Rta Labs Logo" width="120" />
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<h1 align="center">Aura Research</h1>
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<strong>Turn raw research into a living wiki your LLM agents can read, query, and enhance.</strong>
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
<p align="center">
|
|
47
|
+
<a href="https://github.com/Rtalabs-ai/aura-research/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License" /></a>
|
|
48
|
+
<a href="https://github.com/Rtalabs-ai/aura-core"><img src="https://img.shields.io/badge/powered%20by-Aura%20Core-purple" alt="Powered by Aura Core" /></a>
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
**Aura Research** is an LLM-powered research knowledge base that compiles raw documents into a structured markdown wiki. Drop your papers, articles, data, and notes into a folder — the LLM reads everything, builds a navigable wiki with summaries and concept articles, and then answers your research questions using that compiled knowledge.
|
|
54
|
+
|
|
55
|
+
Built on [Aura Core](https://github.com/Rtalabs-ai/aura-core) for document compilation (60+ formats) and the three-tier Memory OS for persistent agent memory across sessions.
|
|
56
|
+
|
|
57
|
+
## Quick Start
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Install
|
|
61
|
+
pip install 'aura-research[openai]'
|
|
62
|
+
|
|
63
|
+
# Set your API key
|
|
64
|
+
export OPENAI_API_KEY=sk-...
|
|
65
|
+
|
|
66
|
+
# Initialize a project
|
|
67
|
+
research init my-project
|
|
68
|
+
cd my-project
|
|
69
|
+
|
|
70
|
+
# Drop your documents in raw/
|
|
71
|
+
cp ~/papers/*.pdf raw/
|
|
72
|
+
|
|
73
|
+
# Ingest and compile
|
|
74
|
+
research ingest raw/
|
|
75
|
+
research compile
|
|
76
|
+
|
|
77
|
+
# Ask questions
|
|
78
|
+
research query "what are the key findings across all papers?"
|
|
79
|
+
|
|
80
|
+
# Search the wiki
|
|
81
|
+
research search "attention mechanism"
|
|
82
|
+
|
|
83
|
+
# Check wiki health
|
|
84
|
+
research lint
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Agent-Native Mode (no API key)
|
|
88
|
+
|
|
89
|
+
If you're already using an AI coding agent (Claude Code, Codex, Gemini CLI, Cursor, etc.), **you don't need an API key**. The agent IS the LLM:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# In your AI agent's terminal:
|
|
93
|
+
research init my-project
|
|
94
|
+
# Copy documents to raw/
|
|
95
|
+
research ingest raw/
|
|
96
|
+
|
|
97
|
+
# The agent reads the docs and writes wiki articles directly
|
|
98
|
+
# (it's an LLM — it doesn't need to call another one)
|
|
99
|
+
|
|
100
|
+
research build # compile wiki/ → wiki.aura
|
|
101
|
+
research search "topic" # search the wiki
|
|
102
|
+
research memory show # see what the agent remembers
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The API mode (`research compile`, `research query`) exists for headless/batch use when no agent is at the keyboard.
|
|
106
|
+
|
|
107
|
+
## How It Works
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
Raw Documents ──→ Aura Core (.aura) ──→ LLM Compiler ──→ Markdown Wiki
|
|
111
|
+
papers/ compiled & generates wiki/
|
|
112
|
+
articles/ indexed summaries, ├── _index.md
|
|
113
|
+
data/ (60+ formats) concepts, ├── concepts/
|
|
114
|
+
code/ backlinks ├── sources/
|
|
115
|
+
└── queries/
|
|
116
|
+
↕
|
|
117
|
+
Memory OS
|
|
118
|
+
/pad /episodic /fact
|
|
119
|
+
(persistent agent memory)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
1. **Ingest** — Compile your raw documents into a searchable `.aura` archive using Aura Core
|
|
123
|
+
2. **Compile** — LLM reads all sources and generates a structured wiki: per-source summaries, cross-cutting concept articles, master index, and executive summary
|
|
124
|
+
3. **Query** — Ask questions against the wiki. The LLM uses wiki context + Memory OS facts + optional web search to give you thorough, cited answers
|
|
125
|
+
4. **Remember** — Memory OS automatically stores key findings (`/fact`), session logs (`/episodic`), and working notes (`/pad`) — so the agent never starts cold
|
|
126
|
+
|
|
127
|
+
## Commands
|
|
128
|
+
|
|
129
|
+
| Command | Description |
|
|
130
|
+
|---|---|
|
|
131
|
+
| `research init [dir]` | Initialize a new project |
|
|
132
|
+
| `research ingest <dir>` | Ingest raw documents into `.aura` archive |
|
|
133
|
+
| `research ingest <dir> --watch` | Watch directory and auto-re-ingest on changes |
|
|
134
|
+
| `research compile` | Compile wiki using LLM API (needs API key) |
|
|
135
|
+
| `research compile --full` | Full recompile (ignore cache) |
|
|
136
|
+
| `research build` | Build `wiki.aura` from `wiki/` markdown (no LLM needed) |
|
|
137
|
+
| `research query "..."` | Ask a research question (needs API key) |
|
|
138
|
+
| `research query "..." --save` | Ask and save the answer to `wiki/queries/` |
|
|
139
|
+
| `research query "..." --no-web` | Ask without web search |
|
|
140
|
+
| `research search "..."` | Keyword search across wiki articles |
|
|
141
|
+
| `research lint` | Run wiki health checks |
|
|
142
|
+
| `research lint --ai` | Health checks + AI-powered analysis |
|
|
143
|
+
| `research status` | Show knowledge base statistics |
|
|
144
|
+
| `research memory show` | Full overview of all 3 memory tiers |
|
|
145
|
+
| `research memory show --tier fact` | Overview filtered to one tier |
|
|
146
|
+
| `research memory usage` | Show Memory OS storage |
|
|
147
|
+
| `research memory query "..."` | Search agent memory |
|
|
148
|
+
| `research memory write <tier> "..."` | Manually write to memory (pad/episodic/fact) |
|
|
149
|
+
| `research memory list` | List memory shards |
|
|
150
|
+
| `research memory prune --before DATE` | Prune old memory entries |
|
|
151
|
+
|
|
152
|
+
## LLM Providers
|
|
153
|
+
|
|
154
|
+
Supports **OpenAI**, **Anthropic**, and **Google Gemini**. Install the one you prefer:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
pip install 'aura-research[openai]' # GPT-4o (default)
|
|
158
|
+
pip install 'aura-research[anthropic]' # Claude 3.5 Sonnet
|
|
159
|
+
pip install 'aura-research[gemini]' # Gemini 2.0 Flash
|
|
160
|
+
pip install 'aura-research[all]' # Everything
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Configure via environment variables or `research.yaml`:
|
|
164
|
+
|
|
165
|
+
```yaml
|
|
166
|
+
llm:
|
|
167
|
+
provider: openai # openai, anthropic, or gemini
|
|
168
|
+
model: gpt-4o # override default model
|
|
169
|
+
temperature: 0.3
|
|
170
|
+
|
|
171
|
+
memory:
|
|
172
|
+
enabled: true
|
|
173
|
+
auto_write: true # agent writes to memory automatically
|
|
174
|
+
|
|
175
|
+
web_search:
|
|
176
|
+
enabled: true
|
|
177
|
+
max_results: 5
|
|
178
|
+
|
|
179
|
+
watch:
|
|
180
|
+
enabled: false
|
|
181
|
+
interval: 5 # seconds between checks
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Memory OS
|
|
185
|
+
|
|
186
|
+
Aura's three-tier **Memory OS v2.1** gives the agent persistent memory across sessions — so it never starts cold:
|
|
187
|
+
|
|
188
|
+
| Tier | What's Stored | Persistence |
|
|
189
|
+
|---|---|---|
|
|
190
|
+
| `/pad` | Working notes, draft observations | Transient — scratch space |
|
|
191
|
+
| `/episodic` | Session logs, what was compiled/queried | Auto-archived |
|
|
192
|
+
| `/fact` | Key findings, verified observations | Persistent — survives indefinitely |
|
|
193
|
+
|
|
194
|
+
### How It Operates
|
|
195
|
+
|
|
196
|
+
Memory OS works **both autonomously and manually**:
|
|
197
|
+
|
|
198
|
+
- **Autonomous**: During `research compile`, the LLM auto-extracts key facts and writes them to `/fact`. After every compile/query session, an episodic log → `/episodic`. Controlled by `auto_write: true` in config.
|
|
199
|
+
- **Manual**: Write directly with `research memory write <tier> "content"` whenever you (or the agent) want to persist something.
|
|
200
|
+
|
|
201
|
+
### v2.1 Features
|
|
202
|
+
|
|
203
|
+
| Feature | What It Does |
|
|
204
|
+
|---|---|
|
|
205
|
+
| **Entry deduplication** | Prevents writing the same fact twice (SimHash fuzzy matching) |
|
|
206
|
+
| **Temporal decay** | Recent memories score higher in queries — older context naturally fades |
|
|
207
|
+
| **Bloom filters** | Skip irrelevant shards during search — fast even with thousands of entries |
|
|
208
|
+
| **Append-only** | Old entries are never overwritten — new ones are added alongside them |
|
|
209
|
+
| **Tiered priority** | Facts > episodic > pad when returning query results |
|
|
210
|
+
|
|
211
|
+
### Examples
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# Write a verified fact
|
|
215
|
+
research memory write fact "The model achieves 94.2% accuracy on the test set"
|
|
216
|
+
|
|
217
|
+
# Log what you did this session
|
|
218
|
+
research memory write episodic "Analyzed training curves, found overfitting at epoch 12"
|
|
219
|
+
|
|
220
|
+
# Jot a working note
|
|
221
|
+
research memory write pad "TODO: re-run experiment with lower learning rate"
|
|
222
|
+
|
|
223
|
+
# Search memory by keyword
|
|
224
|
+
research memory query "accuracy"
|
|
225
|
+
|
|
226
|
+
# Full overview — see everything across all 3 tiers
|
|
227
|
+
research memory show
|
|
228
|
+
|
|
229
|
+
# Filter to just facts
|
|
230
|
+
research memory show --tier fact
|
|
231
|
+
|
|
232
|
+
# Storage usage
|
|
233
|
+
research memory usage
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Web Search
|
|
237
|
+
|
|
238
|
+
During `research query`, the agent can search the web to supplement wiki answers with current information. This is enabled by default and uses DuckDuckGo (no API key required).
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
pip install 'aura-research[search]'
|
|
242
|
+
|
|
243
|
+
# Query with web search (default)
|
|
244
|
+
research query "latest advances in attention mechanisms"
|
|
245
|
+
|
|
246
|
+
# Query without web search
|
|
247
|
+
research query "what does our data show" --no-web
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Watch Mode
|
|
251
|
+
|
|
252
|
+
Auto-detect new files and re-ingest:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
pip install 'aura-research[watch]'
|
|
256
|
+
|
|
257
|
+
# Watch for changes (uses watchdog if installed, falls back to polling)
|
|
258
|
+
research ingest ./papers --watch
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Wiki Output
|
|
262
|
+
|
|
263
|
+
The compiled wiki lives in two places:
|
|
264
|
+
|
|
265
|
+
**`wiki.aura`** — The primary artifact. An `.aura` archive containing all wiki articles, optimized for agent RAG retrieval. Token-efficient — agents read only what's relevant.
|
|
266
|
+
|
|
267
|
+
**`wiki/`** — Markdown export for human browsing. Open in **Obsidian**, **VS Code**, **GitHub**, or any markdown viewer:
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
.research/
|
|
271
|
+
├── knowledge.aura ← Raw ingested documents
|
|
272
|
+
└── wiki.aura ← Compiled wiki (agent reads from here)
|
|
273
|
+
|
|
274
|
+
wiki/
|
|
275
|
+
├── _index.md ← Master index with links to all articles
|
|
276
|
+
├── _summary.md ← Executive summary of the knowledge base
|
|
277
|
+
├── concepts/ ← Cross-cutting concept articles
|
|
278
|
+
│ ├── attention.md
|
|
279
|
+
│ ├── tokenization.md
|
|
280
|
+
│ └── ...
|
|
281
|
+
├── sources/ ← Per-source summary articles
|
|
282
|
+
│ ├── vaswani2017.md
|
|
283
|
+
│ ├── devlin2019.md
|
|
284
|
+
│ └── ...
|
|
285
|
+
└── queries/ ← Saved Q&A responses
|
|
286
|
+
└── ...
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
After editing wiki articles (or having the agent write them), run `research build` to recompile `wiki.aura`.
|
|
290
|
+
|
|
291
|
+
## License
|
|
292
|
+
|
|
293
|
+
Apache License 2.0 — see [LICENSE](LICENSE).
|
|
294
|
+
|
|
295
|
+
## Links
|
|
296
|
+
|
|
297
|
+
- **Aura Core**: [github.com/Rtalabs-ai/aura-core](https://github.com/Rtalabs-ai/aura-core) — the universal context compiler
|
|
298
|
+
- **Rta Labs**: [rtalabs.org](https://rtalabs.org)
|