Skip to main content

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

Project description

JambaShrimp (jash)

Playful command-line interface for chatting with any PDF or crawled documentation site using AI21's Jamba2 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.2.tar.gz (21.9 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.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jambashrimp-0.1.2.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for jambashrimp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 782e07b9b2a8d6cf822526732379af7ae30084e22553af78ba70ed3227f2df41
MD5 cdbb5e7fcbc8dab1f8bf5b471465b664
BLAKE2b-256 4d4ea0ea32a97bf6e022f6999084be3e023315dbaba0ea02eccacae8f5c3ed84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jambashrimp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60859f765beaed235312a756195b57a82e7a6de874cfe8a90f974f45abb20cd4
MD5 fa4757b842078f80cf343c6d7fd152a5
BLAKE2b-256 e76b9bf32810fd69c5cea2da3e76145547ee3ce82130c12673a1ffad24213d33

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