AI-Handbook

The AI models used for my personal purposes and their usage (Gemini, Copilot, Dialogflow,...)

MIT License

Stars
17

Bot releases are hidden (Show)

AI-Handbook - Copilot Latest Release

Published by phanxuanquang 10 months ago

1. Set up project:

1.1. Install Python (skip if you had it already):

  • Python (latest version is reccommended)

1.2. Install required package:

pip install sydney-py Flask

2. Usage Guidance:

2.1. Start server:

python Copilot.py

2.2. API Usage:

GET http://localhost:5000/ask?question=YOUR_QUESTION

With YOUR_QUESTION is your question.

3. Documentaion:

  • Can be found HERE.
AI-Handbook - Gemini Pro

Published by phanxuanquang 10 months ago

1. Set up project:

1.1. Install Node.js and npm (skip if you had it already):

1.2. Install required packages:

npm install @google/generative-ai express

2. Usage Guidance:

2.1. Get the API key:

Get the APY key HERE, then replace YOUR_API_KEY with you key.

2.2. Start Node.js server:

node Gemini.js

2.3. API Usage:

POST http://localhost:5000/gemini

With request body (example):

{
    "question" : "Hello!"
}

3. Documentaion:

  • Can be found HERE.
AI-Handbook - DialogFlow V2beta1

Published by phanxuanquang 10 months ago

1. Set up project:

1.1. Install Node.js and npm (skip if you had it already):

1.2. Install required packages:

nmp install @google-cloud/dialogflow express

1.3. Create GCP service account and export it as a .JSON file:

  • Detailed guidance can be found HERE.

1.4. Paste the content of your service account .JSON file into service-account.json file.

2. Usage Guidance:

2.1. Start Node.js server:

node DialogFlow.js

2.2. API Usage:

POST http://localhost:5000/dialogflow

With request body (example):

{
    "question" : "Hello!"
}

3. Documentaion:

  • Can be found HERE.
AI-Handbook - DialogFlow V2beta1

Published by phanxuanquang 11 months ago

  • Read the ReadMe file in DialogFlow folder for detailed integration guidance.
  • Be noted that the integration guidance is used only for version 2 beta 1 of DialogFlow API (latest version until 2023).