Git Product home page Git Product logo

bsfi_chatbot's Introduction

page_type languages products description
sample
python
azure-openai
Sample Application leveraging Assistant API

Contoso Financial Assistant

Banner

Description

This repository contains the backend and frontend code for the Contoso Financials Assistant. Contoso Financial Assistant caters to below types of queries:

  • Contoso financial financial performance in year 2023
  • Contoso financial product lines
  • Late EMI related queries for paurchases made using Conto Premier Credit Card

Tools

  • Code Interpreter
  • Custom Function to Categorize User Query
  • Data file for interest charged on late EMIs
  • Data file for info on Contoso Finacial Product portfolio and financial performance

Installation

  1. Clone the repository.

  2. Install the necessary dependencies for the backend using requirements.txt

  3. Create a .env file in backend folder and specify values of following variables OPEN_AI_EMBEDDING_ENDPOINT=<your_open_ai_embedding_endpoint> OPEN_AI_EMBEDDING_KEY=<your_open_ai_embedding_key> OPEN_AI_EMBEDDING_DEPLOYMENT_NAME=<your_open_ai_embedding_deployment_name>

    OPEN_AI_ENDPOINT=<your_open_ai_endpoint> OPEN_AI_KEY=<your_open_ai_key> OPEN_AI_DEPLOYMENT_NAME=<your_open_ai_deployment_name>

    SEARCH_ENDPOINT=<your_search_endpoint> SEARCH_KEY=<your_search_key> SEARCH_INDEX_NAME=<your_search_index_name>

    BING_KEY=<your_bing_key> BING_ENDPOINT=<your_bing_endpoint>

Usage

  1. Create AI Search index for user query categorization by executing get_intent_init.py
  2. Start the backend server using command flask run --host 0.0.0.0 --port 5007
  3. Launch the frontend application by opening assistant.html file in your browser.
  4. Sample conversation: Tell me about performance of contoso financials in 2023. Or I purchased a Washing Machine on EMI Card. My EMI is 1000 Rs for 12 months.
    I missed my last EMI. How much do i pay now?

bsfi_chatbot's People

Contributors

jasonchanhku avatar

Watchers

 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.