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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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