Coder Social home page Coder Social logo

abhishek-ch / vectorverse Goto Github PK

View Code? Open in Web Editor NEW
44.0 6.0 9.0 17.41 MB

Explore Multiple Vector Databases and chat with documents on Multiple LLM models, private LLM models

Dockerfile 2.59% Shell 1.89% Python 95.52%
chatbot chatgpt chromadb elasticsearch embeddings generative generativeai milvus nlp openai

vectorverse's Introduction

๐ŸŽญ VectorVerse

โ’ธ Unveiling Vector Databases & LLM Models

VectorVerse is an exploratory platform that serves as a hub for exploring the output of various Vector Databases. With VectorVerse, you have the opportunity to delve into the results produced by multiple Vector Databases. Additionally, you can utilize VectorVerse to compare the output generated by multiple Language Model (LLM) Models, including private models. This enables you to gain valuable insights and make informed decisions based on a comprehensive analysis of different data sources and models.


My.Movie.mp4

Key Features ๐ŸŽฏ

  • Multiple Vector Databases: VectorVerse let you explore multiple Vector Databases are compare/observe the result.
  • LLM Model: VectorVerse allows you to explore multiple LLM models output like GPT3, GPT4, GPT4All etc.
  • Chat History is maintained using sqlite

Current Support

Vector Databases Support

  1. Qdrant
  2. Chroma DB
  3. Elasticsearch
  4. Redis
  5. FAISS

Current LLM Models Support

  1. GPT3
  2. GPT4
  3. GPT4All
  4. LLama

๐ŸŒต Environment Setup

Create a .env file (template provided as example.env) and update the following

Then, download the LLM model and place it in a directory of your choice:

  • LLM: default to ggml-gpt4all-j-v1.3-groovy.bin. If you prefer a different GPT4All-J compatible model, just download it and reference it in your .env file.
OPENAI_API_KEY=*****
OPENAI_API_BASE=****
OPENAI_API_TYPE=azure
OPENAI_API_VERSION=2023-03-15-preview
MODEL_TYPE=supports LlamaCpp or GPT4All
LLAMA_EMBEDDINGS_MODEL=/path/to/ggml-model-q4_0.bin
MODEL_PATH=/path/to/ggml-gpt4all-j-v1.3-groovy.bin
db_persistent_path=is the folder you want your vectorstore in
collection_name=examples
pdf_uploadpath=OPTIONAL

Note: because of the way langchain loads the SentenceTransformers embeddings, the first time you run the script it will require internet connection to download the embeddings model itself.

๐Ÿ’พ Installation

Docker

Run docker-compose up and browse http://localhost:8501

From Project

  1. Git clone the project

  2. Navigate to the directory where the repository was downloaded

    cd vectorverse
  3. Install the required dependencies

    pip install -r requirements.txt
  4. Run run_es.sh, run_pg.sh & run_redis.sh or set up your own

  5. Run the project and access the url http://localhost:8501

    python -m verse
    

โ›„ Optional (If using OpenAI)

Configure OpenAI Key * If Using OpenAI key, simply export OPENAI_API_KEY=***** * If want to use config file, rename example.env -> .env file inside the vectorverse dir & update either Azure or OpenAI config

By completing these steps, you have properly configured the API Keys for your project.

Prerequisites Installation

  • Redis Stack Server
  • ElasticSearch

Or use docker-compose.yml provided with the code

Run the Tool

  1. Check out the project and go the project root dir VectorVerse

  2. If Redis/ES not preinstalled

docker compose up
  1. Launch the app
python -m verse

References

  1. Powered by Langchain
  2. Uploader Inspired by Quivr

vectorverse's People

Contributors

abhishek-ch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vectorverse's Issues

Layout for multi chat

Create a new layout for Multichat so that all models response could be seen in the single interface

Dockerize the entire project

Dockerize the entire project will make deployment very easy. Currently the docker build fails due to missing c++ binary

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.