How second-charan/second-self works
SecondSelf turns notes, links, and files into a PARA-organized personal knowledge base, then adds semantic links, a visual graph, and cited conversational answers. The main workflow is capture → classify → link → export graph, with chat as a separate retrieval path over the wiki and embeddings. Source excerpts show the processing stages and dashboard behavior; README statements support the overall workflow and capabilities where implementation details were not sampled.
Main entry points: app.py Streamlit dashboard · ask.py RAG question answering · classify.py PARA classifier · link.py Semantic linker
Components 18
User experience
- Streamlit dashboard
app.py - Interactive graph
static/graph.html - RAG question answering
ask.py
Capture and organization
- Capture inputs
capture.py - Raw captures
- PARA classifier
classify.py - PARA wiki
wiki
Semantic knowledge
- Semantic linker
link.py - Embedding engine
lib/embeddings.py - Embedding cache
- Graph exporter
build_graph.py - Graph data
data/graph.json
AI services and persistence
- Domain models
lib/models.py - Filesystem storage
lib/storage.py - Processing index
data/index.json - Groq language model
lib/llm.py
Other components
- User
- Groq API
Connections 28
- User → Streamlit dashboard: uses
README.md - User → Capture inputs: submits inputs
README.md - Streamlit dashboard → Capture inputs: launches capture
app.py - Capture inputs → Raw captures: writes captures
README.md - Raw captures → PARA classifier: provides unprocessed items
README.md - PARA classifier → Groq language model: requests classification
classify.py - Groq language model → Groq API: calls
lib/llm.py - PARA classifier → PARA wiki: writes classified notes
classify.py - PARA classifier → Filesystem storage: reads captures, writes notes
classify.py - PARA classifier → Processing index: tracks processed items
classify.py - Streamlit dashboard → PARA classifier: runs processing
README.md - Streamlit dashboard → Semantic linker: runs processing
README.md - Streamlit dashboard → Graph exporter: runs processing
README.md - Semantic linker → PARA wiki: reads and updates links
link.py - Semantic linker → Embedding engine: embeds and compares notes
link.py - Semantic linker → Embedding cache: loads and saves vectors
- Graph exporter → PARA wiki: reads notes
build_graph.py - Graph exporter → Embedding cache: loads vectors
build_graph.py - Graph exporter → Graph data: exports graph
README.md - Streamlit dashboard → Graph data: loads graph
app.py - Streamlit dashboard → Interactive graph: embeds graph view
app.py - User → RAG question answering: asks questions
README.md - Streamlit dashboard → RAG question answering: offers chat
README.md - RAG question answering → PARA wiki: retrieves notes
ask.py - RAG question answering → Embedding cache: searches vectors
ask.py - RAG question answering → Embedding engine: embeds query
ask.py - RAG question answering → Groq language model: synthesizes answer
ask.py - Filesystem storage → Domain models: constructs wiki notes
lib/storage.py