Spatial Analysis Tools
Comprehensive suite of GeoDA tools for spatial statistics, LISA, Moran's I, spatial regression, and more.
A comprehensive toolkit for building AI-powered GIS and spatial data analysis applications
Install OpenAssistant tools in your project:
# Install core utilities
npm install @openassistant/utils
# Install specific tools
npm install @openassistant/duckdb
npm install @openassistant/geoda
npm install @openassistant/map
npm install @openassistant/plots
# Install components
npm install @openassistant/chat
npm install @openassistant/echarts
npm install @openassistant/keplerglimport { keplergl } from '@openassistant/map';
import { KeplerGlComponent } from '@openassistant/keplergl';
import { convertToVercelAiTool } from '@openassistant/utils';
import { tool } from 'ai';
// Create a kepler map tool with your context
const keplerMapTool = {
...keplergl,
context: {
getDataset: async (datasetName: string) => {
if (datasetName in SAMPLE_DATASETS) {
return SAMPLE_DATASETS[datasetName as keyof typeof SAMPLE_DATASETS];
}
throw new Error(`Dataset ${datasetName} not found`);
},
},
component: KeplerGlComponent,
};
// Convert to Vercel AI SDK tool
// const aiTool = tool(convertToVercelAiTool(keplerMapTool));
// Use in your AI application
export function App() {
return (
<div className="flex h-screen w-screen items-center justify-center p-4">
<div className="w-full max-w-[900px] h-full">
<Assistant
options={{
ai: {
getInstructions:
() => `You are a helpful assistant that can answer questions and help with tasks.
Your name is George.
You can use the following datasets to answer the user's question:
- Dataset: venues
- Fields: name, city, ratin
- Dataset: cities
- Fields: name, population, latitude, longitude
`,
tools: {
keplergl: keplerMapTool,
},
},
}}
/>
</div>
</div>
);
}
OpenAssistant v1.0.0 focuses on providing a rich set of AI tools for spatial data analysis and GIS tasks. Unlike previous versions, v1.0.0 is framework-agnostic and can be integrated with any AI framework of your choice.
Version 1.0.0 represents a major architectural shift:
@openassistant/ui - Replaced by @sqlrooms/aiOpenAssistantTool interface