GithubHelp home page GithubHelp logo

Comments (4)

zsogitbe avatar zsogitbe commented on July 24, 2024 1

I have added an example which will make some things more clear: #769

from llamasharp.

SignalRT avatar SignalRT commented on July 24, 2024 1

The example is now in the master. Thank you @zsogitbe

from llamasharp.

zsogitbe avatar zsogitbe commented on July 24, 2024

That example uses the OpenAI feature AutoInvokeKernelFunctions, which is not available in LLamaSharp. AutoInvokeKernelFunctions triggers a mechanism to call kernel plugins/functions "automatically". Where automatically means that the chat model indicates to call a function. For this you need a specialized model.

You can make all of this work without the OpenAI part "manually" as follows, you define the kernel functions and you ask the chat model to indicate the user's intention and then call the Kernel function. This is what is actually happening internally in the OpenAI implementation, so you can do the same.

But, this is all a bit outdated because there is a new way called Handlebars plan calling. You can ask a model to create a plan and then execute the plan which may contain a whole process with several plugins and functions.
All of this is state of the art today and relatively complex and you will need some time to understand it...

from llamasharp.

louislewis2 avatar louislewis2 commented on July 24, 2024

@zsogitbe I just would like to thank you for taking the time for the detailed explanation as well as the provided sample.
I hope others will find this as useful as I have.

from llamasharp.

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.