How biditdas18/asterism works
Asterism is a local-first personal knowledge graph with a Streamlit chat interface, CLI, and constellation visualization. In the main workflow, a person chats with the app; the assistant can inject weighted graph context, call an LLM, extract triples, and update the local graph. Conversation exports can also be crawled into the graph, whose weights and contents evolve through traversal and decay. The repository additionally contains a substantial evaluation campaign. Some runtime wiring is inferred only from README statements or SOURCE INDEX references; those limits are reflected by omitted or dashed edges.
Main entry points: llm.py Assistant · db.py SQLite graph · app.py Chat app · poc_compare.py Initial PoC
Components 24
User interfaces
- Chat app
app.py - CLI
cli.py - Constellation renderer
render.py
Graph runtime
- Assistant
llm.py - Triple extractor
extractor.py - Graph queries
graph.py - Decay scheduler
decay_scheduler.py - Export crawler
crawler.py
Local data
- Configuration
config.py - SQLite graph
db.py
Evaluation research
- Latency benchmark
research/benchmark_latency.py - Initial PoC
research/poc_compare.py - PoC v2
research/poc_compare_v2.py - Graph two seed
research/seed_graph_2.py - N=100 campaign
research/n100_campaign.py - Query generation
research/generate_queries_n100.py - Graph one analysis
research/correctness_analysis.py - Graph two analysis
research/correctness_analysis_graph2.py - Follow-up intervals
research/followup_ci.py - Paper tables
research/make_paper_tables.py - N=100 analysis
research/n100_analysis.py - N=100 tables
research/n100_tables.py
Other components
- Person
- LLM provider
Connections 43
- Person → Chat app: chats with
README.md - Person → CLI: runs commands
README.md - Chat app → Assistant: requests response
app.py - Assistant → LLM provider: calls model
README.md - Assistant → Triple extractor: extracts triples
llm.py - Assistant → SQLite graph: reads and updates
llm.py - Assistant → Graph queries: loads context
llm.py - Chat app → SQLite graph: edits graph
app.py - Chat app → Graph queries: summarizes graph
app.py - Chat app → Constellation renderer: renders constellation
app.py - Constellation renderer → Graph queries: gets graph summary
render.py - CLI → Export crawler: starts ingestion
README.md - Export crawler → SQLite graph: writes extracted graph
crawler.py - Export crawler → Constellation renderer: opens visualization
crawler.py - Decay scheduler → SQLite graph: decays graph
decay_scheduler.py - Graph queries → SQLite graph: reads and strengthens
graph.py - Configuration → SQLite graph: selects database
config.py - Assistant → Configuration: loads settings
llm.py - Chat app → Configuration: checks setup
app.py - Latency benchmark → Assistant: benchmarks calls
research/benchmark_latency.py - Latency benchmark → SQLite graph: uses isolated graph
research/benchmark_latency.py - Initial PoC → Assistant: compares injection
research/poc_compare.py - Initial PoC → SQLite graph: seeds graph
research/poc_compare.py - PoC v2 → Initial PoC: reuses evaluation
research/poc_compare_v2.py - PoC v2 → Assistant: compares injection
research/poc_compare_v2.py - Graph two seed → SQLite graph: seeds graph
research/seed_graph_2.py - N=100 campaign → Assistant: runs model cells
research/n100_campaign.py - N=100 campaign → PoC v2: uses scorer
research/n100_campaign.py - N=100 campaign → Graph two seed: uses graph seed
research/n100_campaign.py - N=100 campaign → SQLite graph: seeds evaluation DB
research/n100_campaign.py - Query generation → Initial PoC: uses query material
research/generate_queries_n100.py - Query generation → Graph two seed: uses graph seed
research/generate_queries_n100.py - Graph one analysis → Initial PoC: reads evaluation
research/correctness_analysis.py - Graph one analysis → PoC v2: reads evaluation
research/correctness_analysis.py - Graph two analysis → Graph two seed: uses graph labels
research/correctness_analysis_graph2.py - Graph two analysis → PoC v2: reads evaluation
research/correctness_analysis_graph2.py - Follow-up intervals → Graph one analysis: aggregates results
research/followup_ci.py - Follow-up intervals → Graph two analysis: aggregates results
research/followup_ci.py - Paper tables → Follow-up intervals: formats intervals
research/make_paper_tables.py - N=100 analysis → Graph one analysis: analyzes results
research/n100_analysis.py - N=100 analysis → Graph two analysis: analyzes results
research/n100_analysis.py - N=100 tables → Graph one analysis: uses analysis
research/n100_tables.py - N=100 tables → Graph two analysis: uses analysis
research/n100_tables.py