Developers
Sign inGet API keys
API reference/Intelligence

Search

SearchService finds catalog items, vendors and expenses by what they mean as well as how they are spelled. See docs/adr/0057-semantic-search.md.

Every record's words are turned into a vector by the embeddings provider (Voyage AI) in the background; a search embeds the query and takes the nearest records, the closest by spelling (trigrams), and an exact SKU or barcode, merged by rank. With no provider, or AI off for the business, it is spelling alone. Customers are never sent to the provider.

holygrail.search.v1.SearchService1 methodsinsights.read · insights.write

Types

The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.

SearchRequest

holygrail.search.v1.SearchRequest

querystring
typesstring[]

item, vendor or expense; empty for all the caller may see. Vendors need inventory.manage or finance.manage, expenses finance.manage.

limitinteger

At most this many results; 0 for 20, at most 50.

SearchResponse

holygrail.search.v1.SearchResponse

byMeaningbooleanby_meaning

Whether meaning was searched, or spelling alone; note says why not.

notestring

SearchResult

holygrail.search.v1.SearchResult

typestring

item, vendor or expense.

idstring
titlestring
subtitlestring
matchstring

exact (SKU or barcode), meaning, or words.

variantIdstringvariant_id

For an item, its first variant.

amountint64 string

For an item, its lowest price; for an expense, its amount.

Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.