Skip to content

Commit 10e8780

Browse files
committed
v0.0.1 - Initial Release
1 parent e3414d4 commit 10e8780

File tree

2 files changed

+85
-1
lines changed

2 files changed

+85
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Change Log
2+
3+
## [0.0.1] 2024-04-28
4+
### Changes
5+
6+
- Initial Release

README.md

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,79 @@
1-
# ai-processor
1+
# `DB` [AI Processor][https://github.com/app-generator/ai-processor]
2+
3+
Simple tool that extracts information from an SQLite source using human language queries. The stack uses a NextJs frontend and a Django (API) for users management and OpenAI interface.
4+
5+
<br />
6+
7+
> Download Sources: private repository, for access contact [AppSeed](https://appseed.us/)
8+
9+
```bash
10+
$ git clone https://github.com/app-generator/priv-ai-processor.git
11+
$ cd priv-ai-processor
12+
```
13+
14+
<br />
15+
16+
> **Django** Backend
17+
18+
Edit `backend-Django/.env` and add you own `OpenAI API KEY`.
19+
20+
```bash
21+
$ cd backend-Django # change DIR to the backend code
22+
$ virtualenv env # create a new virtual environment
23+
$ source env/bin/activate # activate the VENV
24+
$ pip install -r requirements.txt # install modules
25+
$ python manage.py makemigrations # migrate DB
26+
$ python manage.py migrate # apply DB changes
27+
$ python manage.py runserver # Start the development Server
28+
```
29+
30+
The backend starts on Django's default address: `http://localhost:8000`
31+
32+
<br />
33+
34+
> **NextJS** UI
35+
36+
```bash
37+
$ cd frontend-Nextjs # change DIR to the frontend code
38+
$ npm install -g next # Install NextJs globally
39+
$ npm i # install dependencies
40+
$ npm run dev # Start the development Next Server
41+
```
42+
43+
<br />
44+
45+
## How to use the tool
46+
47+
> Create a new user or authenticate using the default one:
48+
49+
- **user** : `test`
50+
- **email** : `test@appseed.us`
51+
- **password** : `pass`
52+
53+
> Add your own OPEN API Key
54+
55+
Access the settings page and save your OpenAI API key
56+
57+
> Upload a new SQLite file
58+
59+
Navigate to the SQLite Uploads file and add a new file. Once uploaded, we can query start quering the database.
60+
61+
> Query the information using OpenAI console
62+
63+
Here are some query samples:
64+
65+
- `List all tables registered in the database`
66+
- `List all products starting with the cheapest`
67+
68+
Once another SQLite file is uploaded, we can query other specific questions.
69+
70+
<br />
71+
72+
## License
73+
74+
[@EULA](https://github.com/app-generator/license-eula)
75+
76+
<br />
77+
78+
---
79+
`DB` [AI Processor][https://github.com/app-generator/ai-processor] - AI/ML Starter provideed **[AppSeed](https://appseed.us)**.

0 commit comments

Comments
 (0)