Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theluqmn/litecheck
Make inquiries on your SQLite database using Llama 3.1 8b, locally, using Ollama.
https://github.com/theluqmn/litecheck
24hour-challenge database llama3-1 ollama python sqlite
Last synced: about 16 hours ago
JSON representation
Make inquiries on your SQLite database using Llama 3.1 8b, locally, using Ollama.
- Host: GitHub
- URL: https://github.com/theluqmn/litecheck
- Owner: theluqmn
- Created: 2024-09-05T09:58:35.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2024-09-06T17:13:45.000Z (19 days ago)
- Last Synced: 2024-09-24T21:27:10.722Z (about 21 hours ago)
- Topics: 24hour-challenge, database, llama3-1, ollama, python, sqlite
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LiteCheck
Get insights on your SQLite databases, powered by Ollama, llama 3.1 8b
----
Make inquiries on your SQLite database using Llama 3.1 locally, with no internet connection required. A fun project for me to complete in a single night.## How to run
### Prerequisites
- You need to have Ollama installed in your device, and the Llama 3.1 8b model.
- Python 3.12 or higher (this project was written with Python 3.12.4)### Getting started
1. Clone the repository
2. Run the Python file, with the directory of your SQLite3 database
`python main.py C:\Users\test\Documents\Code\test\database.db`
3. Give some moments for the code to process your database, then you should be able to chat with the model.## To-do
- [x] Read all tables in database
- [x] Link database to Ollama
- [x] Chat with Ollama
- [ ] Model run SQL commands according to prompts
As of now, I have no plans to support other SQL-based databases.I have an idea to create an interactive, web-based version that still runs locally using Ollama. Just an idea, not gonna work on it at the moment.