Giter Club home page Giter Club logo

rust-sbert's People

Contributors

cpcdoy avatar dependabot[bot] avatar hokim98 avatar lerouxrgd avatar luxbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rust-sbert's Issues

Any plans to port utils like semantic_search?

Hi @cpcdoy,

I was wondering whether there are any plans to also port some of the auxiliary code around the models from sentence-transformers, like semantic_search. This is probably one of the main use cases of both libraries, so many people might be interested in it in the future.

edit: I saw a contributor also works on https://github.com/lerouxrgd/ngt-rs which should do the trick. @lerouxrgd, an example of combining rust-sbert and ngt-rs would be really really useful for this!

Docker build failed

Docker build failed:

v0vten@Ursu14-Focal-Mango:~/tools/rust-sbert$ docker build -t tch-converter -f utils/Dockerfile .
[+] Building 111.2s (11/12)                                                                                                          docker:default
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 102B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 820B                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/python:3.8-slim                                                                             0.0s
 => CACHED [1/8] FROM docker.io/library/python:3.8-slim                                                                                        0.0s
 => [internal] load build context                                                                                                              0.0s
 => => transferring context: 63.22kB                                                                                                           0.0s
 => [2/8] RUN apt-get update && apt-get install -y     clang     curl     unzip     libssl-dev     pkg-config     make                        27.1s
 => [3/8] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y     --default-toolchain 1.43.1-x86_64-unknown-linux-  27.9s
 => [4/8] RUN pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html                                              16.8s 
 => [5/8] COPY Cargo.toml Cargo.lock ./                                                                                                        0.0s 
 => [6/8] COPY src/bin ./src/bin                                                                                                               0.0s 
 => ERROR [7/8] RUN touch src/lib.rs && cargo build --bin=convert-tensor                                                                      39.3s 
------                                                                                                                                              
 > [7/8] RUN touch src/lib.rs && cargo build --bin=convert-tensor:                                                                                  
0.377     Updating crates.io index                                                                                                                  
39.23 error: failed to select a version for the requirement `regex = "= 1.9.1"`
39.23   candidate versions found which didn't match: 1.8.4, 1.8.3, 1.8.2, ...
39.23   location searched: crates.io index
39.23 required by package `rust_tokenizers v7.0.2`
39.23     ... which is depended on by `sbert v0.4.0 (/)`
------
Dockerfile:33
--------------------
  31 |     COPY src/bin ./src/bin
  32 |     
  33 | >>> RUN touch src/lib.rs && cargo build --bin=convert-tensor
  34 |     
  35 |     COPY utils/prepare_distilbert.py ./
--------------------
ERROR: failed to solve: process "/bin/sh -c touch src/lib.rs && cargo build --bin=convert-tensor" did not complete successfully: exit code: 101

Recommendations for further usage

Hi,

first of all: thanks for that amazing port. I finally managed to get it working even under windows.

Are there any recommendations for further usage of the computed vectors in regards to similarity measurements?

My plan now would have been to embed a given search query as well and then calculate the cosine similarity between search query and dataset entry for each entry from the processed "dataset".

Is there anything against this approach? Are there any more advanced libraries that you know of?

Thanks in advance for the support. I would be open for contribution in any case.

Kind regards
Julian

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.