guidance icon indicating copy to clipboard operation
guidance copied to clipboard

Javascript Support

Open stephenasuncionDEV opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. JavaScript support is currently not available.

Describe the solution you'd like I would like to request JavaScript support.

Describe alternatives you've considered I have considered using alternative libraries or frameworks to achieve similar functionality in JavaScript like langchainjs and my own version. However, the Guidance library stands out due to its specific features and capabilities.

stephenasuncionDEV avatar May 19 '23 02:05 stephenasuncionDEV

Another benefit of JS would be first-class support of js templating languages along with custom helpers instead of the limited, pythonic implementation as included in this library.

I also would encourage use of mustache.js instead of handlebars.js.

Part of the power of guidance is that we can create custom logic to guide responses. Better capabilities of template logic is inline with that mission.

yermie avatar May 24 '23 23:05 yermie

Just made a port for the library: https://github.com/LevanKvirkvelia/salute

LevanKvirkvelia avatar May 31 '23 01:05 LevanKvirkvelia

I like salute but its not a replacement, salute is using code to represent template control structures.

while guidance uses a custom language, which can be easily serialized.

I would still like a 1to1 (syntax) port.

K0IN avatar Jun 05 '23 08:06 K0IN

We have no plans to implement a js version, but as soon as we get server support going it should be easy to call guidance from js

marcotcr avatar Jun 06 '23 16:06 marcotcr

@stephenasuncionDEV I found this Package yesterday, It seems to be in an early stage but I found it very useful: https://github.com/Yawanseh/guidescript

abosaiftaha avatar Jun 08 '23 12:06 abosaiftaha