A cargo workspace which contains bleep, the Rust package which powers bloop's search and code navigation. Note that it is currently not possible to run conversational GPT-4 search from the command line (we're working on this). Calls to the /api/answer endpoint will return an error.
Dependencies:
rustonnxruntime
cargo build -p bleep --releaseTo index and search all the repos in a directory (say, /path/to/source) run (from this repo's root dir):
$ cargo run -p bleep --release -- \
--source-dir /path/to/dirbleep will recursively scan /path/to/source for repositories and start indexing them. It will also start a webserver. The location of the search index can be specified with the --index-dir parameter. By default, it is stored in the system cache.
bleep periodically checks for changes to local and remote repos and automatically reindexes if a change is detected. Indexing and polling can be disabled by passing the --disable-background and --disable-fsevents flags.
The log level can be customized by setting the BLOOP_LOG env var.
To sync GitHub repos, first create a GitHub Client ID. Then call bleep with the --github-client-id <token> parameter.
With the server running you can start searching your code with regex search:
$ curl -v "localhost:7878/api/q?q=anyhow%20path:webserver%20repo:bloop" | jq
You can check which repos are indexed and their status:
$ curl -v "localhost:7878/api/repos/indexed" | jq
Run this to see the full list of arguments that bleep accepts:
cargo run -p bleep -- --help