Coder Social home page Coder Social logo

hackathon's Introduction

Custom Moderation Policy generation and configuring LLM with custom guidelines, using state of the art Prompt Engineering techniques.

Hello Everyone👋 This is the project made for automatic rule generation based on guidelines provided by user , Thus a user needs to upload a
file in the pdf format , and relax🏖️, the rules will be automatically generated, and could be provided to the Large Language models
.Powered by strong LLM's and libraries like langchain , it converts your PDF into text and does the preprocessing behind the scenes and generates rules for your LLM's📏.

Rule Generation-User could generated custom rules ,based on the pdf provided by the user.
Custom Configuration of LLM- User could provide his rules to the LLM, and LLM would first check the question based on the guideline provided by the user and then answer the question, If the user doesn't provide the guideline, The LLM would check the question based on preconfigured guidelines.
Trained Model for detection of toxic question - This model is being trained on kaggle dataset which predicts and classifies question in 6 categories namely, toxic, severly toxic,obsence, threat, insult , identity hate.

Instruction to run the project

~ For custom rule generation
Go to the directory rule_generation , from there run
pip install -r requirements.txt
After getting all the dependencies installed go to app.py and run
streamlit run app.py
~For running LLM based on user's provided guideline
Go to directory llm_moderated , from there run
pip install -r requirements.txt
After getting all the dependencies installed go to app.py and run
streamlit run app.py
~For seeing our trained model and training notebook you could visit
Toxicity.ipynb notebook

hackathon's People

Contributors

dhruvsanghvi2002 avatar chahatsagarmain 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.