Dataset query engine avatar

Dataset query engine

Try for free

No credit card required

Go to Store
Dataset query engine

Dataset query engine

jiri.spilka/dataset-query-engine
Try for free

No credit card required

Use natural language queries to retrieve results from an Apify dataset. This Actor provides a query engine that loads a dataset, executes SQL queries, and synthesizes results.

Text or SQL query

querystringRequired

Provide a query to specify the data to be retrieved from a dataset. The query can be in natural language or SQL format. For SQL, use the table name 'dataset'.

Examples (when your dataset contains data scraped from Google Maps):

  • Find restaurant names with reviews above 4 and with at least 100 reviews.
  • SELECT title, totalScore, reviewsCount FROM dataset;

Dataset ID

datasetIdstringRequired

Dataset ID to retrieve data from.

OpenAI model (OpenAI is the only supported provider now)

modelNameEnumOptional

Specify the LLM for SQL generation and query synthesis. Currently supports OpenAI models with varying capabilities and performance characteristics.

Value options:

"gpt-4o-mini": string"gpt-4o": string"o1": string"o1-mini": string"o3-mini": string

Default value of this property is "gpt-4o-mini"

LLM Provider API key (OpenAI is the only supported provider now)

llmProviderApiKeystringRequired

API key for accessing a Large Language Model.

Refresh dataset

refreshDatasetbooleanOptional

In standby mode, the dataset is loaded once and reused to optimize performance. This parameter allows reloading the dataset to ensure updated data is available.

Default value of this property is false

Limit number of dataset items used for query

limitintegerOptional

Maximum number of items to return. By default, there is no limit.

Number of items to skip from the start

offsetintegerOptional

Number of items that should be skipped at the start. The default value is 0.

Default value of this property is 0

Use AI Agent

useAgentbooleanOptional

When enabled, an AI Agent is used over a deterministic workflow. When to use an AI Agent? The agent can solve a broader range of tasks but can also be less reliable.

Default value of this property is true

Developer
Maintained by Apify

Actor Metrics

  • 0 monthly users

  • 0 No stars yet

  • Created in Feb 2025

  • Modified a day ago