Git Product home page Git Product logo

Comments (4)

Anush008 avatar Anush008 commented on June 12, 2024

To use local models, you can use https://docs.rs/fastembed/latest/fastembed/struct.TextEmbedding.html#method.try_new_from_user_defined.

If you want some model from HF to be supported, you can raise a PR similar to #54.

from fastembed-rs.

GrisaiaEvy avatar GrisaiaEvy commented on June 12, 2024

To use local models, you can use https://docs.rs/fastembed/latest/fastembed/struct.TextEmbedding.html#method.try_new_from_user_defined.

If you want some model from HF to be supported, you can raise a PR similar to #54.

I mean not through PR, just pass the EmbeddingModel parameter when creating an EmbeddingText, so that it's flexible to use any model on HF.
let model = TextEmbedding::try_new(InitOptions { model_name: EmbeddingModel::new("a model on HF with ONNX file"), show_download_progress: true, ..Default::default() }).unwrap();
I apologise if it's a stupid quetsion because i jsut started learning this project a few days ago :)

from fastembed-rs.

Anush008 avatar Anush008 commented on June 12, 2024

Currently, only models listed in models.rs are supported directly.
If you have the ONNX and tokenizer files locally, you can use the
https://docs.rs/fastembed/latest/fastembed/struct.TextEmbedding.html#method.try_new_from_user_defined method.

from fastembed-rs.

GrisaiaEvy avatar GrisaiaEvy commented on June 12, 2024

Currently, only models listed in models.rs are supported directly. If you have the ONNX and tokenizer files locally, you can use the https://docs.rs/fastembed/latest/fastembed/struct.TextEmbedding.html#method.try_new_from_user_defined method.

Ok, thank you for your answer.

from fastembed-rs.

Related Issues (20)

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.