Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etoile_graph-2025.5.160702.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etoile_graph-2025.5.160702-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file etoile_graph-2025.5.160702.tar.gz.

File metadata

  • Download URL: etoile_graph-2025.5.160702.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for etoile_graph-2025.5.160702.tar.gz
Algorithm Hash digest
SHA256 03a97eb7b9cfff6ebd345388536a6b1e88dc1f9bc6935b198313e24b2c137458
MD5 a538bad171ea127b799052b4ed1208a3
BLAKE2b-256 8717dab596f17e951d61282c6d983131beacc6a7e13849969ff4332a0c486e98

See more details on using hashes here.

File details

Details for the file etoile_graph-2025.5.160702-py3-none-any.whl.

File metadata

File hashes

Hashes for etoile_graph-2025.5.160702-py3-none-any.whl
Algorithm Hash digest
SHA256 94f83e85806dd51d6ae30e26ae98f3edc6477125d13c2d29eebf7feaeb331eaf
MD5 bfaa6410bb63e26807aa757ed986331e
BLAKE2b-256 9165a5ff20b63247957edc5d004b219e31c1c318ad995b86cc93a7b9bdcf10a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page