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 LangGraph 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.0.1 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
# or
poetry install --with llm-databricks --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-1.4.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

ttyg-1.4.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ttyg-1.4.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.11.0-1018-azure

File hashes

Hashes for ttyg-1.4.0.tar.gz
Algorithm Hash digest
SHA256 bcde79fc52b7e3f106ba59d572de04bc4dabad52084f1c1206018317d98cf5fe
MD5 0716ae4725cc5fdde7b0fa45df451218
BLAKE2b-256 53367b04b9b976116b7bc60ec853923633ca54b8dce92644c8ace7e28dd51940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ttyg-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.11.0-1018-azure

File hashes

Hashes for ttyg-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0ab63ce55aa51aa691eeb23c8abbca100bcb3f487b1143599504cc6b65a557
MD5 7a7f28c2c562e3c0ce1ea8f81cc8918d
BLAKE2b-256 6c259f7119e46ddedb5922bc9143551645f0c1dde4e1afb9570136ad81088ac9

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