mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-04 12:25:13 +02:00
parent
a8e437fc7f
commit
6c7af8789d
216 changed files with 31360 additions and 1611 deletions
25
trustgraph-flow/trustgraph/retrieval/nlp_query/pass1.txt
Normal file
25
trustgraph-flow/trustgraph/retrieval/nlp_query/pass1.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue