Skip to main content

# aka — Autonomous Knowledge Acquisition

A minimal, modular library for **autonomous knowledge acquisition**: a frozen

LLM is used as an environment, while a lightweight outer learner decides what

to ask next, extracts concepts from the answers, and builds a knowledge graph

whose structural gaps drive the next round of questions.

The design follows the "outer layer" architecture validated in

[Dream-Layer](https://github.com/aggarwamnew/dream-layer): a frozen LLM plus a

separate learning loop that observes, forms concepts, and selects questioning

strategies. The key empirical finding it operationalizes is that

**feedback-driven questioning produces substantially denser knowledge graphs

than structure-only or random baselines**, and that keyword accumulation

without semantic representation fails to build real connections.

---

## What it does

Given a seed corpus and any chat-completion LLM, aka will:

1. Extract semantic features from text and promote frequently-seen ones into

stable **concepts** (Module 1).

2. Build an undirected **knowledge graph** where edges encode shared features,

weighted by Jaccard similarity (Module 2).

3. Read structural gaps from that graph and turn them into LLM-ready

**question prompts** using five fixed strategies (Module 3).

4. Choose which strategy to fire next using **Discounted Thompson Sampling**,

rewarded by the information gain each answer produces in the graph

(Module 4).

5. Run the whole thing against a **cached, retried, provider-neutral LLM**

wrapper (Module 5a), with **atomic checkpointing** so runs resume cleanly

(Module 5b).

The loop in one line:

observe(text) -> ConceptLayer (features & concepts) -> KnowledgeGraph (GraphDelta & Jaccard edges) -> QuestionGenerator (5 strategies) -> StrategySelector (Discounted Thompson Sampling) -> repeat.

Metadata

Release files for aka-kg 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aka-kg 0.1.0
File Size Uploaded Provenance Actions
aka_kg-0.1.0.tar.gz 22.8 kB Without provenance Details for aka_kg-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aka-kg 0.1.0
File Interpreter ABI Platform Actions
aka_kg-0.1.0-py3-none-any.whl Python 3 none any Details for aka_kg-0.1.0-py3-none-any.whl

Total release size: 40.8 kB

Release files / aka_kg-0.1.0.tar.gz

Download URL aka_kg-0.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d8794f04186e49dcdf1ce6ea136c5914696859c5a265f79e7669e63ba585caca
BLAKE2b-256 checksum
How to use checksums
cf1ecd9ea200f8c8679cd8634ce13fd2de7ff2f4c561ade4222f04e7730a90bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / aka_kg-0.1.0-py3-none-any.whl

Download URL aka_kg-0.1.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f39f9a25181bb8835a06afc115cb58957ec960ea74b0cb4664cda962cb8f6fcf
BLAKE2b-256 checksum
How to use checksums
6d1598d5662afe6ee372d1304f53e0ff2bc1330e80fe111bbda029c6922652f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for aka-kg 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page