You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "simon824 (via GitHub)" <gi...@apache.org> on 2023/07/20 09:40:58 UTC

[GitHub] [incubator-hugegraph] simon824 created a discussion: HugeGraph Integrates with LLMs and Data Ecosystems

GitHub user simon824 created a discussion: HugeGraph Integrates with LLMs and Data Ecosystems

[LangChain](https://github.com/hwchase17/langchain) is a framework for developing applications powered by language models. It enables applications that are:
- Data-aware: connect a language model to other sources of data
- Agentic: allow a language model to interact with its environment

We created https://github.com/hwchase17/langchain/pull/7132 to make HugeGraph integrates with LangChain

We can:
1. Use Langchain to combine HugeGraph's schema and natural language to generate gremlin/cypher , and then execute query operations on HugeGraph.
2. Use the result returned by hugegraph to supplement the context of the answer, and send it to LLM as a prompt.

`User document` about using hugegraph in  langchain :
https://python.langchain.com/docs/modules/chains/additional/graph_hugegraph_qa


GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org


[GitHub] [incubator-hugegraph] liuxiaocs7 edited a comment on the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
GitHub user liuxiaocs7 edited a comment on the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Successfully reproduced, this feature will be very helpful for writing Gremlin statements.

![image](https://github.com/apache/incubator-hugegraph/assets/42756849/977c3199-69b9-4c81-8bb1-67bc3581c653)

Some points to note:

1. some dependencies that need to be installed:

```
requests
decorator
```

2. If we want to use openai, we also need to install

```
openai
```

and set our own api-key in `OPENAI_API_KEY`.

---

HG Py-Client: https://pypi.org/project/hugegraph-python/, looking forward to update.

- [Langchain Beginners Getting Started Guide | LangChain初学者入门指南](https://mp.weixin.qq.com/s/F4QokLPrimFS1LRjXDbwQQ)


GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251#discussioncomment-6498881

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org


[GitHub] [incubator-hugegraph] liuxiaocs7 edited a comment on the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
GitHub user liuxiaocs7 edited a comment on the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Successfully reproduced, this feature will be very helpful for writing Gremlin statements.

![image](https://github.com/apache/incubator-hugegraph/assets/42756849/977c3199-69b9-4c81-8bb1-67bc3581c653)

Some points to note:

1. some dependencies that need to be installed:

```
requests
decorator
```

2. If we want to use openai, we also need to install

```
openai
```

and set our own api-key in `OPENAI_API_KEY`.

---

HG Py-Client: https://pypi.org/project/hugegraph-python/, looking forward to update.

[Langchain Beginners Getting Started Guide | LangChain初学者入门指南](https://mp.weixin.qq.com/s/F4QokLPrimFS1LRjXDbwQQ)


GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251#discussioncomment-6498881

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org


[GitHub] [incubator-hugegraph] liuxiaocs7 added a comment to the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
GitHub user liuxiaocs7 added a comment to the discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Successfully reproduced, this feature will be very helpful for writing Gremlin statements.

![image](https://github.com/apache/incubator-hugegraph/assets/42756849/977c3199-69b9-4c81-8bb1-67bc3581c653)

Some points to note:

1. some dependencies that need to be installed:

```
requests
decorator
```

2. If we want to use openai, we also need to install

```
openai
```

and set our own api-key in `OPENAI_API_KEY`.

---

HG Py-Client: https://pypi.org/project/hugegraph-python/, looking forward to update.



GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251#discussioncomment-6498881

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org


[GitHub] [incubator-hugegraph] simon824 edited a discussion: HugeGraph Integrates with LLMs and Data Ecosystems

Posted by "simon824 (via GitHub)" <gi...@apache.org>.
GitHub user simon824 edited a discussion: HugeGraph Integrates with LLMs and Data Ecosystems

[LangChain](https://github.com/hwchase17/langchain) is a framework for developing applications powered by language models. It enables applications that are:
- Data-aware: connect a language model to other sources of data
- Agentic: allow a language model to interact with its environment

We created https://github.com/hwchase17/langchain/pull/7132 to make HugeGraph integrates with LangChain

We can:
1. Use Langchain to combine HugeGraph's schema and natural language to generate gremlin/cypher , and then execute query operations on HugeGraph.
2. Use the result returned by hugegraph to supplement the context of the answer, and send it to LLM as a prompt.

`User document` about using hugegraph in  langchain :
https://python.langchain.com/docs/modules/chains/additional/graph_hugegraph_qa

Let's discuss here if you are interested in the integration of graph databases and large language models.


GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org


[GitHub] [incubator-hugegraph] simon824 edited a discussion: HugeGraph Integrates with LangChain(LLM application framework)

Posted by "simon824 (via GitHub)" <gi...@apache.org>.
GitHub user simon824 edited a discussion: HugeGraph Integrates with LangChain(LLM application framework)

[LangChain](https://github.com/hwchase17/langchain) is a framework for developing applications powered by language models. It enables applications that are:
- Data-aware: connect a language model to other sources of data
- Agentic: allow a language model to interact with its environment

We created https://github.com/hwchase17/langchain/pull/7132 to make HugeGraph integrates with LangChain

We can:
1. Use Langchain to combine HugeGraph's schema and natural language to generate gremlin/cypher , and then execute query operations on HugeGraph.
2. Use the result returned by hugegraph to supplement the context of the answer, and send it to LLM as a prompt.

`User document` about using hugegraph in  langchain :
https://python.langchain.com/docs/modules/chains/additional/graph_hugegraph_qa

Let's discuss here if you are interested in the integration of graph databases and large language models.


GitHub link: https://github.com/apache/incubator-hugegraph/discussions/2251

----
This is an automatically sent email for dev@hugegraph.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hugegraph.apache.org