No project description provided
Project description
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:
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
from langchain_mistralai import ChatMistralAI
llm = ChatMistralAI(
model="mistral-large-latest",
temperature=0,
max_retries=2
)
Generating a Graph
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.
License
etoile_graph
is licensed under the MIT License.
Acknowledgements
This package was developed by Evgenii (Eugene) Evstafev for advanced knowledge graph generation tasks. It aims to assist developers in creating structured data models from unstructured text inputs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file etoile_graph-0.0.3.tar.gz
.
File metadata
- Download URL: etoile_graph-0.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672c11dfffc85fe751ca77af92ab9d9d331d5ed3cf27735683cbfce53f280b42 |
|
MD5 | d626140cbe93a0845fc5db88d89939ae |
|
BLAKE2b-256 | d265802ef875846d4990ab2da0bb13cc51c096dc488f8d55e67159420ad81d00 |
File details
Details for the file etoile_graph-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: etoile_graph-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c85b7d121f729d342ffdffd1e3089d182c1ec9ed429b65d5d7f101e0eb5efbe |
|
MD5 | eeb4ac80fc230681ec9e12e67c8ca0b0 |
|
BLAKE2b-256 | 701de4b7fe7fe69e7e8f6f52483987a1c316d66daeef401a8a5783573ebe7cdb |