askbase
Question answering for local knowledge bases with exact source citations.
Setup
uv tool install askbase
Set these environment variables before indexing or asking questions:
ASKBASE_MODELASKBASE_MODEL_API_KEYASKBASE_EMBEDDING_MODELASKBASE_EMBEDDING_MODEL_API_KEYASKBASE_EMBEDDING_BATCH_SIZE
Usage
Build a local SQLite index for a directory:
askbase index -d /path/to/docs
This writes .askbase/askbase.sqlite inside the target directory.
Ask a question against that index:
askbase ask -d /path/to/docs "What does the source say?"
Main Files
askbase/cli.py: command-line entry point.askbase/index.py: indexes source files into SQLite.askbase/extract.py: extracts text from Markdown, text, and PDF files.askbase/chunk.py: creates line-preserving chunks.askbase/db.py: stores documents, chunks, FTS rows, and embeddings.askbase/search.py: combines BM25 and embedding retrieval.askbase/answer.py: builds evidence prompts and validates citations.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
askbase-1.0.2.tar.gz
(11.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
askbase-1.0.2-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file askbase-1.0.2.tar.gz.
File metadata
- Download URL: askbase-1.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78838f3f57b8044135255af0352fb18198f3f251ac5c415d3b7a344e4a60be8
|
|
| MD5 |
8b7aefbaac6d3f827735f6cb2c07a614
|
|
| BLAKE2b-256 |
6e045f8eef46f74aec161e448f476186bd0ea04a71f58375d7fa25c2905a090a
|
File details
Details for the file askbase-1.0.2-py3-none-any.whl.
File metadata
- Download URL: askbase-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9107fe4965f985935b920cb0d118a3811da20629af0926871a4f128eebd8c2
|
|
| MD5 |
982d202bf72414f1d012e329ab9f63f3
|
|
| BLAKE2b-256 |
7c68256f69153d08c94e2c7c33e8242c9420f62aebf42f003c82737facaefc24
|