Skip to main content

A knowledge graph generator using LLMs.

Project description

llm-kg

PyPi

A knowledge graph generator using LLMs.

Dependencies :globe_with_meridians:

Python 3.11.6:

Raison D'être :thought_balloon:

llm-kg is a package that uses LLMs to extract knowledge graphs from freeform text.

Architecture :triangular_ruler:

llm-kg calls an LLM using Groq to turn text into a series of triples.

Installation :inbox_tray:

This is a python package hosted on pypi, so to install simply run the following command:

pip install llmkgext

or install using this local repository:

python setup.py install --old-and-unmanageable

Usage example :eyes:

The use of llmkgext is entirely through code due to it being a library. It has exactly the same semantics as a requests session:

from llmkgext import extract


triples = extract("Rodrigo Martins Vaz, known as Rodrigo (born 24 May 1971), is a retired Brazilian footballer.")
print(triples)

License :memo:

The project is available under the MIT License.

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

llmkgext-0.0.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file llmkgext-0.0.3.tar.gz.

File metadata

  • Download URL: llmkgext-0.0.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for llmkgext-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b75c85d51531f1b1826628d736d85303472ab8dd7e0357936c34626aa160b0fc
MD5 71d97befe9df87af82ce683468f85c20
BLAKE2b-256 c663fe05e353fc5752c83b6d76213b252d948380ebedfefe8339bb4b541e1f27

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