Skip to main content

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_MODEL
  • ASKBASE_MODEL_API_KEY
  • ASKBASE_EMBEDDING_MODEL
  • ASKBASE_EMBEDDING_MODEL_API_KEY
  • ASKBASE_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.

Metadata

Release files for askbase 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for askbase 1.0.2
File Size Uploaded
askbase-1.0.2.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for askbase 1.0.2
File Interpreter ABI Platform
askbase-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / askbase-1.0.2.tar.gz

Download URL askbase-1.0.2.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c78838f3f57b8044135255af0352fb18198f3f251ac5c415d3b7a344e4a60be8
BLAKE2b-256 checksum
How to use checksums
6e045f8eef46f74aec161e448f476186bd0ea04a71f58375d7fa25c2905a090a
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / askbase-1.0.2-py3-none-any.whl

Download URL askbase-1.0.2-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f9107fe4965f985935b920cb0d118a3811da20629af0926871a4f128eebd8c2
BLAKE2b-256 checksum
How to use checksums
7c68256f69153d08c94e2c7c33e8242c9420f62aebf42f003c82737facaefc24
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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