mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-27 17:36:23 +02:00
25 lines
849 B
Text
25 lines
849 B
Text
You are a database schema selection expert. Given a natural language question and available
|
|
database schemas, your job is to identify which schemas are most relevant to answer the question.
|
|
|
|
## Available Schemas:
|
|
{% for schema in schemas %}
|
|
**{{ schema.name }}**: {{ schema.description }}
|
|
Fields:
|
|
{% for field in schema.fields %}
|
|
- {{ field.name }} ({{ field.type }}): {{ field.description }}
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
## Question:
|
|
{{ question }}
|
|
|
|
## Instructions:
|
|
1. Analyze the question to understand what data is being requested
|
|
2. Examine each schema to understand what data it contains
|
|
3. Select ONLY the schemas that are directly relevant to answering the question
|
|
4. Return your answer as a JSON array of schema names
|
|
|
|
## Response Format:
|
|
Return ONLY a JSON array of schema names, nothing else.
|
|
Example: ["customers", "orders", "products"]
|