Skip to main content
Parse runs the first stage of a search, interpretation, without running the search. Send a sentence. You get back the structured filters and criteria Avina would search with, any assumptions it made, and a request body you can send to a search endpoint unchanged. Parse spends no credits.
There is one Parse endpoint for each kind of search:

Why use it

Show your users what was understood

Display the filters before the search runs, so users can correct a wrong reading before it costs anything.

Build a filter interface on plain language

Let users type a sentence, then adjust the structured result with dropdowns and ranges.

Make a query repeatable

Parse once, store search_request, and run exactly the same structured search every week.

Catch what cannot be searched

Find requirements that cannot be checked before you start a search that would stop because of them.

Reading the response

object | null
The parts of the query that map to structured fields. null when none do.
object[]
The parts that will be checked against evidence, each with text and kind.
object[]
Ambiguous wording and how it was read. Each has the original text, the reading that was assumed, and alternatives. Assumptions do not block a search. For example, “recently funded” is read as funded within the last 90 days:
string[]
Requirements no public source can confirm, quoted from the query. A search cannot run while there are any.
object[]
Problems validating the filters the query was read as.
object | null
A ready request body. null when unsupported_criteria or errors is not empty, or the query gave nothing to search on.
1

Parse the query

Send the user’s text to the parse endpoint.
2

Check it can run

If search_request is null, show unsupported_criteria and errors and ask the user to reword.
3

Confirm or edit

Show assumptions. Let the user edit filters and criteria if you have a UI for it.
4

Search

Send search_request, plus your own limit and max_credits, to the search endpoint.
parse_then_search.py

How language is read

These conventions help when you write queries or show interpretations to users.
You do not have to call Parse before searching. Sending query to a search endpoint interprets it the same way, and the search’s status shows the interpretation. Use Parse when you want to see or change the interpretation before any search runs.

Next steps

Parse a company query

Endpoint reference.

Filter reference

The fields Parse can produce.