Skip to main content

JambaShrimp (jash): playful CLI to chat with PDFs or crawled docs using Jamba Reasoning 3B

Project description

JambaShrimp (jash)

Playful command-line interface for chatting with any PDF or crawled documentation site using AI21's Jamba Reasoning 3B (GGUF build). The CLI can:

  • load entire PDFs directly into the prompt for ad-hoc question answering
  • crawl documentation sites (recursively) and ground answers with a local FAISS index (RAG)
  • cache indexes per URL so you can come back later—even offline—and keep chatting

The product name is JambaShrimp, and its CLI entry point is the shortened jash.

Requirements

  • uv for environment management
  • macOS with Metal (recommended) or CPU fallback
  • Optional HF_TOKEN environment variable if your Hugging Face account is required for downloads

Install with pipx

Publishing the package (named jambashrimp) to PyPI lets anyone install the CLI with an isolated virtual environment:

pipx install jambashrimp

# run it
jash --help

# download the sample PDF + model
jash-setup

While developing locally you can point pipx directly at the repo:

pipx install --spec . jambashrimp

Assets are stored under ~/.jambashrimp/assets when the package is installed globally. You can override --model/--pdf if you keep files elsewhere.

Dev Setup

uv sync
uv run scripts/setup_assets.py     # downloads the default OECD PDF + GGUF model
uv run python -m jamba_cli.cli

Pass --pdf or --model to point at different files. Run uv run jamba-chat --help to see all knobs (context window, temperature, GPU layers, etc.).

CLI Shortcuts

  • /quit or /exit – leave the chat
  • /history – print the running conversation
  • /reload – reload the PDF from disk (useful when editing)
  • /help – show the command list

By default the CLI hides <think> traces but still streams answers token-by-token. Useful switches:

  • --history-turns N – keep N previous Q/A pairs inside the prompt (defaults to 0 to maximize context for the document itself).
  • --cache-prompt – reuse the KV cache between turns if you really need faster follow ups. Leave it off (default) if you encounter llama_decode returned -1; clearing the cache between turns prevents those context overflows.
  • --show-thinking / --no-stream – reveal hidden reasoning traces or print whole answers at once.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jambashrimp-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jambashrimp-0.1.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file jambashrimp-0.1.0.tar.gz.

File metadata

  • Download URL: jambashrimp-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for jambashrimp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4ff3cc5cfe7601bacab2aceb71cbfeba76c8abe2d93cb817fac5111eaa0c935
MD5 158adb0db8dc831e1cb20257ad5f4887
BLAKE2b-256 ac85d545e3831392ec298ced7ebe9385974a997a77eb181f9c83ca88a9005ee0

See more details on using hashes here.

File details

Details for the file jambashrimp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jambashrimp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for jambashrimp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51871952bbf55565fad293333df23b94a916261cdec732fe5c57d6f2e6787aea
MD5 e3ece3364fe97e7afa51101c0edd6094
BLAKE2b-256 38ec7a0ffc75a2b7bdbda7f4db3a921ffa10f021830b3dcdeb05f8203c77c5dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page