Home / Engine / Use cases

Find every contract that says exactly this

“Which customer contracts have a 60-day termination notice?” is a question about exact words, and the answer has to be complete. StackGrep Engine finds every document that matches, quotes the line, and counts them, so your agent (or your lawyer) can trust the list.

Join the waitlist See the docs

Why the usual way falls short

  • Keyword search in a document system stops at the first page of results
  • Semantic search can't promise it found all of them
  • Reading 4,000 PDFs by hand is not a plan

How it looks

search_collection({ collection: "contracts", query: "([6-9][0-9]|sixty) days.{0,40}(notice|terminat)", regex: true, filter: "type:msa" })

count_collection({ collection: "contracts", query: "limitation of liability", filter: "region:eu" })

What your agent asks, and what it calls

“Which MSAs have a 60-day notice period?”search_collection(query: "60 days' notice", filter: "type:msa")
“How many EU contracts cap liability?”count_collection(query: "limitation of liability", filter: "region:eu")
“Show me Initech's renewal terms”get_document(id: "initech-msa-2025")

Questions

Do you read PDFs?

We index text. Convert PDFs to text first (most document pipelines already do) and push the text with the PDF's id; your agent can link back to the original.

Can I filter by customer, region or type?

Yes. Every document can carry metadata, and searches filter on it: type:msa region:eu customer:globex.

Who can see the documents?

Only your organization's API keys and connected agents. Collections are separate per organization, and deleting one removes its documents.

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