Giter VIP home page Giter VIP logo

privvdb's Introduction

Private Vector Database

安装

  1. 克隆仓库:https://github.com/tc2000731/privVDB.git

  2. 安装依赖:详见 requirements.txt

  3. 安装milvus, 建议采用docker

  4. 启动milvus, 默认会监听19530端口

  5. 下载Glove6B300dCBTest

  6. 在根目录下添加个 .env文件:

    OPENAI_API_KEY = sk-***
    # optional
    AZURE_API_KEY = ea***  
    AZURE_ENDPOINT = "https://test1115.openai.azure.com/" 
    

使用

单独使用文本脱敏
python src/desensitization.py --base_dataset_path <path_to_cbt_train.txt> --embedding_path <path_to_glove.840B.300d.txt>
使用web
python src/web.py --base_dataset_path <path_to_cbt_train.txt> --embedding_path <path_to_glove.840B.300d.txt>
仅使用VDB

关于如何使用为文本脱敏VDB写死的class的一些示例:

python src/test_privVDB.py --base_dataset_path <path_to_cbt_train.txt> --embedding_path <path_to_glove.840B.300d.txt>

关于如何使用原始VDBhandler的一些示例

python src/test_privVDB.py

privvdb's People

Contributors

tc2000731 avatar rainysponge avatar

Watchers

 avatar  avatar

Forkers

saclabs

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.