Skip to main content

Natural language querying for GraphDB using LangGraph agents

Project description

Graphwise Logo

Talk to Your Graph (TTYG)

TTYG is a Python module that enables Natural Language Querying (NLQ) using GraphDB and LangChain Agents. It includes a lightweight GraphDB client and a collection of tools designed for integration with large language model (LLM) agents.

License

Apache-2.0 License. See LICENSE file for details.

Installation

pip install ttyg

Maintainers

Developed and maintained by Graphwise. For issues or feature requests, please open a GitHub issue.

Usage

A sample usage is provided in the Jupyter Notebook, which demonstrates natural language querying using the Star Wars dataset.

Run Jupyter Notebook

Prerequisites

  • Install conda. miniconda will suffice.
  • Install Docker. The documentation is created using Docker version 28.3.3 which bundles Docker Compose. For earlier Docker versions you may need to install Docker Compose separately.

Create and activate the Conda environment

conda create --name ttyg --file conda-linux-64.lock
conda activate ttyg

Install dependencies with Poetry

Depending on the LLM provider you want to use, run one of the following:

poetry install --with llm-openai --with jupyter
# or
poetry install --with llm-anthropic --with jupyter

Run the Notebook

jupyter notebook

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

ttyg-4.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttyg-4.2.0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file ttyg-4.2.0.tar.gz.

File metadata

  • Download URL: ttyg-4.2.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.12 Linux/6.14.0-1017-azure

File hashes

Hashes for ttyg-4.2.0.tar.gz
Algorithm Hash digest
SHA256 51d8e3d27c8b459360d0e2780249f922be6ecc8992996cb5b809b6ec3a68ff9c
MD5 75c5a6421df09dce3c6eb56097b4bbf2
BLAKE2b-256 eef8bc442a1ad4516ed2cee40cd2fd60f0f5a8d9698024ba2ee61a3e76e0798f

See more details on using hashes here.

File details

Details for the file ttyg-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: ttyg-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.12 Linux/6.14.0-1017-azure

File hashes

Hashes for ttyg-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3430ba1834501025ac9038f519da5c83116593c71e34966b91a13cb45d2a9cb8
MD5 b9a5f3c77e1d812c7029118809f58b55
BLAKE2b-256 a9e9599c922a72f354a63e36f8733f1f63880a45908cd2d693d59a1ecf2c6f36

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