https://github.com/llm-workflow-engine/lwe-plugin-database
LLM Workflow Engine (LWE) Database plugin
https://github.com/llm-workflow-engine/lwe-plugin-database
Last synced: 3 months ago
JSON representation
LLM Workflow Engine (LWE) Database plugin
- Host: GitHub
- URL: https://github.com/llm-workflow-engine/lwe-plugin-database
- Owner: llm-workflow-engine
- Created: 2023-07-13T00:42:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T15:20:26.000Z (about 2 years ago)
- Last Synced: 2024-12-31T22:41:51.575Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLM Workflow Engine (LWE) Database plugin
Database plugin for [LLM Workflow Engine](https://github.com/llm-workflow-engine/llm-workflow-engine)
Send natural language commands to a database
**WARNING: POTENTIALLY DANGEROUS -- DATA INTEGRITY CANNOT BE GUARANTEED.**
## Installation
### From packages
Install the latest version of this software directly from github with pip:
```bash
pip install git+https://github.com/llm-workflow-engine/lwe-plugin-database
```
### From source (recommended for development)
Install the latest version of this software directly from git:
```bash
git clone https://github.com/llm-workflow-engine/lwe-plugin-database.git
```
Install the development package:
```bash
cd lwe-plugin-database
pip install -e .
```
## Configuration
Add the following to `config.yaml` in your profile:
```yaml
plugins:
enabled:
- database
# Any other plugins you want enabled...
# These are the default values.
database:
agent:
verbose: true
database:
default: null
```
## Usage
From a running LWE shell:
```
/database connect sqlite:///test.db
/database List all tables in the database
/database disconnect
```