Skip to main content

PyPI version License: MIT Downloads LinkedIn

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.

Metadata

Release files for etoile-graph 2025.5.160702

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etoile-graph 2025.5.160702
File Size Uploaded
etoile_graph-2025.5.160702.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etoile-graph 2025.5.160702
File Interpreter ABI Platform
etoile_graph-2025.5.160702-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / etoile_graph-2025.5.160702.tar.gz

Download URL etoile_graph-2025.5.160702.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03a97eb7b9cfff6ebd345388536a6b1e88dc1f9bc6935b198313e24b2c137458
BLAKE2b-256 checksum
How to use checksums
8717dab596f17e951d61282c6d983131beacc6a7e13849969ff4332a0c486e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / etoile_graph-2025.5.160702-py3-none-any.whl

Download URL etoile_graph-2025.5.160702-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f83e85806dd51d6ae30e26ae98f3edc6477125d13c2d29eebf7feaeb331eaf
BLAKE2b-256 checksum
How to use checksums
9165a5ff20b63247957edc5d004b219e31c1c318ad995b86cc93a7b9bdcf10a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.5.160702 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page