Name | etoile-graph JSON |
Version |
0.0.3
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-10-06 03:58:22 |
maintainer | None |
docs_url | None |
author | Eugene Evstafev |
requires_python | >=3.6 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[](https://badge.fury.io/py/etoile_graph)
[](https://opensource.org/licenses/MIT)
[](https://pepy.tech/project/etoile_graph)
# etoile_graph
`etoile_graph` is a Python package developed to streamline the creation of knowledge graphs from natural language data using machine learning models. The package leverages the capabilities of LangChain and HuggingFace technologies, enabling the extraction and linking of nodes and relationships directly from text.
## Installation
To install `etoile_graph`, use pip:
```bash
pip install etoile_graph
```
## Usage
The package includes three primary functions: `generate_nodes`, `generate_relationships`, and `generate_graph`. Here is how you can use these functions to generate a knowledge graph:
### Setting Up the Model
```python
from langchain_mistralai import ChatMistralAI
llm = ChatMistralAI(
model="mistral-large-latest",
temperature=0,
max_retries=2
)
```
### Generating a Graph
```python
from etoile_graph import generate_graph
# Assume `description` is a string containing the textual description.
texts = [description]
result = generate_graph(llm, texts, verbose=True)
print(result)
```
This function first generates nodes from the input texts and then uses these nodes to generate relationships, constructing a knowledge graph.
## Features
- Generates nodes and relationships from text using machine learning.
- Builds comprehensive knowledge graphs with nodes and relationships.
- Integrates smoothly with LangChain and HuggingFace for advanced text processing and embedding generation.
## Contributing
Contributions, issues, and feature requests are welcome! Please feel free to check the [issues page](https://github.com/chigwell/Mistral-Etoile-London-Hackathon/issues).
## License
`etoile_graph` is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).
## Acknowledgements
This package was developed by [Evgenii (Eugene) Evstafev](https://www.linkedin.com/in/eugene-evstafev-716669181/) for advanced knowledge graph generation tasks. It aims to assist developers in creating structured data models from unstructured text inputs.
Raw data
{
"_id": null,
"home_page": null,
"name": "etoile-graph",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Eugene Evstafev",
"author_email": "chigwel@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d2/65/802ef875846d4990ab2da0bb13cc51c096dc488f8d55e67159420ad81d00/etoile_graph-0.0.3.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/etoile_graph)\n[](https://opensource.org/licenses/MIT)\n[](https://pepy.tech/project/etoile_graph)\n\n# etoile_graph\n\n`etoile_graph` is a Python package developed to streamline the creation of knowledge graphs from natural language data using machine learning models. The package leverages the capabilities of LangChain and HuggingFace technologies, enabling the extraction and linking of nodes and relationships directly from text.\n\n## Installation\n\nTo install `etoile_graph`, use pip:\n\n```bash\npip install etoile_graph\n```\n\n## Usage\n\nThe package includes three primary functions: `generate_nodes`, `generate_relationships`, and `generate_graph`. Here is how you can use these functions to generate a knowledge graph:\n\n### Setting Up the Model\n\n```python\nfrom langchain_mistralai import ChatMistralAI\n\nllm = ChatMistralAI(\n model=\"mistral-large-latest\",\n temperature=0,\n max_retries=2\n)\n```\n\n### Generating a Graph\n\n```python\nfrom etoile_graph import generate_graph\n\n# Assume `description` is a string containing the textual description.\ntexts = [description]\nresult = generate_graph(llm, texts, verbose=True)\nprint(result)\n```\n\nThis function first generates nodes from the input texts and then uses these nodes to generate relationships, constructing a knowledge graph.\n\n## Features\n\n- Generates nodes and relationships from text using machine learning.\n- Builds comprehensive knowledge graphs with nodes and relationships.\n- Integrates smoothly with LangChain and HuggingFace for advanced text processing and embedding generation.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome! Please feel free to check the [issues page](https://github.com/chigwell/Mistral-Etoile-London-Hackathon/issues).\n\n## License\n\n`etoile_graph` is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n\n## Acknowledgements\n\nThis package was developed by [Evgenii (Eugene) Evstafev](https://www.linkedin.com/in/eugene-evstafev-716669181/) for advanced knowledge graph generation tasks. It aims to assist developers in creating structured data models from unstructured text inputs.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "0.0.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "701de4b7fe7fe69e7e8f6f52483987a1c316d66daeef401a8a5783573ebe7cdb",
"md5": "eeb4ac80fc230681ec9e12e67c8ca0b0",
"sha256": "9c85b7d121f729d342ffdffd1e3089d182c1ec9ed429b65d5d7f101e0eb5efbe"
},
"downloads": -1,
"filename": "etoile_graph-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "eeb4ac80fc230681ec9e12e67c8ca0b0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6517,
"upload_time": "2024-10-06T03:58:19",
"upload_time_iso_8601": "2024-10-06T03:58:19.655233Z",
"url": "https://files.pythonhosted.org/packages/70/1d/e4b7fe7fe69e7e8f6f52483987a1c316d66daeef401a8a5783573ebe7cdb/etoile_graph-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d265802ef875846d4990ab2da0bb13cc51c096dc488f8d55e67159420ad81d00",
"md5": "d626140cbe93a0845fc5db88d89939ae",
"sha256": "672c11dfffc85fe751ca77af92ab9d9d331d5ed3cf27735683cbfce53f280b42"
},
"downloads": -1,
"filename": "etoile_graph-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "d626140cbe93a0845fc5db88d89939ae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4602,
"upload_time": "2024-10-06T03:58:22",
"upload_time_iso_8601": "2024-10-06T03:58:22.017711Z",
"url": "https://files.pythonhosted.org/packages/d2/65/802ef875846d4990ab2da0bb13cc51c096dc488f8d55e67159420ad81d00/etoile_graph-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-06 03:58:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "etoile-graph"
}