Skip to content

mongodb-developer/GenAI-ChatGPT4-Confluent-MongoDB-Vector-Retail

 
 

Repository files navigation

Live Generative AI demo with Open AI - ChatGPT 4, Kafka, MongoDB Atlas Vector Search and D-ID

Architecture:

architecture

Initial Setup:

  • (install express) open a terminal in the folder and run - npm install express
  • Add additional npm installs for what is missing in app.js
  • run - npm i cors
  • run - npm i express http-proxy-middleware
  • run - npm i express morgan
  • Pay attention to the rewrite rules in app.js and update for your MongoDB Atlas and Confluent Cloud Environments
  • (add your api keys) edit the api.json inside the uncompressed folder and replace the emoji with your key
  • When running the app.js at http://localhost:3000 press the "Open Settings" button and add in your D-ID and Open AI API keys.

Start the demo:

  • (bring up the app) in the folder (ctr left click on folder through finder) open the terminal run node app.js
  • You should see this message - server started on port localhost:3000
  • (open the app) in the browser add localhost:3000
  • (connect) press connect you should see the connection ready
  • (stream) press the start button to start streaming

MongoDB Tutorials & Blogs

Node Tutorial
Python Tutorial
MongoDB & Confluent Partner Blog

MongoDB Data Set

Fashion Data Set

Backend QNA Service

Github for back end QNA microservice that performs the Vector search in MongoDB Atlas and returns the results to the digital assistant app is here:
Backend QNA Service

Video

Youtube Application Demo

App:

app

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.4%
  • HTML 39.6%