forked from vesoft-inc/nebula-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
LLMJob: | ||
Space: '' #space name | ||
File: '' #file path,support pdf,txt,json,csv and other text format | ||
Space: "" #space name | ||
File: "" #file path,support pdf,txt,json,csv and other text format | ||
Auth: | ||
Address: '127.0.0.1' # nebula graphd address | ||
Address: "127.0.0.1" # nebula graphd address | ||
Port: 9669 | ||
Username: 'root' | ||
Password: 'nebula' | ||
Username: "root" | ||
Password: "nebula" | ||
LLMConfig: | ||
URL: '' # openai api url | ||
Key: '' # openai api key | ||
APIType: 'openai' | ||
URL: "" # openai api url | ||
Key: "" # openai api key | ||
APIType: "openai" | ||
ContextLengthLimit: 1024 | ||
MaxBlockSize: 0 # max request block num | ||
GQLBatchSize: 100 # max gql batch size | ||
PromptTemplate: | | ||
As a knowledge graph AI importer, your task is to extract useful data from the following text: | ||
As a knowledge graph AI importer, your task is to extract useful data from the following text: | ||
--- | ||
{text} | ||
--- | ||
--- | ||
{text} | ||
--- | ||
The knowledge graph should follow this schema (node name is mandatory): | ||
The knowledge graph should follow this schema (node name is mandatory): | ||
--- | ||
{spaceSchema} | ||
--- | ||
--- | ||
{spaceSchema} | ||
--- | ||
Please return the results in JSON format only, without any explanations or comments. The JSON should include nodes and edges with their properties, as shown below: | ||
Please return the results in JSON format only, without any explanations or comments. The JSON should include nodes and edges with their properties, as shown below: | ||
```json | ||
{ | ||
"nodes":[{ "name":"foo","type":"node_type_1","props":{"key_x":"85%"} }], | ||
"edges":[{ "src":"foo","dst":"bar","edgeType":"edge_type_3","props":{"name":"is located in"} }] | ||
} | ||
``` | ||
```json | ||
{ | ||
"nodes":[{ "name":"foo","type":"node_type_1","props":{"key_x":"85%"} }], | ||
"edges":[{ "src":"foo","dst":"bar","edgeType":"edge_type_3","props":{"name":"is located in"} }] | ||
} | ||
``` | ||
Ensure the JSON is correctly formatted. Now, extract! | ||
JSON: | ||
Ensure the JSON is correctly formatted. Now, extract! | ||
JSON: |