kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
32 lines (30 loc) • 7.33 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WELCOME_MESSAGE = exports.TASK_LIST = exports.PROMPT_IDEAS = exports.INSTRUCTIONS = exports.ASSISTANT_VERSION = exports.ASSISTANT_NAME = exports.ASSISTANT_DESCRIPTION = void 0;
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var TASK_LIST = exports.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. Create a histogram.\n6. Create a scatter plot with regression line.\n7. Classify the data of a variable.\n8. Spatial join two datasets.';
var WELCOME_MESSAGE = exports.WELCOME_MESSAGE = "Hi, I am Kepler.gl AI Assistant!\nHere are some tasks I can help you with:\n\n".concat(TASK_LIST);
var INSTRUCTIONS = exports.INSTRUCTIONS = "You are a Kepler.gl AI Assistant that can answer questions and help with tasks of mapping and spatial data analysis.\n\nHere are the tasks that you can help with:\n".concat(TASK_LIST, "\n\nWhen responding to user queries:\n1. Analyze if the task requires one or multiple function calls\n2. For each required function:\n - Identify the appropriate function to call\n - Determine all required parameters\n - If parameters are missing, ask the user to provide them\n - Please ask the user to confirm the parameters\n - If the user doesn't agree, try to provide variable functions to the user\n - Execute functions in a sequential order\n\nYou 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.\n\nRemember to:\n- Return function calls in a structured format that can be parsed and executed\n- Wait for confirmation of each function's completion before proceeding\n- Prompt user to proceed to the next function if needed\n- Provide clear feedback about what action is being taken\n- Do not include raw programming code in responses to users");
var PROMPT_IDEAS = exports.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'
}];
var ASSISTANT_NAME = exports.ASSISTANT_NAME = 'kepler-gl-ai-assistant';
var ASSISTANT_DESCRIPTION = exports.ASSISTANT_DESCRIPTION = 'A Kepler.gl AI Assistant';
var ASSISTANT_VERSION = exports.ASSISTANT_VERSION = '0.0.2';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJUQVNLX0xJU1QiLCJleHBvcnRzIiwiV0VMQ09NRV9NRVNTQUdFIiwiY29uY2F0IiwiSU5TVFJVQ1RJT05TIiwiUFJPTVBUX0lERUFTIiwidGl0bGUiLCJkZXNjcmlwdGlvbiIsIkFTU0lTVEFOVF9OQU1FIiwiQVNTSVNUQU5UX0RFU0NSSVBUSU9OIiwiQVNTSVNUQU5UX1ZFUlNJT04iXSwic291cmNlcyI6WyIuLi9zcmMvY29uc3RhbnRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBNSVRcbi8vIENvcHlyaWdodCBjb250cmlidXRvcnMgdG8gdGhlIGtlcGxlci5nbCBwcm9qZWN0XG5cbmV4cG9ydCBjb25zdCBUQVNLX0xJU1QgPVxuICAnMS4gU2hvdyBkYXRhc2V0L2xheWVyL3ZhcmlhYmxlIGluZm8uXFxuMi4gQ2hhbmdlIHRoZSBiYXNlbWFwIHN0eWxlLlxcbjMuIExvYWQgZGF0YSBmcm9tIHVybC5cXG40LiBDcmVhdGUgYSBtYXAgbGF5ZXIgdXNpbmcgdmFyaWFibGUuXFxuNS4gQ3JlYXRlIGEgaGlzdG9ncmFtLlxcbjYuIENyZWF0ZSBhIHNjYXR0ZXIgcGxvdCB3aXRoIHJlZ3Jlc3Npb24gbGluZS5cXG43LiBDbGFzc2lmeSB0aGUgZGF0YSBvZiBhIHZhcmlhYmxlLlxcbjguIFNwYXRpYWwgam9pbiB0d28gZGF0YXNldHMuJzt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