Home / Engine / Use cases

RAG without embeddings

Retrieval doesn't have to mean vectors. Coding agents proved it: they grep, read what they found, and grep again. StackGrep Engine gives your LLM the same loop over your documents, with no embedding model, chunking strategy or re-indexing job to maintain.

Join the waitlist See the docs

Why the usual way falls short

  • Every document change means re-chunking and re-embedding
  • Similarity search misses exact identifiers, SKUs, error codes and names
  • You can't tell what a vector search left out, so answers are hard to check

How it looks

# your LLM's retrieval step, as a tool call
search_collection({ collection: "kb", query: "ERR_TLS_CERT_ALTNAME_INVALID" })

# or a pattern, when the shape matters more than the words
search_collection({ collection: "kb", query: "v[0-9]+\\.[0-9]+ (removed|deprecated)", regex: true })

What your agent asks, and what it calls

“Why does checkout fail with ERR_TLS_CERT_ALTNAME_INVALID?”search_collection(query: "ERR_TLS_CERT_ALTNAME_INVALID")
“What did we deprecate in version 4?”search_collection(query: "v4\.[0-9]+ deprecated", regex: true)
“Read the runbook it points to”get_document(id: "runbooks/tls.md")

Questions

Is retrieval quality worse without embeddings?

For lookups by name, ID, code or phrase it's better: an exact match is either there or not, and the agent can check it. For “find me something like this” questions, vectors still help, and the two work well together.

What about synonyms and paraphrases?

Let the model do it: an LLM is good at trying “cancel”, then “cancellation”, then “terminate”. Each search costs milliseconds, so a few in a row is still fast.

How fresh is the index?

A pushed document is durable when the API answers and searchable within seconds (or before the answer, with wait=true). A synced bucket is checked every few minutes and on demand.

More use cases

Give your agents exact search

StackGrep Engine is onboarding teams from the waitlist. Bring your documents or your bucket.

Join the waitlist Read the docs