observedobserver / viz-gpt Goto Github PK
View Code? Open in Web Editor NEWMake contextual data visualization with Chat Interface from tabular datasets. AI data visualization.
Home Page: https://vizgpt.ai
License: Other
Make contextual data visualization with Chat Interface from tabular datasets. AI data visualization.
Home Page: https://vizgpt.ai
License: Other
This repo is now using azure services. Add support for openai services in future.
possabile?
For the online production version of vizgpt at vizgpt, there are some extra works of RAG for vega-lite and SQL.
These part of code is not open sourced yet due to some coupling of supabase architecture. If you are a researcher interested in this domain, welcome to contact me for more details.
Show the distribution of Miles per Gallon.
When button clicked to submit and visualize, error messages pop up. Kindly assist to resolve, thank you.
I want to run this great project in a docker container.
The following is my dockerfile
FROM node:20.2
COPY viz-gpt /app
WORKDIR /app
ENV PATH /root/.yarn/bin:$PATH
RUN curl -o- -L https://yarnpkg.com/install.sh | bash && \
yarn install
# Start the service
CMD ["vercel", "dev"]
And I got the following error when I start this docker image.
2023-05-26 15:53:03 node:internal/modules/cjs/loader:1073
2023-05-26 15:53:03 throw err;
2023-05-26 15:53:03 ^
2023-05-26 15:53:03
2023-05-26 15:53:03 Error: Cannot find module '/app/vercel'
2023-05-26 15:53:03 at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
2023-05-26 15:53:03 at Module._load (node:internal/modules/cjs/loader:923:27)
2023-05-26 15:53:03 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
2023-05-26 15:53:03 at node:internal/main/run_main_module:23:47 {
2023-05-26 15:53:03 code: 'MODULE_NOT_FOUND',
2023-05-26 15:53:03 requireStack: []
2023-05-26 15:53:03 }
2023-05-26 15:53:03
2023-05-26 15:53:03 Node.js v20.2.0
My first try is using npm run dev
instead of vercel dev
. But I got Unexpected end of JSON input
like this link
So I head back to vercel dev
.
ChatGPT let me add yarn add vercel
after yarn install
. But it doesn't work.
You can use HttpsProxyAgent
to access the proxy in vizchat.ts
. PROXY_URL
can be configured in the .env file as shown below:
PROXY_URL=
import {HttpsProxyAgent} from "https-proxy-agent";
const proxy_url = process.env.PROXY_URL;
const agent= new HttpsProxyAgent(proxy_url)
...
const response = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.OPENAI_KEY}`,
},
agent,
body: JSON.stringify({
model: "gpt-3.5-turbo",
messages: messages,
temperature: TEMPERATURE,
n: 1,
}),
});
First of all, this project looks amazing! Thanks for all the good work.
However, I have this error when trying to visualise an example chart. When I pull up the console, I see this:
POST http://localhost:5173/api/vizchat 404 (Not Found)
Perhaps I have to run vizchat
as a server in a separate instance?
Hi, thanks for sharing this wonderful tool. i'm planning to integrate it in my own web application based on Python: is there something (like api) that i can do to integrate viz-gpt in my app?
For some query that cannot be rendered as a chart, such like 'tell me a joke', it should hint the user.
Using VizGPT sends data to Microsoft/OpenAI & uses proprietary GPT model.
The possibility to use other LLMs instead would be nice. Free/open source and local & fine-tuned models could open up other usecases and be a huge improvement.
Great thanks !!!
I need to connect my relational database ( postgres or MySQL) instead of uploading CSV file.
possible?
I am building a much powerful version of vizGPT, with more features to support real-world data analytics. If you are interested to get early access, you can now become a early adopter by sponsoring this project.
Which you will get:
@ https://www.vizgpt.ai/
I believe data is sent to Azure/OpenAI for processing, but there is no awareness about this for the users
When I want to change to another topic or change a dataset, it should clear the context.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.