Giter Club home page Giter Club logo

gendb-new's Introduction

gendb

Pre-requisites

  • Docker

  • Environment variable OPENAI_API_KEY

Datasets

https://hub.docker.com/r/aa8y/postgres-dataset

make run-db target runs the database with the dataset.

Build

make

Stop, Rebuild, and run everything

make run-all

Run just the test database

make run-db

Run db client

make run-db-client

Run just chatdb

make run-chatdb

Run chatdb in just bash

make run-chatdb-db

Stop everything

make stop-all

Observations

DB

Good to convert something that maps to query to SQL query

  • it really depends on the question: "Can you compare different cities" yields just names of cities. What I'd really like is to take 5 cities from the database and compare them using information from a different source. I.e to use data from the database and then combine it with another source.
  • It never gives up on an answer
  • There is a conversational aspect missing. It could be because of the queries but somehow the results are not being chained in from Openai.
  • I don't know what's constructing the query. I see a lot of HF models too

How do you figure out when to insert a query in the prompt and when not to?

Can you tell me a little bit about JavaScript? yields

SQLQuery: SELECT name, localname, continent, region, population, governmentform
FROM country
WHERE name = JavaScript
LIMIT 1;

Pretty good if javascript were a country.

I wonder if there is merit in doing the reverse - getting results from open AI and really augmenting it with our results and eliminating nonsense. In other words something like stable diffusion.

It appears that it can handle only one database at a time * - ie when pointed to a postgres instance, it needs to be told which database

https://github.com/langchain-ai/langchain/blob/cdfe2c96c530f42fbf2b200c87c617fe5fac6dfd/libs/langchain/langchain/utilities/sql_database.py#L119

Size limitations

Multiple datasources

From a question, how do you figure out where to go if there are multiple datasources?

It would be nice to have a gendb layer to go to

gendb-new's People

Contributors

jvinod avatar

Watchers

 avatar

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.