A hackable base for your markdown vault. It ingests your markdown files into a vector index, then uses retrieval to answer questions from your own notes.
Basement lets you:
- Ingest notes from
vault/into a vector index. - Chat against that indexed content to retrieve relevant context and answer questions.
This is useful for building a personal “second brain” that you can query in natural language.
- Node.js (recommended: current LTS)
- pnpm
- OpenAI API key
pnpm installRename .env.example to .env and paste in your OpenAI API key:
OPENAI_API_KEY="your_api_key_here"pnpm ingestThis reads markdown files from vault/ and writes/updates the index in vault-index/.
pnpm chatThen ask questions in natural language.
- Add or edit notes in
vault/ - Re-run
pnpm ingest - Query with
pnpm chat
vault-index/is generated data; you can usually rebuild it by runningpnpm ingestagain.- Keep secrets like API keys out of source control.