MCPcopy Create free account
hub / github.com/antvis/AVA / constructor

Method constructor

src/query/clickhouse-sql.ts:18–18  ·  view source on GitHub ↗
(private readonly llmConfig: LLMConfig)

Source from the content-addressed store, hash-verified

16 For UNION, explicitly choose ALL or DISTINCT and align column order and types. To order or limit the combined UNION result, put the UNION in a subquery and apply ORDER BY or LIMIT to the outer SELECT.`;
17
18 constructor(private readonly llmConfig: LLMConfig) {}
19
20 async getDSL(query: string, dataModel: DataModel, signal?: AbortSignal): Promise<TranslationResult> {
21 const prompt = `You are a ClickHouse SQL expert. Given the following data model and user query, generate a SQL query to answer the question.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected