Code Monkey home page Code Monkey logo

d-id_langchain_withchatgpt's Introduction

Streaming Live Avatar

A Langchain Retrieval on private data with D-ID and ChatGPT

Initial Setup:

  • (install express) open a terminal in the folder:
  • run this: npm install express
  • run this: npm install langchain
  • run this: npm install openai
  • (add your d-id api key) edit the api.json inside the uncompressed folder and replace the emoji with your key
  • Run a test to ensure yor api is set correctly by checking d-id credit balance: Run test_d_id.js
  • (add your OpenAI api key) edit the config.json inside the uncompressed folder and replace the emoji with your key
  • Run a test to ensure yor api is set correctly by checking ChatGPT: Run test_openai.js
  • Got issues? Cut and paste to ChartGPT and ask for assistance as both tests must woprk before proceeding

Start the demo:

  • You should see this message - server started on port localhost:3001
  • (open index.html app) in the browser add localhost:3001

Start the demo:

  • Open a session in your terminal in the folder with our code run this: node app.js
  • You should see this message - server started on port localhost:3001
  • (open index.html app) in the browser add localhost:3001
  • (connect) press connect you should see the connection ready
  • (Enter Chat Text) press the start button to start streaming

Final Thoughts

  • Be patient and enjoy the puzzle if things are not working right away -- stay with it you will get it!

For help See the Yuutube: https://youtu.be/KhYjGOzMcFw

image

d-id_langchain_withchatgpt's People

Contributors

jjmlovesgit avatar

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.