Coder Social home page Coder Social logo

kubilaygulacdi / hackathon-anadolusigorta Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 322 KB

The project we developed under the "Hack the Insurance" hackathon organized by Coderspace and Anadolu Sigorta.

Python 36.38% Dart 63.62%
android-studio api chatbot dart flask flutter generative-ai llm mobile-app mongodb openai python streamlit chromadb nlp web-scraping datathon hackathon

hackathon-anadolusigorta's Introduction

ASbot - RAG Chatbot & Complaint-Suggestion System

๐Ÿคฉ As part of the first Hackathon of the Hack Series sponsored by Anadolu Sigorta, we developed a chatbot that can answer users' questions quickly and effectively. This chatbot is designed to help users learn about various topics related to Anadolu Sigorta products. In addition, to further enrich the user experience, we integrated a complaint and suggestion system that can be accessed from both the application menu and the chatbot interface. This system allows users to provide direct feedback when they have any problems or suggestions. The aim of our project is to respond quickly and efficiently to users' needs and provide them with comprehensive support. For the convenience of employees dealing with customer complaints, it also summarizes the complaints written by users through LLM and Promp Engineering techniques with a maximum of 3 headings.

Contributors

@kubilaygulacdi - Data Scientist

@aydozy - Mobile Developer

  • 1st place in the competition where 146 team competed.

Tech Stack

  • Web: Streamlit
  • Mobile: Dart & Flutter
  • Generative AI: Langchain, OpenAI
  • Backend: Python, MongoDB, ChromaDB, Flask

ASbot - RAG Chatbot & Complaint-Suggestion System GenAI Features

ChatOpenAI: The ChatOpenAI class is used to create a chat assistant using OpenAI's GPT-3.5 model.

OpenAIEmbeddings: OpenAIEmbeddings is used to turn texts into embedded vectors (embeddings). This enables semantic analysis and comparison of texts.

TextLoader: TextLoader is used to load texts from a specific file. This provides the source texts on which the chat assistant will be based.

RecursiveCharacterTextSplitter: This tool breaks large texts into smaller pieces. This makes large texts easier to process and increases efficiency.

VectorStore: ChromaDB organizes text fragments into vectors and stores them in a repository. This enables fast and efficient text searches.

RetrievalQA: RetrievalQA retrieves the most relevant information from the identified texts to answer users' questions.

query: This function processes the questions received from the user and generates appropriate responses. PromptTemplate and RetrievalQA are used in this process.

Template: This is a format template that makes the Q&A system work by bringing together the user's questions and the underlying texts.

ASbot - RAG Chatbot & Complaint-Suggestion System Mobile Features

HTTP GET Request:

  • Sends an HTTP GET request to a given URL.
  • It performs network requests using the http packet.
  • It is asynchronous and waits for a response to the HTTP request.

ChatScreen Class:

  • Manages the main chat screen of the application.
  • It uses TextEditingController to manage user messages.
  • Stores sent and received messages as a list.
  • Shows a default message to the user at startup.
  • Receives incoming messages from the user and retrieves their replies via API.

ComplaintPage Class:

  • Creates a separate page for the complaint and suggestion form.
  • It uses TextEditingController to get various information from the user.
  • A DatePicker is integrated for date selection.
  • Uses the submitComplaint function to send the complaint data to the API.

WelcomeScreen Class:

  • Creates the application's welcome screen.
  • It shows a background image (acting as a mockup) and contains a button to switch to the chat screen.

ASbot UI

Complaint & Suggestion System Application Image

In our project, we remained faithful to Anadolu Sigorta's existing app designs, thus maintaining brand consistency and offering users a familiar experience. This approach aims to both strengthen brand identity and increase user satisfaction.

ASbot Demo

Chatbot1.mp4

hackathon-anadolusigorta's People

Contributors

kubilaygulacdi avatar aydozy avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aydozy

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.