/v1/answers endpoint you can search the web with natural language and return AI‑powered answers and data in the JSON shape you want. This lets you ground your products on real-world data and sources, enrich data points or spreadsheets
- Ask a question or give AI a data point you want to enrich
- Optional: specify the JSON structure you want back
- Search, clean, validate and return the data it found on the Web
- Return sources used to generate the answer
- Handle uncertainty with
NOT_FOUNDvalues when data cannot be verified
Use cases
The answers endpoint can be used to:- Ground AI applications on real world data and facts
- Enrich spreadsheets and data points for Recruting, Finance, Consulting, and Sales
Installation
Usage
Ask a question and pass a JSON schema to guide the output. You can also not pass thejson parameter and the API will return a json object with the answer text inside the result field.
Response
Like other Olostep endpoints, you will receive aanswer object in response. The answer object has a few properties like id and result.
json parameter, is in response.result.json_content and the list of sources in response.result.sources. You can parse the stringified JSON to access the structured data.
json parameter, the API will return a json object with the answer text inside the result field.
Flexible json parameter
- Provide a JSON object with empty values as a schema, or a string describing the data you want.
- If the agent isn’t confident, it returns
NOT_FOUNDfor that field.
Python