-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
2,590 additions
and
3,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,52 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright contributors to the kepler.gl project | ||
|
||
export const TASK_LIST = '1. Change the basemap style.\n2. Load data from url.'; | ||
export const TASK_LIST = | ||
'1. Show dataset/layer/variable info.\n2. Change the basemap style.\n3. Load data from url.\n4. Create a map layer using variable.\n5. Filter the data of a variable.\n6. Create a histogram.'; | ||
|
||
export const WELCOME_MESSAGE = `Hi, I am Kepler.gl AI Assistant!\nHere are some tasks I can help you with:\n\n${TASK_LIST}`; | ||
|
||
export const INSTRUCTIONS = `You are a helpful assistant that can answer questions and help with tasks. If you can use tools, please use them. If the parameters of functions are not provided, please ask user to specify them. Otherwise, just answer the question with plain textdirectly. Do not include any programming code in your response. You can do the following tasks: ${TASK_LIST}`; | ||
export const INSTRUCTIONS = `You are a Kepler.gl AI Assistant that can answer questions and help with tasks of mapping and spatial data analysis. | ||
When responding to user queries: | ||
1. Analyze if the task requires one or multiple function calls | ||
2. For each required function: | ||
- Identify the appropriate function to call | ||
- Determine all required parameters | ||
- If parameters are missing, ask the user to provide them | ||
- Execute functions in a sequential order | ||
You can execute multiple functions to complete complex tasks, but execute them one at a time in a logical sequence. Always validate the success of each function call before proceeding to the next one. | ||
Remember to: | ||
- Return function calls in a structured format that can be parsed and executed | ||
- Wait for confirmation of each function's completion before proceeding | ||
- Prompt user to proceed to the next function if needed | ||
- Provide clear feedback about what action is being taken | ||
- Do not include raw programming code in responses to users`; | ||
|
||
export const PROMPT_IDEAS = [ | ||
{ | ||
title: 'Show Metadata ', | ||
description: 'list dataset info' | ||
}, | ||
{ | ||
title: 'Change Basemap ', | ||
description: 'use Positron style' | ||
}, | ||
{ | ||
title: 'Load Data', | ||
description: 'load data from https://geodacenter.github.io/data-and-lab/data/lehd.geojson' | ||
}, | ||
{ | ||
title: 'Create a Map Layer', | ||
description: 'update its color inspired by Van Gogh Starry Night' | ||
}, | ||
{ | ||
title: 'Data Insight', | ||
description: 'create a histogram' | ||
} | ||
]; | ||
|
||
export const ASSISTANT_NAME = 'kepler-gl-ai-assistant'; | ||
|
||
export const ASSISTANT_DESCRIPTION = 'A Kepler.gl AI Assistant'; | ||
|
||
export const ASSISTANT_VERSION = '0.0.1-1'; | ||
export const ASSISTANT_VERSION = '0.0.1-9'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.