GraphGPT icon indicating copy to clipboard operation
GraphGPT copied to clipboard

Manual Input react-graph-vis

Open JamesFlare1212 opened this issue 2 years ago • 0 comments

As GraphGPT works like make a request to GPT 3

Given a prompt, extrapolate as many relationships as possible from it and provide a list of updates.

If an update is a relationship, provide [ENTITY 1, RELATIONSHIP, ENTITY 2]. The relationship is directed, so the order matters.

If an update is related to a color, provide [ENTITY, COLOR]. Color is in hex format.

If an update is related to deleting an entity, provide ["DELETE", ENTITY].

Example:
prompt: Alice is Bob's roommate. Make her node green.
updates:
[["Alice", "roommate", "Bob"], ["Alice", "#00FF00"]]

prompt:

I can also get the response from other model like ChatGPT/GPT 3. So, is there anyway that allows me put the response like,

[["知识", "包括", "科学定律"], ["知识", "包括", "科学模型"], ["科学定律", "指引", "未来的研究方向"], ["科学定律", "优化", "各种商业行为"], ["科学定律", "为基础", "先进的想法"], ["科学定律", "为人类社会创造价值"], ["科学模型", "描述", "事物规律"], ["科学模型", "给人们决策提供强有力支持"], ["科学模型", "避免了不科学导致的失败"], ["科学模型", "避免了资源浪费"], ["自然科学", "回答问题"], ["人文科学", "回答问题"], ["比较各类知识", "是否能给人类社会创造足够多价值"], ["价值", "是金钱"], ["价值", "是物质发展"], ["价值", "是减少的损失"]]

Into react-graph-vis, so, I can get the same graph anyhow?

JamesFlare1212 avatar Feb 13 '23 16:02 JamesFlare1212