Coder Social home page Coder Social logo

indirect_prompt_injection_with_resume's Introduction

indirect_prompt_injection_with_resume

Demonstration of Indirect-prompt-injection using a resume as an example. This repository contains a web service that uses AI to determine whether an uploaded CV is good or not.

By creating a CV in some way and inducing the judgement result in white text in the CV, even a CV with no content can be judged as excellent.

Japanese 履歴書を例にした Indirect-prompt-injection のデモです。 このレポジトリでは、アップロードされた履歴書が優れているかどうかを AI によって判定する Web サービスが含まれています。

何かしらの方法で、履歴書を作成し、履歴書の中に白文字で判定結果を誘導することで、内容のない履歴書であっても優れたものであると判定させることができます。

Requirements

  • Python >= 3.10
  • Poetry
  • Anthropic API Key from here

Installation Python modules

$ git clone https://github.com/pacificbelt30/indirect_prompt_injection_with_resume
$ cd indirect_prompt_injection_with_resume
$ poetry install

Run frontend server

$ cd front
$ poetry run python -m http.server 2000

Run backend server

$ cd back
$ export ANTHROPIC_API_KEY=XX-XXXXXXXXXXXX 
$ poetry run uvicorn main:app --reload

Reference

https://kai-greshake.de/posts/inject-my-pdf/ https://embracethered.com/blog/posts/2023/ai-injections-direct-and-indirect-prompt-injection-basics/

indirect_prompt_injection_with_resume's People

Contributors

pacificbelt30 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.