Cypher Shell -- a shell for querying Neo4j with Cypher
Project description
Cypher Shell
A shell for querying Neo4j with Cypher using LLMs.
Installation
pip install cypher-shell
How to use
python -m cypher_shell --help
or
python -m cypher_shell run --cfg-path configs/movies.yaml
where configs/movies.yaml is a configuration file that contains the node and relationship descriptions.
If no configuration file is provided, the tool will try to generate a schema automatically. This might give worse results.
You need to set the .env file with your OpenAI API key and Neo4j credentials. See .env_template for more information.
Docker
You can also run the tool using Docker.
docker run --env .env -it ghcr.io/lemurpwned/cypher-shell:latest python3 -m cypher_shell run --cfg-path configs/movies.yaml
Run query without LLM
Just preface the query with: cs: and the query will not be rewritten by the llm.
Notes:
- sometimes getting the schema automatically is better than providing it manually.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cypher_shell-0.5.tar.gz.
File metadata
- Download URL: cypher_shell-0.5.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98dc326e99824ac075ae769904e3e51b834e17f74e4f31d7843fd502ca4e9f9b
|
|
| MD5 |
190c195e8841198d2057e4ce044aad5f
|
|
| BLAKE2b-256 |
c16e86cc8f6d8eb04251bfe7c589053f1c1e13029ab1b71f35d768afc1a5457e
|
File details
Details for the file cypher_shell-0.5-py3-none-any.whl.
File metadata
- Download URL: cypher_shell-0.5-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f49f1334f73384f4051c036978ea3d0abc1b631d4e24475417b5aa697aae5d
|
|
| MD5 |
5388f58b9053b9cc494f01a958494982
|
|
| BLAKE2b-256 |
aa8dd3b02c1b38a7d8dcbd8bd2ec5e40b1ee39182f533ea769a5aaed8e23f29f
|