askme - Codebase RAG CLI
A Command Line Interface (CLI) tool for local Retrieval-Augmented Generation (RAG) over your codebase. It scans, indexes, and lets you chat with your project using local LLMs (via an OpenAI-compatible API) and a Qdrant vector database, returning context-aware answers with source citations.
The Python package is named askme and exposes a single askme console script.
Quickstart
Prerequisites
- Python 3.11+
- An OpenAI-compatible LLM and embeddings endpoint (e.g. Ollama)
- Qdrant vector database — either:
servermode: running Qdrant instance (Docker/remote)localmode: file-based store on disk, no server required (quick start)
1. Prepare models (example with Ollama)
ollama pull llama3
ollama pull embeddinggemma:300m
2. Install
# Using uv (recommended)
uv sync
uv run askme
# Or with pip
pip install .
askme
3. Run
Inside the codebase you want to query:
askme
On first launch, the tool guides you through configuration, scans the project, and builds the Qdrant collection. Subsequent runs reuse the existing index and only re-embed changed files.
Key Commands
| Command | Description |
|---|---|
/new |
Start a fresh conversation |
/history |
List, load, or delete saved sessions |
/reindex |
Clear collection and re-embed from scratch |
/index |
Show currently indexed files |
/multiline or /m |
Toggle persistent multiline input |
/paste |
One-shot multiline input |
/exit or /quit |
End the session |
Configuration
On first run inside a project directory, askme prompts for configuration and stores it in ./.askme/settings.json.
Conversation histories are stored under ./.askme/history/.
Global defaults can be placed in ~/.askme/settings.json (Linux/macOS) or %USERPROFILE%\.askme\settings.json
(Windows). Local project settings override global ones on key conflicts.
Key options:
qdrant_mode:server(remote/Docker) orlocal(file-based)qdrant_local_path: on-disk path for local mode (default./data/vector_store)llm_api_base: OpenAI-compatible LLM API base URLembedding_model: embedding model namechunk_size/chunk_overlap: chunking parametersfile_extensions/excluded: file and directory filtering
Documentation
Full documentation with setup details, storage schema, development guide, and contributing guidelines is available in /doc directory.
Metadata
Release files for askme-rag 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| askme_rag-0.1.8.tar.gz | 40.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| askme_rag-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.0 kB
Release files / askme_rag-0.1.8.tar.gz
| Download URL | askme_rag-0.1.8.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9938001a56699699e6a4b924b34ff9f83bcd24df62006935c0e8d63872348cda
|
|
BLAKE2b-256 checksum How to use checksums |
a2f11b19c518a646716ff33914bfec9fa7d89213010ceddd938a7528fdf5c0db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.16
|
Release files / askme_rag-0.1.8-py3-none-any.whl
| Download URL | askme_rag-0.1.8-py3-none-any.whl |
|---|---|
| Size | 27.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37e29dac4ac324259eceefe4d6ee4def0c5ac49df459feb83b4c68718bddbc52
|
|
BLAKE2b-256 checksum How to use checksums |
190b4c319c59983f5aace002db5d26b5db3ce932f928005ed55eb74c7f846287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.16
|