Coder Social home page Coder Social logo

mistral-7b-ensemble's Introduction

Gen AI Open Domain Chatbot

Implementation Stack:

Embedder : BAAI general embedding Retrieval : FAISS Vectorstore Generation : Mistral-7B-Instruct GPTQ model Infrastructure : non-gpu stack, on cpu Data: Plug Any

What all things are Implemented as of now?

  • Utilized mistral-7b gguf quantized model from HF and BAAI/bge-small-en-v1.5 as embedding model.
  • Loading LLM using Ctransformer
  • Retrival QA Chain from Langchain
  • Ensembling Retriever with BM25(Sparse Retriever) and Faiss Retriever(Dense Retriever)
  • ChainLit used as a Chat UI wth AsyncLangchainCallbackHandler
  • InMemoryCaching also enabled in both cpu and gpu.
  • GPU version also available with Instruct Fine Tuning of Mistral-7b model using GPTQ.

Setup

  • Plug your data
  • Download Model
  • Generate Embedding using using python ingest.py
  • Run the model-cpu.py, it is tested in local so using chainlit run model-cpu.py -w --port 8080
  • Run GPU version if you have enebled CUDA chailit is not availbale in gpu version.

New Addons (To solve Lost in Middle Problem) - 3 December 2023

  1. EmbeddingClusterFilter
  2. EmbeddingRedundantFilter
  3. ContextualCompressionRetriever
  4. DocumentCompressorPipeline
  5. LongContextReorder
  6. MergerRetriever in place of EnsembleRetriver
  7. ChromaDB, removed FAISS

29 December 2023

  1. Tested Mixtral-8x7b-instruct-v0.1/MOE Model with existing pipeline.
  2. compression_retriver_reordered added with RetrivalQA Pipeline.

mistral-7b-ensemble's People

Contributors

dark-art108 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amalaj7

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.