Rivet: How To Run Your Project/Graph As A Node.js Application - Low Code Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024
  • In this tutorial, we guide viewers through the process of running a Rivet graph as a Node.js backend application, focusing on simplifying the setup for non-developers. Key steps include configuring Visual Studio Code, using Node.js and npm, and utilizing a remote debugger for monitoring the graph. The tutorial is designed to make Rivet's integration into web applications accessible and straightforward.
    Links:
    Github project: github.com/ai-...
    Official rivet-node documentation: rivet.ironclad...
    Get Rivet: rivet.ironclad...
    Follow me on LinkedIn: / tim-k%c3%b6hler-ai-mad...
    If you enjoy my content, consider buying me a coffee: www.buymeacoff...

ความคิดเห็น • 19

  • @AIMadeApproachable
    @AIMadeApproachable  8 หลายเดือนก่อน

    If you want to run this with a beautiful chat-ui in the cloud instead, watch this video:
    th-cam.com/video/WY2t1wFg50M/w-d-xo.html

  • @texzes
    @texzes 3 หลายเดือนก่อน

    Thank you for the super-informative reviews! I've been eagerly waiting for new videos, but the notification bell is sadly silent. If it is interesting, could you please provide a detailed look at integrating Rivet into local projects? For example, using functions called by External Call nodes (externalFunctions); processing an array in a function and returning the result in a Rivet project; properly running in Node mode etc..

  • @MaliRasko
    @MaliRasko 8 หลายเดือนก่อน +1

    Thank you, thank you, thank you.. this is so helpful and well explained. Just one thing.. where is the UI?… is it still coming.. I was hoping to see some kind of web UI

    • @AIMadeApproachable
      @AIMadeApproachable  8 หลายเดือนก่อน

      Currently trying to find a simple/low code solution. To sad Rivet is running on node.js, for python there is tools like gradio + streamlit, which have easy to use chat-components etc.

  • @teatray75
    @teatray75 9 หลายเดือนก่อน

    Thank you very much, this is very helpful!

  • @holgergelhausen8616
    @holgergelhausen8616 9 หลายเดือนก่อน

    Fantastic, i need an local Service which i can call from logseq, a wonderful starting point. I am not an developer, but you explain it very good

  • @omulemelvinmichael1414
    @omulemelvinmichael1414 7 หลายเดือนก่อน

    Thanks so much for great video, i would a video on how to create an api for this

    • @AIMadeApproachable
      @AIMadeApproachable  7 หลายเดือนก่อน

      Not sure I am going to create a video about it. But I got this project, which creates an OpenAI SDK compatible API on any Rivet graph: github.com/ai-made-approachable/rivet-chat-api

  • @AIMadeApproachable
    @AIMadeApproachable  8 หลายเดือนก่อน

    If you want to learn how to connect rivet with a chat-ui also watch this video:
    th-cam.com/video/dM8hiOMnMzU/w-d-xo.html

  • @practical-ai-prototypes
    @practical-ai-prototypes 8 หลายเดือนก่อน

    Had no luck running this. node_modules/@ironclad/rivet-core/dist/types/plugins/gentrace/plugin.d.ts:4:87 - error TS2307: Cannot find module '@gentrace/core/dist/models/pipelines-get200-response-pipelines-inner.js' or its corresponding type declarations. and Object literal may only specify known properties, and 'remoteDebugger' does not exist in type 'RunGraphOptions'.

    • @AIMadeApproachable
      @AIMadeApproachable  8 หลายเดือนก่อน

      @practical-ai-prototypes: Does that happen in general or are you using the gentrace plugin in your rivet graph?
      If yes, plugins need to be registered in node.js, e.g.:
      import rivetMongoDbPlugin from 'rivet-plugin-mongodb';
      import * as Rivet from '@ironclad/rivet-node';
      Rivet.globalRivetNodeRegistry.registerPlugin(rivetMongoDbPlugin(Rivet));
      If no it sounds like some issue with Rivet itself. Best ask in discord, the devs might be able to help:
      discord.gg/qT8B2gv9Mg

    • @MikeHeavers
      @MikeHeavers 8 หลายเดือนก่อน

      @@AIMadeApproachable It just happens in general, i.e. I am just trying to reproduce your example. The error occurs when trying to bring in the remote debugger on line 13 of rivet.ts - remoteDebugger: debuggerServer (Object literal may only specify known properties, and 'remoteDebugger' does not exist in type 'RunGraphOptions')

    • @MikeHeavers
      @MikeHeavers 8 หลายเดือนก่อน

      I asked on discord - what finally worked was, in tsconfig, to set up: "skipLibCheck": true, and in rivet.ts of your code, to cast let result = await runGraphInFile(project, { ... } as RunGraphOptions). I noticed in your video the intellisense is complaining about the remoteDebugger too, so maybe you did something similar to get it to compile?

    • @MikeHeavers
      @MikeHeavers 8 หลายเดือนก่อน

      Also - I'm not quite clear how you would take this and actually do something on a website. Seems like all this does is log it to the vscode console. Do you have any advice for how to make this output to an api endpoint or (even better) to a frontend?

    • @AIMadeApproachable
      @AIMadeApproachable  8 หลายเดือนก่อน

      @@MikeHeavers No. Not sure why I did not encounter this bug. Thx for the feedback.
      I will update my github project to include those changes!