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.1

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.1
File Size Uploaded Provenance Actions
aka_kg-0.1.1.tar.gz 22.1 kB With provenance Details for aka_kg-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.9 kB

Release files / aka_kg-0.1.1.tar.gz

Download URL aka_kg-0.1.1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
68d222a27d8f11ae91e6da87a8afda092dfc400b2f02b6e6dc17bcf997f9a384
BLAKE2b-256 checksum
How to use checksums
5b4243791c6dc574b294b35f780b240156adacaede572f94dc5912943f744e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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

Download URL aka_kg-0.1.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ffa2615d5a5f3e03ce2f014c65a6390edc140eaaef22ce4cfdcae28ef359653
BLAKE2b-256 checksum
How to use checksums
72daaaeb6411ce484c7fcd8387797d059676f9c8a5f9cd09bfc093cc32fc34b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for aka-kg 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aka_kg-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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.1 This release

2 release files Full 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