Canner / WrenAI

🚀 An open-source SQL AI (Text-to-SQL) Agent that empowers data, product teams to chat with their data. 🤘
https://getwren.ai/oss
GNU Affero General Public License v3.0
2.04k stars 211 forks source link

feature(wren-ai-service): implement Engine Adapter to validate queries #440

Closed paopa closed 4 months ago

paopa commented 4 months ago

This PR aims to decouple the query engine, allowing us to access the Ibis engine in development mode to validate the queries.

Env setup

# .env.dev file

WREN_IBIS_ENDPOINT=http://localhost:8000
WREN_IBIS_SOURCE=bigquery
WREN_IBIS_MANIFEST= # this is a base64 encoded string of the MDL
WREN_IBIS_CONNECTION_INFO={"project_id": "", "dataset_id": "", "credentials":""}