Skip to content

Commit 2308a96

Browse files
authored
feat(docs): readme gains mermaid chart (#18)
* readme gains mermaid chart * fix readme * fix readme * fix readme * fix readme * update mermaid * make font black * use generic data sources * update README wording
1 parent c10f72b commit 2308a96

File tree

1 file changed

+51
-15
lines changed

1 file changed

+51
-15
lines changed

README.md

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# lucidata: Natural Language Data Exploration
1+
# lucidata: Democratized data access
22
[![CI](https://github.com/jdhoffa/lucidata/actions/workflows/ci.yml/badge.svg)](https://github.com/jdhoffa/lucidata/actions/workflows/ci.yml)
33
[![Build and Test System](https://github.com/jdhoffa/lucidata/actions/workflows/build.yml/badge.svg)](https://github.com/jdhoffa/lucidata/actions/workflows/build.yml)
44

5-
Lucidata is a secure, internal AI/LLM based tool designed to democratize data access. It translates natural language questions into SQL/API queries over structured datasets, returning clear, traceable answers and exports.
5+
Lucidata is an LLM based query tool designed to democratize data access. It translates natural language questions into SQL/API queries over structured datasets, returning clear, traceable answers and exports.
66

7-
## Features
7+
## Features (WIP)
88

9-
- **Natural Language Interface**: Ask questions in plain English
10-
- **Query Translation**: Automatic conversion to SQL/API queries
11-
- **Result Visualization**: Clear charts and tables
12-
- **Export Options**: Download results in various formats (CSV, Excel, etc.)
13-
- **Query History**: Track and reuse previous queries
9+
- Natural Language Interface: Ask questions in plain English
10+
- Query Translation: Automatic conversion to SQL/API queries
11+
- Result Visualization: Clear tables and charts
12+
- Export Options: Download results in various formats (CSV, Excel, etc.)
13+
- Query Transparency: Track and export generated queries
1414

1515
## Getting Started
1616

1717
### Prerequisites
1818

19-
- Docker and Docker Compose installed on your machine
20-
- Access credentials for supported datasets
19+
- `docker` installed
20+
- OpenAPI `API_KEY`
2121

2222
### Usage
2323

@@ -32,11 +32,47 @@ Lucidata is a secure, internal AI/LLM based tool designed to democratize data ac
3232
docker compose up
3333
```
3434

35-
3. Access the web interface at http://localhost:3000
36-
37-
4. Enter your natural language query in the input field and click "Submit"
38-
39-
5. Review the results and use the export options as needed
35+
3. Enter your natural language query in the input field and click "Submit"
36+
37+
4. Review the results and use the export options as needed
38+
39+
## System Architecture
40+
41+
Below is a diagram showing the flow of information and expected user journey:
42+
43+
```mermaid
44+
graph TD
45+
A[User's Natural Language Input] --> B[Frontend Chat UI]
46+
B --> |Request| C[LLM Query Engine]
47+
C --> |Structured Query| D[Query Runner Service]
48+
D --> |Data Request| E[Data Store]
49+
E --> |Raw Data| D
50+
D --> |Processed Data| F[Response Formatter]
51+
F --> |Formatted Results| B
52+
B --> |Display Results| A
53+
54+
style A fill:#f9f,stroke:#333,stroke-width:2px,color:#000
55+
style B fill:#bbf,stroke:#333,stroke-width:2px,color:#000
56+
style C fill:#bfb,stroke:#333,stroke-width:2px,color:#000
57+
style D fill:#fbf,stroke:#333,stroke-width:2px,color:#000
58+
style E fill:#fbb,stroke:#333,stroke-width:2px,color:#000
59+
style F fill:#bff,stroke:#333,stroke-width:2px,color:#000
60+
61+
subgraph "Frontend"
62+
A
63+
B[Frontend Chat UI<br>React or Teams plugin]
64+
end
65+
66+
subgraph "Backend Services"
67+
C[LLM Query Engine<br>- Prompt templates<br>- Guardrails<br>- Schema-aware]
68+
D[Query Runner Service<br>- SQL engine <br>- API connector]
69+
F[Response Formatter<br>- HTML table<br>- CSV export<br>- Original query<br>- JS widgets/plots]
70+
end
71+
72+
subgraph "Data Sources"
73+
E[Data Store<br>- Emissions Data<br>- Production Data<br>- Climate Scenarios <br>- etc.]
74+
end
75+
```
4076

4177
## Example Queries
4278

0 commit comments

Comments
 (0)