Skip to main content

No project description provided

Project description

PyPI version License: MIT Downloads

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-0.0.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

etoile_graph-0.0.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for etoile_graph-0.0.3.tar.gz
Algorithm Hash digest
SHA256 672c11dfffc85fe751ca77af92ab9d9d331d5ed3cf27735683cbfce53f280b42
MD5 d626140cbe93a0845fc5db88d89939ae
BLAKE2b-256 d265802ef875846d4990ab2da0bb13cc51c096dc488f8d55e67159420ad81d00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for etoile_graph-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c85b7d121f729d342ffdffd1e3089d182c1ec9ed429b65d5d7f101e0eb5efbe
MD5 eeb4ac80fc230681ec9e12e67c8ca0b0
BLAKE2b-256 701de4b7fe7fe69e7e8f6f52483987a1c316d66daeef401a8a5783573ebe7cdb

See more details on using hashes here.

Supported by

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