Skip to main content

PyPI version License: MIT Downloads LinkedIn

eknowledge

eknowledge is a Python package designed to facilitate the generation of knowledge graphs from textual inputs. It leverages language models to parse text and extract relationships between entities, organizing these relationships into a structured graph format. This tool is ideal for developers, researchers, and anyone interested in structured knowledge extraction from unstructured text.

Installation

Install eknowledge using pip:

pip install eknowledge langchain_llm7

Usage

Here's a simple example to get you started with eknowledge. This example demonstrates how to generate a knowledge graph from a given text input using the package.

Example

from eknowledge import execute_graph_generation
from langchain_llm7 import ChatLLM7

# Initialize the language model
MODEL = "deepseek-r1"
llm = ChatLLM7(model=MODEL)

# Define your input text
input_text = "The quick brown fox jumps over the lazy dog."

# Generate the graph
graph = execute_graph_generation(
    text=input_text,
    llm=llm,
    chunk_size=100,
    verbose=True
)

# Output the graph
print(graph)
# > Splitting text into 1 chunks of size 100 words.
# > Processing chunk 1/1...
# > Nodes successfully processed in chunk 1/1.
# > [{'from': 'quick brown fox', 'relationship': 'interacts_with', 'to': 'lazy dog'}]

This script will output a knowledge graph based on the relationships identified in the text.

Contributing

Contributions are welcome! Please open issues or submit pull requests for any bugs, features, or improvements you would like to see.

License

eknowledge is MIT licensed, as found in the LICENSE file.

Metadata

Release files for eknowledge 2025.4.171239

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

Source distribution (sdist)

Source distribution for eknowledge 2025.4.171239
File Size Uploaded Provenance Actions
eknowledge-2025.4.171239.tar.gz 9.4 kB Without provenance Details for eknowledge-2025.4.171239.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eknowledge 2025.4.171239
File Interpreter ABI Platform Actions
eknowledge-2025.4.171239-py3-none-any.whl Python 3 none any Details for eknowledge-2025.4.171239-py3-none-any.whl

Total release size: 20.1 kB

Release files / eknowledge-2025.4.171239.tar.gz

Download URL eknowledge-2025.4.171239.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
896de09374636264dbfd69730c37e7f8a6c0de5652e7c46af394cbdee3669073
BLAKE2b-256 checksum
How to use checksums
a4d1a6a90f22ecbc0edb421e673ca3639dabab379598a289725cac879b2b2a8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / eknowledge-2025.4.171239-py3-none-any.whl

Download URL eknowledge-2025.4.171239-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ec1ab5dcbda629a84aee94161b53dae8876aa460c545fc15c2329cfa246a258
BLAKE2b-256 checksum
How to use checksums
332a8113b575085ada8bc8ed1a9b4fe4f14146ac381353e6dd08075116ede200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for eknowledge 2025.4.171239

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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