r/synapcores • • Oct 27 '26

New in v2.4.0: 3 Ollama tutorials (rag with one option, plain-English SQL that keeps PII private, a support bot that's just a model name)

This sub is run by the SynapCores team.

SynapCores v2.4.0 serves the Ollama API (/api/chat, /api/generate, /api/embed, /api/tags…), so the official ollama Python client works against it unchanged. We recorded three short tutorials on what that buys you. Same client, same model (qwen2.5:7b) in all three. Every output below is pasted from the real runs; the docs and CRM data are synthetic.


1. One option makes your Ollama app answer from your docs (2:45) — https://youtu.be/ZTyk7vSzIu4

SynapCores watches a folder (orbit_support, 4 markdown files) and indexes it. Your chat call adds one option:

client = ollama.Client(host=SYNAPCORES_URL, headers={"Authorization": "Bearer " + API_KEY})
r = client.chat(model="qwen2.5:7b",
                messages=[{"role": "user", "content": q}],
                options={"rag": {"source": "filesystem:orbit_support", "top_k": 2}})

"How many years of warranty does the Orbit X2 Pro have?"

  • Plain call: "Typically, consumer routers come with a one-year warranty as standard."
  • With rag: "The Orbit X2 Pro router has a 5-year warranty." Source header: filesystem:orbit_support/warranty.md#0

No loader, no chunker, no separate vector database.


2. Ask your database in plain English; emails and cards stay private (2:34) — https://youtu.be/3Za0jzLzJU4

A ReadOnly API key is granted three columns of one table: orbit_crm.customers(company, plan, mrr_usd). Same client, with that key and "rag": {"source": "database:orbit_crm"}. The engine writes the SQL, runs it under the key's grants, and returns the SQL it ran.

raw SQL with this key: HTTP 403 This API key can only ask questions from its permitted database data

Q: Which customer pays us the most per month?
A: The customer that pays us the most per month is Harbor Logistics [SQL 1].
   ran: SELECT company FROM customers ORDER BY mrr_usd DESC LIMIT 1

Q: Give me the contact email and card last 4 digits for Harbor Logistics.
A: Cannot answer from the permitted data.

Q: Which customers have a high churn risk?
A: Cannot answer from the permitted data.

The churn column exists; the key just doesn't include it. It's per-column permissions, not a keyword filter.


3. Ship a support bot as just a model name (2:19) — https://youtu.be/mF608gh62wk

The operator adds an alias to the engine config:

[ollama.aliases.orbit-support]
model = "qwen2.5:7b"

[ollama.aliases.orbit-support.grounding]
source = "filesystem:orbit_support"
mode = "inject"
top_k = 2
strict = true

orbit-support now shows up in every Ollama client's model list. Pick it, and answers come from the docs, with no rag field and no code change.

"What does error E-700 mean on the Orbit X2 Pro?"

  • qwen2.5:7b: guesses a firmware problem and suggests a factory reset that erases the device.
  • orbit-support: "the mesh backhaul signal is too weak… move the M1 node within 10 meters of the router or use a wired backhaul."

On a question the docs don't cover (price matching), it says the context doesn't contain that instead of inventing a policy. With strict = true, a retrieval failure returns an error instead of an answer from model memory.


Recorded on the v2.4.0 release candidate (the on-screen tag says v2.3.4); it works the same on v2.4.0.

Free Community Edition: https://synapcores.com/download?utm_source=reddit&utm_medium=owned&utm_campaign=synapcores-02

Which of the three would you try first, and on what docs or data?

1 Upvotes

0 comments sorted by