Giter Site home page Giter Site logo

Comments (11)

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024 1

Ok, understood. I will add this functionality today.
Thanks for sharing

from sharptoken.

thomasdc avatar thomasdc commented on July 29, 2024 1

See my first comment.

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

Hello @thomasdc !

Thanks for raising an issue.

As far as i understand, embeddings algorithms are caclulated on OpenAI side. This algorithm (most likely some neural network) is not publicly available

from sharptoken.

thomasdc avatar thomasdc commented on July 29, 2024

According to the mentioned docs it uses cl100k_base.

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

@thomasdc could you share please expected behavior?
Would you like to have smth like ?
var encoding = GptEncoding.GetEncodingForEmbeddingModel("text-embedding-3-large");

from sharptoken.

thomasdc avatar thomasdc commented on July 29, 2024

GptEncoding.GetEncodingForModel("text-embedding-ada-002"); was working fine, but throws for text-embedding-3-large

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

https://github.com/dmitry-brazhenko/SharpToken/pulls

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

Thanks for your feddback. I just introduced this change. Should work in the newer version (1.2.15) once it is available in nuget. Probably in 1-2 hours

from sharptoken.

thomasdc avatar thomasdc commented on July 29, 2024

Ok thanks, can you add small as well?

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

@thomasdc could you share the full name please? I will add it

from sharptoken.

dmitry-brazhenko avatar dmitry-brazhenko commented on July 29, 2024

Sorry, I missed it.
#29
it should become available in v.1.2.16
Please let me know if smth does not work

from sharptoken.

Related Issues (15)

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.