Interactively explore a codebase with an LLM
Project description
explore
Interactively explore a codebase with an LLM
explore
is a script to interactively explore a codebase by chatting with an LLM. It uses retrieval-augmented generation via chromadb
to provide the LLM with relevant source code from the codebase.
explore
uses OpenAI models by default, so you'll need an OpenAI API key.
Installation
explore
is available on PyPI. I recommend installing it with pipx
:
pipx install explore-cli
export OPENAI_API_KEY=<your OpenAI API key>
explore <directory>
Alternatively, you can clone this repository and run the script with poetry
:
poetry install
poetry build
export OPENAI_API_KEY=<your OpenAI API key>
poetry run explore <directory>
Usage
usage: explore [-h] [-l LLM] [-m MODEL] directory
Interactively explore a codebase with an LLM.
positional arguments:
directory The directory to index and explore.
options:
-h, --help show this help message and exit
-l LLM, --llm LLM The LLM backend, one of openai or ollama. Default: openai
-m MODEL, --model MODEL
The LLM model to use. Default: gpt-4o-mini for openai or mistral-nemo:latest for ollama
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
explore_cli-0.3.0.tar.gz
(11.0 kB
view details)
Built Distribution
File details
Details for the file explore_cli-0.3.0.tar.gz
.
File metadata
- Download URL: explore_cli-0.3.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 901b8579491a585b4e7b55c93ddee1771240e801633cba8481546de2b41b2ecc |
|
MD5 | 237f6a9fad33119541ab9fd1ad0d382e |
|
BLAKE2b-256 | ded27b4ccd65d0e7eb02c15b3238c763f363634df19ba98fd3f5076fd940b443 |
File details
Details for the file explore_cli-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: explore_cli-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32448278df5e4f03f6e799bd8899e118a8b2c2e9cd321f6e711d1cc4f8e3c3bf |
|
MD5 | 5c3af40126aab4c846884cb24f71da4b |
|
BLAKE2b-256 | f67081d196be29a91a4def5d9ac6c87c5df494a9f7fc008d745046b2cfb86bbc |