QueryNoteAI is an intelligent assistant that interprets user questions, understands their intent, and either provides direct answers or dynamically generates SQL queries to retrieve relevant data from a connected database.
1. UV
QueryNoteAI uses UV for dependency and environment management. Ensure UV is installed before proceeding.
Ollama is required for running local LLM models. To install:
brew install ollamagraphviz is required for displaying state graphs using pygraphviz
brew install graphviz
uv add --config-settings="--global-option=build_ext" \
--config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \
--config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \
pygraphviz- Pull the desired model:
ollama pull qwen2.5-coder:7b- Start the Ollama service:
ollama serveUpdate the .env file with your database host and credentials.
Note: Make sure to not include any strings or comments in .env file
DB_USER="username" #incorrect
DB_USER=username #correctDB_USER="username" #incorrect
3.1 Update your table and persona details in src/main/constants.py file
3.2 Update prompts based on your usecase at src/main/common.py
To launch the CLI version of QueryNoteAI:
uv run cli_app.pyTo start the web-based frontend:
uv run gradio_app.pyThen, open your browser and navigate to: http://127.0.0.1:7860
- Synchronize the project environment:
uv syncThis command sets up a virtual environment with the appropriate Python version and all required dependencies.
- Configure your IDE to use the virtual environment:
- For JetBrains IDEs like PyCharm, follow this guide.
