Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] AI Assistant with Spatial Data Analysis [Prototype] #2828

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switch to openassistant library
  • Loading branch information
lixun910 committed Dec 31, 2024
commit ba42c6cb5332ddb793acbd494830c6f9774f3d38
9 changes: 5 additions & 4 deletions examples/demo-app/esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ const RESOLVE_LOCAL_ALIASES = {
// Suppress useless warnings from react-date-picker's dep
'tiny-warning': `${SRC_DIR}/utils/src/noop.ts`,
// kepler.gl and loaders.gl need to use same apache-arrow
'apache-arrow': `${NODE_MODULES_DIR}/apache-arrow`,
// all react-ai-assist needs to be resolved from samenode_modules
'react-ai-assist': `${NODE_MODULES_DIR}/react-ai-assist`
'apache-arrow': `${NODE_MODULES_DIR}/apache-arrow`
};

const config = {
Expand Down Expand Up @@ -80,7 +78,10 @@ function addAliases(externals, args) {

// resolve ai-assistant from local dir
if (useLocalAiAssistant) {
resolveAlias['react-ai-assist'] = join(LIB_DIR, '../ai-assistant/src');
resolveAlias['@openassistant/core'] = join(LIB_DIR, '../openassistant/packages/core/src');
resolveAlias['@openassistant/ui'] = join(LIB_DIR, '../openassistant/packages/ui/src');
resolveAlias['@openassistant/echarts'] = join(LIB_DIR, '../openassistant/packages/echarts/src');
resolveAlias['@openassistant/geoda'] = join(LIB_DIR, '../openassistant/packages/geoda/src');
resolveAlias['@kepler.gl/ai-assistant'] = join(SRC_DIR, 'ai-assistant/src');
}

Expand Down
1 change: 1 addition & 0 deletions examples/demo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@loaders.gl/csv": "^4.3.2",
"@loaders.gl/json": "^4.3.2",
"@loaders.gl/parquet": "^4.3.2",
"@openassistant/ui": "^0.0.1",
"@types/classnames": "^2.3.1",
"@types/keymirror": "^0.1.1",
"classnames": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-app/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {connect, useDispatch} from 'react-redux';
import cloneDeep from 'lodash.clonedeep';
import isEqual from 'lodash.isequal';

import {ScreenshotWrapper} from 'react-ai-assist';
import {ScreenshotWrapper} from '@openassistant/ui';
import {
messages as aiAssistantMessages,
setStartScreenCapture,
Expand Down
Loading
Loading