Giter Site home page Giter Site logo

foobarprotocol / datachad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gustavz/datachad

0.0 0.0 0.0 476 KB

Ask questions about any data source by leveraging langchains (experimental)

Home Page: https://datachad.streamlit.app/

License: Apache License 2.0

Python 100.00%

datachad's Introduction

DataChad ๐Ÿค–

This is an app that let's you ask questions about any data source by leveraging embeddings, vector databases, large language models and last but not least langchains

How does it work?

  1. Upload any file or enter any path or url
  2. The data source is detected and loaded into text documents
  3. The text documents are embedded using openai embeddings
  4. The embeddings are stored as a vector dataset to activeloop's database hub
  5. A langchain is created consisting of a LLM model (gpt-3.5-turbo by default) and the embedding database index as retriever
  6. When sending questions to the bot this chain is used as context to answer your questions
  7. Finally the chat history is cached locally to enable a ChatGPT like Q&A conversation

Good to know

  • As default context this git repository is taken so you can directly start asking question about its functionality without chosing an own data source.
  • To run locally or deploy somewhere, execute cp .env.template .env and set credentials in the newly created .env file. Other options are manually setting of system environment variables, or storing them into .streamlit/secrets.toml.
  • If you have credentials set like explained above, you can just hit submit in the authentication without reentering your credentials in the app.
  • Your data won't load? Feel free to open an Issue or PR and contribute!
  • Yes, Chad in DataChad refers to the well-known meme

How does it look like?

TODO LIST

If you like to contribute, feel free to grab any task

  • Add option to choose model and embeddings
  • Enable fully local / private mode
  • Refactor utils, especially the loaders
  • Add Image caption and Audio transcription support

datachad's People

Contributors

derluke avatar gustavz 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.