style(docs): improve typography and layout consistency

- Standardize font sizes and line heights across docs
- Add ChapterIntroduction component for consistent chapter headers
- Fix markdown formatting and whitespace issues
- Improve code block and table styling
- Add font size and line height controls to layout
This commit is contained in:
sanbuphy
2026-01-13 14:42:34 +08:00
parent 7c546e62f8
commit 1d25eb9b9b
20 changed files with 1655 additions and 945 deletions
@@ -6,37 +6,37 @@ app:
name: Log in
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/gitee_ai:0.1.4@f621ace33bb3c140f5a1e3533fcb518f558c7b945d63523c0f85810a4b4a8b93
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/gitee_ai:0.1.4@f621ace33bb3c140f5a1e3533fcb518f558c7b945d63523c0f85810a4b4a8b93
kind: app
version: 0.3.0
workflow:
conversation_variables:
- description: ''
id: f8cc215e-ef91-437a-a823-7e80a8d345a3
name: LOGIN
selector:
- conversation
- LOGIN
value: none
value_type: string
- description: ''
id: f8cc215e-ef91-437a-a823-7e80a8d345a3
name: LOGIN
selector:
- conversation
- LOGIN
value: none
value_type: string
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
- image
allowed_file_upload_methods:
- local_file
- remote_url
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
@@ -49,8 +49,8 @@ workflow:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
- local_file
- remote_url
number_limits: 3
opening_statement: 'Please log in with passwords:'
retriever_resource:
@@ -68,436 +68,438 @@ workflow:
voice: ''
graph:
edges:
- data:
sourceType: llm
targetType: answer
id: llm-answer
source: llm
sourceHandle: source
target: answer
targetHandle: target
type: custom
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: if-else
id: 1758767725822-source-1758767750205-target
source: '1758767725822'
sourceHandle: source
target: '1758767750205'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: assigner
id: 1758767920912-true-1758768026915-target
source: '1758767920912'
sourceHandle: 'true'
target: '1758768026915'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: assigner
id: 1758767920912-false-1758768059939-target
source: '1758767920912'
sourceHandle: 'false'
target: '1758768059939'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: llm
id: 1758767750205-f599486b-e4d3-4cdd-9425-31257bf28e82-llm-target
source: '1758767750205'
sourceHandle: f599486b-e4d3-4cdd-9425-31257bf28e82
target: llm
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: llm
id: 1758767750205-5f242bc3-7f06-4a88-82e5-235a859d92bf-1758768238460-target
source: '1758767750205'
sourceHandle: 5f242bc3-7f06-4a88-82e5-235a859d92bf
target: '1758768238460'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: answer
id: 1758768238460-source-1758768309599-target
source: '1758768238460'
sourceHandle: source
target: '1758768309599'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: if-else
id: 1758767750205-true-1758767920912-target
source: '1758767750205'
sourceHandle: 'true'
target: '1758767920912'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: assigner
targetType: answer
id: 1758768026915-source-1758768400561-target
source: '1758768026915'
sourceHandle: source
target: '1758768400561'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: assigner
targetType: answer
id: 1758768059939-source-1758768418040-target
source: '1758768059939'
sourceHandle: source
target: '1758768418040'
targetHandle: target
type: custom
zIndex: 0
- data:
sourceType: llm
targetType: answer
id: llm-answer
source: llm
sourceHandle: source
target: answer
targetHandle: target
type: custom
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: if-else
id: 1758767725822-source-1758767750205-target
source: '1758767725822'
sourceHandle: source
target: '1758767750205'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: assigner
id: 1758767920912-true-1758768026915-target
source: '1758767920912'
sourceHandle: 'true'
target: '1758768026915'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: assigner
id: 1758767920912-false-1758768059939-target
source: '1758767920912'
sourceHandle: 'false'
target: '1758768059939'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: llm
id: 1758767750205-f599486b-e4d3-4cdd-9425-31257bf28e82-llm-target
source: '1758767750205'
sourceHandle: f599486b-e4d3-4cdd-9425-31257bf28e82
target: llm
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: llm
id: 1758767750205-5f242bc3-7f06-4a88-82e5-235a859d92bf-1758768238460-target
source: '1758767750205'
sourceHandle: 5f242bc3-7f06-4a88-82e5-235a859d92bf
target: '1758768238460'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: answer
id: 1758768238460-source-1758768309599-target
source: '1758768238460'
sourceHandle: source
target: '1758768309599'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: if-else
id: 1758767750205-true-1758767920912-target
source: '1758767750205'
sourceHandle: 'true'
target: '1758767920912'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: assigner
targetType: answer
id: 1758768026915-source-1758768400561-target
source: '1758768026915'
sourceHandle: source
target: '1758768400561'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: assigner
targetType: answer
id: 1758768059939-source-1758768418040-target
source: '1758768059939'
sourceHandle: source
target: '1758768418040'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
- data:
desc: ''
selected: false
title: Start
type: start
variables: []
height: 53
id: '1758767725822'
position:
x: -227.17718464443863
y: 459.4548203041172
positionAbsolute:
x: -227.17718464443863
y: 459.4548203041172
selected: false
title: Start
type: start
variables: []
height: 53
id: '1758767725822'
position:
x: -227.17718464443863
y: 459.4548203041172
positionAbsolute:
x: -227.17718464443863
y: 459.4548203041172
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: '{{#sys.query#}}'
role_prefix:
assistant: ''
user: ''
window:
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: 2686a731-f250-46f0-97ec-033e929160a5
role: system
text: 'You are the computer that answers the user''s question. Always start
with "hello guest" '
variable_selector: []
desc: ''
memory:
query_prompt_template: '{{#sys.query#}}'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: 2686a731-f250-46f0-97ec-033e929160a5
role: system
text:
'You are the computer that answers the user''s question. Always start
with "hello guest" '
selected: false
title: Guest LLM
type: llm
variables: []
vision:
enabled: false
height: 89
id: llm
position:
x: 389.3839309072489
y: 663.6856819774588
positionAbsolute:
x: 389.3839309072489
y: 663.6856819774588
selected: false
title: Guest LLM
type: llm
variables: []
vision:
enabled: false
height: 89
id: llm
position:
x: 389.3839309072489
y: 663.6856819774588
positionAbsolute:
x: 389.3839309072489
y: 663.6856819774588
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#llm.text#}}'
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#llm.text#}}'
desc: ''
selected: true
title: Answer
type: answer
variables: []
height: 104
id: answer
position:
x: 707.3520684153225
y: 673.6318886739399
positionAbsolute:
x: 707.3520684153225
y: 673.6318886739399
selected: true
title: Answer
type: answer
variables: []
height: 104
id: answer
position:
x: 707.3520684153225
y: 673.6318886739399
positionAbsolute:
x: 707.3520684153225
y: 673.6318886739399
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: is
id: cf0932c4-e5f4-478e-9437-1db63af30ffd
value: none
varType: string
variable_selector:
- conversation
- LOGIN
id: 'true'
logical_operator: and
- case_id: f599486b-e4d3-4cdd-9425-31257bf28e82
conditions:
- comparison_operator: is
id: 18c716ea-aac5-4af7-9a50-1fd5dc40d18e
value: guest
varType: string
variable_selector:
- conversation
- LOGIN
id: f599486b-e4d3-4cdd-9425-31257bf28e82
logical_operator: and
- case_id: 5f242bc3-7f06-4a88-82e5-235a859d92bf
conditions:
- comparison_operator: is
id: 490f9251-1012-4f85-8bb7-29f355ca6b5c
value: admin
varType: string
variable_selector:
- conversation
- LOGIN
id: 5f242bc3-7f06-4a88-82e5-235a859d92bf
logical_operator: and
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: is
id: cf0932c4-e5f4-478e-9437-1db63af30ffd
value: none
varType: string
variable_selector:
- conversation
- LOGIN
id: 'true'
logical_operator: and
- case_id: f599486b-e4d3-4cdd-9425-31257bf28e82
conditions:
- comparison_operator: is
id: 18c716ea-aac5-4af7-9a50-1fd5dc40d18e
value: guest
varType: string
variable_selector:
- conversation
- LOGIN
id: f599486b-e4d3-4cdd-9425-31257bf28e82
logical_operator: and
- case_id: 5f242bc3-7f06-4a88-82e5-235a859d92bf
conditions:
- comparison_operator: is
id: 490f9251-1012-4f85-8bb7-29f355ca6b5c
value: admin
varType: string
variable_selector:
- conversation
- LOGIN
id: 5f242bc3-7f06-4a88-82e5-235a859d92bf
logical_operator: and
desc: ''
selected: false
title: IF/ELSE
type: if-else
height: 221
id: '1758767750205'
position:
x: 78.91702348010949
y: 535.9787937998216
positionAbsolute:
x: 78.91702348010949
y: 535.9787937998216
selected: false
title: IF/ELSE
type: if-else
height: 221
id: '1758767750205'
position:
x: 78.91702348010949
y: 535.9787937998216
positionAbsolute:
x: 78.91702348010949
y: 535.9787937998216
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: is
id: ab112997-31e2-453c-8511-40adc3006e76
value: AIID
varType: string
variable_selector:
- sys
- query
id: 'true'
logical_operator: and
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: is
id: ab112997-31e2-453c-8511-40adc3006e76
value: AIID
varType: string
variable_selector:
- sys
- query
id: 'true'
logical_operator: and
desc: ''
selected: false
title: IF/ELSE 2
type: if-else
height: 125
id: '1758767920912'
position:
x: 659.9247584894487
y: 459.4548203041172
positionAbsolute:
x: 659.9247584894487
y: 459.4548203041172
selected: false
title: IF/ELSE 2
type: if-else
height: 125
id: '1758767920912'
position:
x: 659.9247584894487
y: 459.4548203041172
positionAbsolute:
x: 659.9247584894487
y: 459.4548203041172
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
items:
- input_type: constant
operation: set
value: admin
variable_selector:
- conversation
- LOGIN
write_mode: over-write
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
items:
- input_type: constant
operation: set
value: admin
variable_selector:
- conversation
- LOGIN
write_mode: over-write
selected: false
title: Variable Assigner
type: assigner
version: '2'
height: 87
id: '1758768026915'
position:
x: 997.3839309072489
y: 426.91916104676926
positionAbsolute:
x: 997.3839309072489
y: 426.91916104676926
selected: false
title: Variable Assigner
type: assigner
version: '2'
height: 87
id: '1758768026915'
position:
x: 997.3839309072489
y: 426.91916104676926
positionAbsolute:
x: 997.3839309072489
y: 426.91916104676926
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
items:
- input_type: constant
operation: set
value: guest
variable_selector:
- conversation
- LOGIN
write_mode: over-write
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
items:
- input_type: constant
operation: set
value: guest
variable_selector:
- conversation
- LOGIN
write_mode: over-write
selected: false
title: Variable Assigner 2
type: assigner
version: '2'
height: 87
id: '1758768059939'
position:
x: 1010.8775065168395
y: 553.9191610467692
positionAbsolute:
x: 1010.8775065168395
y: 553.9191610467692
selected: false
title: Variable Assigner 2
type: assigner
version: '2'
height: 87
id: '1758768059939'
position:
x: 1010.8775065168395
y: 553.9191610467692
positionAbsolute:
x: 1010.8775065168395
y: 553.9191610467692
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: 1129723a-50cb-4350-a118-3b9ac6dac523
role: system
text: 'You are the computer that answers the admin''s question. Always start
with "hello admin" . You know AIID(AI innovative Design) is a master program
in open FIESTA in Shenzhen. '
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: 1129723a-50cb-4350-a118-3b9ac6dac523
role: system
text:
'You are the computer that answers the admin''s question. Always start
with "hello admin" . You know AIID(AI innovative Design) is a master program
in open FIESTA in Shenzhen. '
selected: false
title: Admin LLM
type: llm
variables: []
vision:
enabled: false
height: 89
id: '1758768238460'
position:
x: 389.3839309072489
y: 792.6856819774588
positionAbsolute:
x: 389.3839309072489
y: 792.6856819774588
selected: false
title: Admin LLM
type: llm
variables: []
vision:
enabled: false
height: 89
id: '1758768238460'
position:
x: 389.3839309072489
y: 792.6856819774588
positionAbsolute:
x: 389.3839309072489
y: 792.6856819774588
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#1758768238460.text#}}'
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#1758768238460.text#}}'
desc: ''
selected: false
title: Answer 3
type: answer
variables: []
height: 104
id: '1758768309599'
position:
x: 707.3520684153225
y: 832.4705087633828
positionAbsolute:
x: 707.3520684153225
y: 832.4705087633828
selected: false
title: Answer 3
type: answer
variables: []
height: 104
id: '1758768309599'
position:
x: 707.3520684153225
y: 832.4705087633828
positionAbsolute:
x: 707.3520684153225
y: 832.4705087633828
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: Password Correct! You are now log in as ADMIN
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: Password Correct! You are now log in as ADMIN
desc: ''
selected: false
title: Answer 3
type: answer
variables: []
height: 117
id: '1758768400561'
position:
x: 1301.383930907249
y: 426.91916104676926
positionAbsolute:
x: 1301.383930907249
y: 426.91916104676926
selected: false
title: Answer 3
type: answer
variables: []
height: 117
id: '1758768400561'
position:
x: 1301.383930907249
y: 426.91916104676926
positionAbsolute:
x: 1301.383930907249
y: 426.91916104676926
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: Password Incorrect! You are now log in as GUEST
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: Password Incorrect! You are now log in as GUEST
desc: ''
selected: false
title: Answer 4
type: answer
variables: []
height: 117
id: '1758768418040'
position:
x: 1498.8808102839819
y: 553.9191610467692
positionAbsolute:
x: 1498.8808102839819
y: 553.9191610467692
selected: false
title: Answer 4
type: answer
variables: []
height: 117
id: '1758768418040'
position:
x: 1498.8808102839819
y: 553.9191610467692
positionAbsolute:
x: 1498.8808102839819
y: 553.9191610467692
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: 273.4245102591761
y: -8.654295375493462
@@ -6,45 +6,45 @@ app:
name: Love Loop
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/gitee_ai:0.1.4@f621ace33bb3c140f5a1e3533fcb518f558c7b945d63523c0f85810a4b4a8b93
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/gitee_ai:0.1.4@f621ace33bb3c140f5a1e3533fcb518f558c7b945d63523c0f85810a4b4a8b93
kind: app
version: 0.3.0
workflow:
conversation_variables:
- description: ''
id: 411d934a-94cb-4899-a892-31300f69228e
name: words
selector:
- conversation
- words
value: love
value_type: string
- description: ''
id: 7aca1d78-2dbc-4ccf-8428-0f0eed7b203c
name: WORDS
selector:
- conversation
- WORDS
value: ''
value_type: string
- description: ''
id: 411d934a-94cb-4899-a892-31300f69228e
name: words
selector:
- conversation
- words
value: love
value_type: string
- description: ''
id: 7aca1d78-2dbc-4ccf-8428-0f0eed7b203c
name: WORDS
selector:
- conversation
- WORDS
value: ''
value_type: string
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
- image
allowed_file_upload_methods:
- local_file
- remote_url
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
@@ -57,8 +57,8 @@ workflow:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
@@ -76,312 +76,313 @@ workflow:
voice: ''
graph:
edges:
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: loop-start
targetType: llm
id: 1758765136208start-source-1758765344915-target
source: 1758765136208start
sourceHandle: source
target: '1758765344915'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInLoop: false
sourceType: loop
targetType: answer
id: 1758765136208-source-answer-target
source: '1758765136208'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: llm
targetType: code
id: 1758765344915-source-1758765883132-target
source: '1758765344915'
sourceHandle: source
target: '1758765883132'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: code
targetType: assigner
id: 1758765883132-source-1758765428475-target
source: '1758765883132'
sourceHandle: source
target: '1758765428475'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: assigner
id: 1758764476473-source-1758765920251-target
source: '1758764476473'
sourceHandle: source
target: '1758765920251'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: assigner
targetType: loop
id: 1758765920251-source-1758765136208-target
source: '1758765920251'
sourceHandle: source
target: '1758765136208'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: loop-start
targetType: llm
id: 1758765136208start-source-1758765344915-target
source: 1758765136208start
sourceHandle: source
target: '1758765344915'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInLoop: false
sourceType: loop
targetType: answer
id: 1758765136208-source-answer-target
source: '1758765136208'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: llm
targetType: code
id: 1758765344915-source-1758765883132-target
source: '1758765344915'
sourceHandle: source
target: '1758765883132'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
sourceType: code
targetType: assigner
id: 1758765883132-source-1758765428475-target
source: '1758765883132'
sourceHandle: source
target: '1758765428475'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: assigner
id: 1758764476473-source-1758765920251-target
source: '1758764476473'
sourceHandle: source
target: '1758765920251'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: assigner
targetType: loop
id: 1758765920251-source-1758765136208-target
source: '1758765920251'
sourceHandle: source
target: '1758765136208'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
- data:
desc: ''
selected: false
title: Start
type: start
variables: []
height: 54
id: '1758764476473'
position:
x: 115.88661184766386
y: 178.92252604934293
positionAbsolute:
x: 115.88661184766386
y: 178.92252604934293
selected: false
title: Start
type: start
variables: []
height: 54
id: '1758764476473'
position:
x: 115.88661184766386
y: 178.92252604934293
positionAbsolute:
x: 115.88661184766386
y: 178.92252604934293
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#conversation.words#}}'
desc: ''
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#conversation.words#}}'
desc: ''
selected: false
title: Answer
type: answer
variables: []
height: 105
id: answer
position:
x: 1456.1539893939312
y: 178.92252604934293
positionAbsolute:
x: 1456.1539893939312
y: 178.92252604934293
selected: false
title: Answer
type: answer
variables: []
height: 105
id: answer
position:
x: 1456.1539893939312
y: 178.92252604934293
positionAbsolute:
x: 1456.1539893939312
y: 178.92252604934293
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
break_conditions: []
desc: ''
error_handle_mode: terminated
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
break_conditions: []
desc: ''
error_handle_mode: terminated
height: 462
logical_operator: and
loop_count: 5
loop_variables: []
selected: false
start_node_id: 1758765136208start
title: Loop
type: loop
width: 682
height: 462
logical_operator: and
loop_count: 5
loop_variables: []
id: '1758765136208'
position:
x: 731.5560922291256
y: 187.5878472722298
positionAbsolute:
x: 731.5560922291256
y: 187.5878472722298
selected: false
start_node_id: 1758765136208start
title: Loop
type: loop
sourcePosition: right
targetPosition: left
type: custom
width: 682
height: 462
id: '1758765136208'
position:
x: 731.5560922291256
y: 187.5878472722298
positionAbsolute:
x: 731.5560922291256
y: 187.5878472722298
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 682
zIndex: 1
- data:
desc: ''
isInLoop: true
zIndex: 1
- data:
desc: ''
isInLoop: true
selected: false
title: ''
type: loop-start
draggable: false
height: 48
id: 1758765136208start
parentId: '1758765136208'
position:
x: 24
y: 68
positionAbsolute:
x: 755.5560922291256
y: 255.5878472722298
selectable: false
sourcePosition: right
targetPosition: left
type: custom-loop-start
width: 44
zIndex: 1002
- data:
context:
enabled: false
variable_selector: []
desc: ''
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: e27d2ef8-3dc0-4fbf-8866-90ec3f10c758
role: system
text: write a word with a similar meaning to the words user input.
- id: 624597ef-8e03-49c7-8365-4b17dc487032
role: user
text: '{{#conversation.words#}}'
selected: false
title: LLM 2
type: llm
variables: []
vision:
enabled: false
height: 90
id: '1758765344915'
parentId: '1758765136208'
position:
x: 114.28909334084415
y: 65
positionAbsolute:
x: 845.8451855699698
y: 252.5878472722298
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
isInIteration: false
isInLoop: true
items:
- input_type: variable
operation: over-write
value:
- '1758765883132'
- result
variable_selector:
- conversation
- words
write_mode: over-write
loop_id: '1758765136208'
selected: false
title: Variable Assigner
type: assigner
version: '2'
height: 88
id: '1758765428475'
parentId: '1758765136208'
position:
x: 418.79897041375784
y: 194.04290759019386
positionAbsolute:
x: 1150.3550626428835
y: 381.63075486242366
selected: false
title: ''
type: loop-start
draggable: false
height: 48
id: 1758765136208start
parentId: '1758765136208'
position:
x: 24
y: 68
positionAbsolute:
x: 755.5560922291256
y: 255.5878472722298
selectable: false
sourcePosition: right
targetPosition: left
type: custom-loop-start
width: 44
zIndex: 1002
- data:
context:
enabled: false
variable_selector: []
desc: ''
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen3-235B-A22B-Instruct-2507
provider: langgenius/gitee_ai/gitee_ai
prompt_template:
- id: e27d2ef8-3dc0-4fbf-8866-90ec3f10c758
role: system
text: write a word with a similar meaning to the words user input.
- id: 624597ef-8e03-49c7-8365-4b17dc487032
role: user
text: '{{#conversation.words#}}'
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
code:
"\ndef main(arg1: str, arg2: str) -> dict:\n return {\n \"\
result\": arg1 +arg2 ,\n }\n"
code_language: python3
desc: ''
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
outputs:
result:
children: null
type: string
selected: false
title: Connect
type: code
variables:
- value_selector:
- conversation
- words
variable: arg1
- value_selector:
- '1758765344915'
- text
variable: arg2
height: 54
id: '1758765883132'
parentId: '1758765136208'
position:
x: 111.09640498433282
y: 202.0812369434865
positionAbsolute:
x: 842.6524972134584
y: 389.6690842157163
selected: false
title: LLM 2
type: llm
variables: []
vision:
enabled: false
height: 90
id: '1758765344915'
parentId: '1758765136208'
position:
x: 114.28909334084415
y: 65
positionAbsolute:
x: 845.8451855699698
y: 252.5878472722298
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
isInIteration: false
isInLoop: true
items:
- input_type: variable
operation: over-write
value:
- '1758765883132'
- result
variable_selector:
- conversation
- words
write_mode: over-write
loop_id: '1758765136208'
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- words
write_mode: over-write
selected: false
title: define words
type: assigner
version: '2'
height: 88
id: '1758765920251'
position:
x: 404.0977808713518
y: 178.92252604934293
positionAbsolute:
x: 404.0977808713518
y: 178.92252604934293
selected: false
title: Variable Assigner
type: assigner
version: '2'
height: 88
id: '1758765428475'
parentId: '1758765136208'
position:
x: 418.79897041375784
y: 194.04290759019386
positionAbsolute:
x: 1150.3550626428835
y: 381.63075486242366
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
code: "\ndef main(arg1: str, arg2: str) -> dict:\n return {\n \"\
result\": arg1 +arg2 ,\n }\n"
code_language: python3
desc: ''
isInIteration: false
isInLoop: true
loop_id: '1758765136208'
outputs:
result:
children: null
type: string
selected: false
title: Connect
type: code
variables:
- value_selector:
- conversation
- words
variable: arg1
- value_selector:
- '1758765344915'
- text
variable: arg2
height: 54
id: '1758765883132'
parentId: '1758765136208'
position:
x: 111.09640498433282
y: 202.0812369434865
positionAbsolute:
x: 842.6524972134584
y: 389.6690842157163
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- words
write_mode: over-write
selected: false
title: define words
type: assigner
version: '2'
height: 88
id: '1758765920251'
position:
x: 404.0977808713518
y: 178.92252604934293
positionAbsolute:
x: 404.0977808713518
y: 178.92252604934293
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 59.39316938104503
y: 131.3127545416781
@@ -56,13 +56,13 @@ API 无处不在,在后台默默工作。
- **Parameters:** `city=London` & `apiKey=your_access_key`
- **“响应”(回传的数据):**
`json
{
"city": "London",
"temperature": "15°C",
"condition": "Cloudy",
"humidity": "70%"
}
`
{
"city": "London",
"temperature": "15°C",
"condition": "Cloudy",
"humidity": "70%"
}
`
应用拿到这些数据后,再把它们漂亮地展示在你的手机屏幕上。
**地图服务 API**
@@ -73,16 +73,16 @@ API 无处不在,在后台默默工作。
- **Parameters:** `origin=Eiffel Tower` & `destination=Louvre Museum` & `mode=driving`
- **“响应”(回传的数据):**
`json
{
"total_distance": "4.5 kilometers",
"estimated_time": "15 minutes",
"route_steps": [
"1. Head east on Champ de Mars...",
"2. Turn left onto Quai Branly...",
"..."
]
}
`
{
"total_distance": "4.5 kilometers",
"estimated_time": "15 minutes",
"route_steps": [
"1. Head east on Champ de Mars...",
"2. Turn left onto Quai Branly...",
"..."
]
}
`
通过这些数据,应用就能在地图上绘制路线并提供导航指令。
**社交媒体登录 API**
@@ -123,14 +123,14 @@ user_info = {
我们也可参考某家云厂商的[数据库选型推荐](https://help.aliyun.com/zh/govcloud/getting-started/select-database-services),根据场景可进行不同数据库类型的选择,你可以对比不同云厂商的数据库规格选出最合适的进行使用。
| 数据库类型 | 数据库名称 | 价格 | 适用场景 |
| ------------ | ---------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------- |
| 关系型数据库 | RDS MySQL版 | 低 | 基础版:学习以及小型网站高可用版:一定业务压力的中型数据库场景集群版:业务不允许中断,访问压力较大 |
| | RDS SQL server版 | 高 | 基础版:测试以及小型商业化网站高可用版:企业级商业化网站集群版:企业业务不允许中断,访问压力较大 |
| | RDS PostgreSQL版 | 最低 | 基础版:学习以及小型网站高可用版:一定业务压力的中型数据库场景集群版:业务不允许中断,访问压力较大的场景,其性能较一般MySQL高 |
| | RDS PPAS版 | 高 | 通用型:兼容Oracle业务,但业务压力Udacity,虚拟化可以满足其需求独享型:面对需要独享物理机的业务,一般为高并发Oracle类业务 |
| | DRDS | 中 | 入门版本:4 Core 8 G,价格亲民,适合中小型在线业务企业版:16 Core 32 G,复杂 SQL 响应好,适合超高并发在线业务至尊版:32 Core 64 G,复杂 SQL 执行响应最好,提供超大规格选择 |
| NoSQL数据库 | Redis | 中 | 双机热备Redis:一般作为持久化数据库提高业务可用性集群版本的Redis:一般作为缓存层,加速应用访问,解决一般数据库无法负载的读取压力 |
| 数据库类型 | 数据库名称 | 价格 | 适用场景 |
| ------------ | ---------------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 关系型数据库 | RDS MySQL版 | 低 | 基础版:学习以及小型网站高可用版:一定业务压力的中型数据库场景集群版:业务不允许中断,访问压力较大 |
| | RDS SQL server版 | 高 | 基础版:测试以及小型商业化网站高可用版:企业级商业化网站集群版:企业业务不允许中断,访问压力较大 |
| | RDS PostgreSQL版 | 最低 | 基础版:学习以及小型网站高可用版:一定业务压力的中型数据库场景集群版:业务不允许中断,访问压力较大的场景,其性能较一般MySQL高 |
| | RDS PPAS版 | 高 | 通用型:兼容Oracle业务,但业务压力Udacity,虚拟化可以满足其需求独享型:面对需要独享物理机的业务,一般为高并发Oracle类业务 |
| | DRDS | 中 | 入门版本:4 Core 8 G,价格亲民,适合中小型在线业务企业版:16 Core 32 G,复杂 SQL 响应好,适合超高并发在线业务至尊版:32 Core 64 G,复杂 SQL 执行响应最好,提供超大规格选择 |
| NoSQL数据库 | Redis | 中 | 双机热备Redis:一般作为持久化数据库提高业务可用性集群版本的Redis:一般作为缓存层,加速应用访问,解决一般数据库无法负载的读取压力 |
| | MongoDB版 | 中 | 单节点实例单节点:适用于开发、测试及其他非企业核心数据存储的场景副本集实例:适用于某些业务场景下对数据库有更高读取性能需求,如阅读类网站、订单查询系统等读多写少场景或有临时活动等突发业务需求分片集群实例:基于多个副本集(每个副本集沿用三副本模式)组成的分片集群实例,提供更高的读取性能需求,为实时在线业务提供高速读取性能 |
光说不易理解,我们通过一个具体的“博客文章”场景,来看看同样的数据在关系数据库 (SQL) 和不同类型的非关系数据库 (NoSQL) 中是如何存储的。