This repo is created within the scope of the CROssBARv2 project to convert natural language questions into Cypher query language. We leverage LangChain to construct Large Language Model (LLM) chains for the generation of Cypher queries and the subsequent parsing of the resulting output. Streamlit is employed to create an interactive user interface for this process.
First, ensure that you have poetry
installed on your system.
poetry --version
If it's not installed, install via pip
:
pip install -U poetry
To install the package:
poetry install
To get into the poetry
virtual env:
poetry shell
pip install -r requirements.txt
To use this package, ensure that you have .env
file present in the root folder of it. You should use the template below:
OPENAI_API_KEY="sk-************************************************"
GEMINI_API_KEY="AI*****************-**-******-*********"
ANTHROPIC_API_KEY="sk-ant-***-***********************-****"
NVIDIA_API_KEY="nvapi-************************************"
GROQ_API_KEY="gsk_****************************************"
REPLICATE_API_KEY="***************************************"
NEO4J_USER="user"
MY_NEO4J_PASSWORD="password"
NEO4J_DB_NAME="neo4j"
NEO4J_URI="neo4j://localhost:7687"