Posts

Subscribe to Youtube channel

Install Private GPT library in your PC, train AI Models and Chat with your private docs offline

Image
Private GPT helps you to Ingest your documents and get answers of your questions from your documents, locally/offline. We can implement the PrivateGPT using GitHub open source library called "privateGPT". Following is the the url to access the library which contains completed implementation details including prerequisite like system requirement, software required to run the code. https://github.com/imartinez/privateGPT Using Private GPT library we can query the offline documents without need of internet however while setup we required to connect to the internet. In this article i going to show you how to implement the PrivateGPT in your PC. Following is the list of software to be installed in the PC before installing the PrivateGPT. Visual Studio Code latest GIT Latest Python Visual Studio 2022 (Make sure you select Universal Windows Platform development , C++ CMake tools for Windows components while installing) MinGW installer with gcc component Once you install the above s

Integrate ChatGPT OpenAI API in .NET Core Console Application from scratch.

Image
  In this Article I am going to demonstrate the integration of ChatGPT OpenAI API in .NET Core Console Application from scratch step by step.      Using ChatGPT API we can integrate the AI in our application just we need to call the API with the help of generating the secret key in ChatGPT developer page following is the steps to generate the secret key with screenshots.  You need to login with the ChatGPT credentials before generating the Secret Key.  On right corner of the page, click on personal icon and then click on View Api Key link On API Keys page click on +Create new secret key button  Then type your desired API key name and then click on   Create secret key button Your API key will be generated then click on copy button to copy the key and save it safely. Congratulation!!! your API key is created for use in console application.        Now we have the secret key with us then we can now move to ChatGPT page and get the code for the integration with console application from

Create the react element with JSX and Implement Click event in React App

Image
  In previous article we discussed how to create react app from scratch and we also discussed about the project structure of the react app.In this article i will be discussing about the how to create the react element with JSX and how to implement Click event in React App.       Create the react element with JSX:  In app.js file i will remove the default code returned in the App() method and add the following code. App.Js   import logo from './logo.svg'; import './App.css'; function App() { return ( <span>Hello world!</span> ) } export default App;  then run the below command: npm start  You will get the below output in browser.  now i try to add another span then the below error will be shown in VS Code:  this error is because in react you should have one parent element and under that you can have unlimited child elements. So you need to add the parent div element under that you can add both the span like below example

Getting started with react JS step by step from scratch

Image
 In this article we will be discussing how to create react app from scratch. We will also discuss about the project structure of react app. React JS is an library but most people says its an framework. Its actually an library by using it we can develop robust applications.     For react app we need to have install Node Js on development machine. To download Node JS you can visit below link and install it on your machine. https://nodejs.org/en/download/     I recommend you to always download LTS (Long term support) executable versions only.   Now we have downloaded and installed the node JS, its time to download and install the code editor to manage your code efficiently. I would recommend you that you can go with the Visual studio code. following is the link to download the visual studio code.   https://code.visualstudio.com/   Now we have downloaded and installed visual studio code as well as Node JS. Lets launch the visual studio code, go to menu bar and click on Terminal option >