Skip to main content

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:
    • server mode: running Qdrant instance (Docker/remote)
    • local mode: 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 ./.cfg/settings.json. Conversation histories are stored under ./.cfg/history/.

Key options:

  • qdrant_mode: server (remote/Docker) or local (file-based)
  • qdrant_local_path: on-disk path for local mode (default ./data/vector_store)
  • llm_api_base: OpenAI-compatible LLM API base URL
  • embedding_model: embedding model name
  • chunk_size / chunk_overlap: chunking parameters
  • file_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.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 askme-rag 0.1.2
File Size Uploaded
askme_rag-0.1.2.tar.gz 33.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for askme-rag 0.1.2
File Interpreter ABI Platform
askme_rag-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 58.4 kB

Release files / askme_rag-0.1.2.tar.gz

Download URL askme_rag-0.1.2.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f9f5f2c1e46446f52d904d6fa617eee5403a8f528c2ca004dfc74872ae4a7b54
BLAKE2b-256 checksum
How to use checksums
875ec8c31269046cf84bca4fd1e6781958ae1c27dbd5161213ab5dc4442afb7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.6

Release files / askme_rag-0.1.2-py3-none-any.whl

Download URL askme_rag-0.1.2-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c267ec38b1b0f40b37358535250d2e6362ec1d13c23d8660e7c7a7e77ac8061
BLAKE2b-256 checksum
How to use checksums
6818109809b679035bdc40b3a8a3b50f5706222db85e42bb4f417b39ba660f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.6

Release history Release notifications | RSS feed

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

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