Skip to content

Commit

Permalink
fix: resolves page crash issue during to many attribute editing on `/…
Browse files Browse the repository at this point in the history
…import/edit/${id}` page (#792)

docs: assistant
  • Loading branch information
huaxiabuluo authored Apr 23, 2024
1 parent f48cef7 commit 9c19645
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Use when you want shutdown the web app
kill -9 $(lsof -t -i :7001)
```

## Documentation 3.9.0
## Documentation 3.9.2
[中文](https://docs.nebula-graph.com.cn/3.6.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/)
[ENGLISH](https://docs.nebula-graph.io/3.6.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/)

Expand Down
3 changes: 2 additions & 1 deletion app/components/CSVPreviewLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const CSVPreviewLink = (props: IProps) => {
let data = [];
readString(sample, {
delimiter,
worker: true,
// @ts-ignore
worker: false,
skipEmptyLines: true,
step: (row) => {
data = [...data, row.data];
Expand Down
3 changes: 2 additions & 1 deletion app/components/FileConfigSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const FileConfigSetting = (props: IProps) => {
if (activeItem.sample !== undefined) {
readString(activeItem.sample, {
delimiter: activeItem.delimiter || ',',
worker: true,
// @ts-ignore
worker: false,
skipEmptyLines: true,
step: (row) => {
content = [...content, row.data];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const PreviewFileModal = (props: IProps) => {
let data = [];
readString(sample, {
delimiter: delimiter || file.delimiter,
worker: true,
// @ts-ignore
worker: false,
skipEmptyLines: true,
step: (row) => {
data = [...data, row.data];
Expand Down
2 changes: 1 addition & 1 deletion app/pages/LLMBot/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Chat() {
const newMessages = [
...beforeMessages,
{ role: 'user', content: currentInput },
{ role: 'assistant', content: '', status: 'pending' }, // asistant can't be changed
{ role: 'assistant', content: '', status: 'pending' }, // assistant can't be changed
];
llm.update({
currentInput: '',
Expand Down
2 changes: 1 addition & 1 deletion app/pages/LLMBot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function LLMBot() {
content={<Chat />}
title={
<div className={styles.llmBotTitle}>
<div className={styles.llmBotTitleInner}>AI Asistant</div>
<div className={styles.llmBotTitleInner}>AI Assistant</div>
<div className={styles.llmBotHandler}>
text2match
<Switch
Expand Down
4 changes: 2 additions & 2 deletions app/stores/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as ngqlDoc from '@app/utils/ngql';
import schema from './schema';
import rootStore from '.';

export const matchPrompt = `I want you to be a NebulaGraph database asistant.
export const matchPrompt = `I want you to be a NebulaGraph database assistant.
There are below document.
----
Use only the provided relationship types and properties in the schema.
Expand Down Expand Up @@ -49,7 +49,7 @@ the reference documentation provided is: \n
----
Please marked(\`\`\`ngql) for markdown code block to write the ngql and answer the user's question with the question language`;

export const AgentTask = `Assume you are a NebulaGraph AI chat asistant. You need to help the user to write NGQL or solve other question.
export const AgentTask = `Assume you are a NebulaGraph AI chat assistant. You need to help the user to write NGQL or solve other question.
You have access to the following information:
1. The user's console NGQL context is: {current_ngql}
2. The user's current graph space is: {space_name}
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.4'
services:
web:
image: vesoft/nebula-graph-studio:v3.9.0
image: vesoft/nebula-graph-studio:v3.9.2
environment:
USER: root
ports:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nebula-graph-studio",
"version": "3.9.1",
"version": "3.9.2",
"description": "nebula-graph-studio",
"private": true,
"repository": {
Expand Down

0 comments on commit 9c19645

Please sign in to comment.