omotcha / ds-memo

memo dapp + semantic search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ds-memo

memo dapp + semantic search


WIP..

client dev using python sdk

Dependencies

  1. Transformers, Sentence Transformers

    pip install transformers

    pip install sentence-transformers

  2. Faiss

    conda install -c pytorch faiss-cpu

    or

    conda install -c pytorch faiss-gpu

  3. chainmaker python sdk

    pip3 install git+https://git.chainmaker.org.cn/chainmaker/sdk-python.git

About project setup and data preparation

check {project dir}/setup.py, and set up project and secrets

About deployment

This is a demo deployed on Chainmaker, key steps will be described in {project dir}/docs/deploy.md (WIP).

About transformer models

It seems that in-script hf model downloading has been restricted recently, please download the files manually and place them into {project dir}/models/{model name}

  • please also edit the value of embedding_model_name in {project dir}/configs/common.py, which to be same with {model name}

  • my preference: simcse

About

memo dapp + semantic search

License:GNU General Public License v3.0


Languages

Language:Python 62.1%Language:Go 20.7%Language:Solidity 17.3%