Code Monkey home page Code Monkey logo

viz-gpt's Issues

RAG for vega-lite visualization

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.

Cannot find module /app/vercel when trying to dockerize this project

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.

Should we add support for configuring proxy access?

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,
        }),
    });

unexpected end of JSON input

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?

Integration in third party application

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?

feat: support other LLMs

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.

Get early access to a formal cloud version

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:

  • 50% recurring discount for Pro plans of cloud version of vizGPT as long as you are using the product.
  • Early access to the cloud version of vizGPT and all insider features.

Click here to become an early adopter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.