Replies: 1 comment
|
Hi Sure. It will be integrated soon enough. Thanks for the Nudge! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The
.askpipeline currently runs three local tiers (rules parser → Qwen 0.5B → Qwen 1.5B). This works great for privacy-sensitive environments, but the homepage itself acknowledges the tradeoff: "For top-tier accuracy on complex joins, a cloud model behind your own API key still beats us."There's no way to opt in to a stronger model when privacy constraints allow it — even a locally-hosted one behind an OpenAI-compatible server (vLLM, Ollama, llama-server, LM Studio, etc.).
Proposal
Add an optional environment variable (e.g.
SLOTHDB_ASK_API_URL) that points.askat any OpenAI-compatible/v1/chat/completionsendpoint. When set, the router would send the existing system prompt + schema context to the external model instead of the local Qwen tiers. The rules parser (Tier 1) would still run first — only model-dependent queries would go to the API.A second variable like
SLOTHDB_ASK_API_KEYcould carry the bearer token, andSLOTHDB_ASK_API_MODELcould let users pick the model name to send in the request body.Why OpenAI-compatible?
It's the de facto standard. A single implementation covers OpenAI, Azure OpenAI, Anthropic (via proxy), Ollama, vLLM, llama-server, LM Studio, Together, Groq, and others. Users who want to stay fully local can point it at
http://localhost:11434/v1(Ollama) and still never hit the internet.Suggested behavior
SLOTHDB_ASK_API_URLunset → current behavior, no changeSLOTHDB_ASK_API_URLset → skip Qwen tiers, send to the API after rules parser missSLOTHDB_ASK_CONFIRM=1still works — SQL is printed and gated before execution regardless of sourceSLOTHDB_ASK_MODEL=ONbuild flag remains independent — users could even have both compiled in and toggle via the env varThis would keep the zero-dependency default intact while letting power users swap in a stronger model when they choose to.
All reactions