
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
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.
Install eknowledge
using pip:
pip install eknowledge langchain_llm7
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.
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.
Contributions are welcome! Please open issues or submit pull requests for any bugs, features, or improvements you would like to see.
eknowledge
is MIT licensed, as found in the LICENSE file.
FAQs
A Python package for executing graph generation from textual inputs.
We found that eknowledge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.