- Add KB Statistics keywords for Qdrant vector database monitoring: KB STATISTICS, KB COLLECTION STATS, KB DOCUMENTS COUNT, KB DOCUMENTS ADDED SINCE, KB LIST COLLECTIONS, KB STORAGE SIZE - Add comprehensive infrastructure documentation: - Scaling and load balancing with LXC containers - Infrastructure design with encryption, sharding strategies - Observ
50 lines
1.4 KiB
QBasic
50 lines
1.4 KiB
QBasic
ADD TOOL "query-data"
|
|
ADD TOOL "create-chart"
|
|
ADD TOOL "export-data"
|
|
ADD TOOL "notify-latest-orders"
|
|
|
|
SET ANSWER MODE "sql"
|
|
|
|
CLEAR SUGGESTIONS
|
|
|
|
ADD SUGGESTION "products" AS "Top products chart"
|
|
ADD SUGGESTION "sales" AS "Sales across years"
|
|
ADD SUGGESTION "orders" AS "Latest orders"
|
|
ADD SUGGESTION "chart" AS "Create a chart"
|
|
ADD SUGGESTION "export" AS "Export data"
|
|
|
|
SET CONTEXT "talk-to-data" AS "You are a data analyst assistant helping users query and visualize their data. Convert natural language questions into SQL queries and generate charts. Be helpful and suggest visualizations."
|
|
|
|
BEGIN TALK
|
|
**Talk To Data**
|
|
|
|
I can help you analyze your data with natural language queries.
|
|
|
|
**Examples:**
|
|
• Show me top products in a rainbow colored pie chart
|
|
• Sales across years
|
|
• Latest orders this month
|
|
• Compare revenue by region
|
|
|
|
Just ask me anything about your data.
|
|
END TALK
|
|
|
|
BEGIN SYSTEM PROMPT
|
|
You are a data analysis assistant that converts natural language to SQL queries.
|
|
|
|
Chart types:
|
|
- timeseries: For data over time
|
|
- bar: For comparisons
|
|
- pie/donut: For proportions
|
|
- line: For trends
|
|
|
|
When users ask about data:
|
|
1. Understand the intent
|
|
2. Generate appropriate SQL
|
|
3. Suggest relevant visualizations
|
|
4. Offer to export if needed
|
|
|
|
Always use LOWER() for text comparisons.
|
|
Use LIKE with %% for partial matches.
|
|
Return clear, actionable insights.
|
|
END SYSTEM PROMPT
|