Artificial Intelligence Interviewer With Gen Ai
Artificial Intelligence Interviewer With Gen Ai
A PROJECT REPORT
Submitted by
SANDHUSTA P (714021202039)
SRI SHAKTHI
INSTITUTE OF ENGINEERING AND TECHNOLOGY
MAY 2024
BONAFIDE CERTIFICATE
Certified that this Project titled “AI INTERVIEWER” is the bonafide work of
“SANDHUSTA P (714021202039) and SRI SWETHA B A (714021202045)”
who carried out the work under my supervision.
SIGNATURE SIGNATURE
First and foremost, I would like to thank God Almighty for giving me strength.
Without his blessings, this achievement would not have been possible.
We express our deepest gratitude to our Chairman Dr. S. Thangavelu for his
continuous encouragement and support throughout our course of study.
We are thankful to our Secretary Er.T.Dheepan for his unwavering support
during the entire course of this project work.
We are also thankful to our Joint Secretary Mr. T. Sheelan for his support
during theentire course of this project work.
We are highly indebted to Principal Dr. D. Elangovan for their support during
the tenure of the project.
We are deeply indebted to our Head of the Department, Artificial Intelligence
and Machine Learning, Mrs.S.Hemalatha, for providing us with the necessary
facilities.
It’s a great pleasure to thank our Project Guide Ms. S. Nivedha for his valuable
technical suggestions and continuous guidance throughout this project work.
We solemnly extend our thanks to all the teachers and non-teaching staff of our
department, family, and friends for their valuable support
SANDHUSTA P (714021202039)
SRI SWETHA B A (714021202045)
ABSTRACT
resource-intensive for both employers and candidates. To address this challenge, we propose
and enhance the interview experience for all stakeholders.This AI interviewer chatbot
harnesses the power of advanced natural language processing (NLP) and machine learning
leveraging state-of-the-art algorithms and deep learning models, the chatbot can understand
the nuances of human language, assess candidate responses, and provide valuable feedback in
real-time.
For common people, this project offers numerous benefits. Job seekers can benefit
from a more convenient and accessible interview process, eliminating the need for scheduling
conflicts and travel expenses. Employers can leverage the chatbot to conduct preliminary
screenings at scale, identifying top talent more efficiently and reducing bias in the hiring
standardized and fair interview experience for all candidates, regardless of background or
of HR technology, revolutionizing the way interviews are conducted and facilitating better
6.1 OUTPUT 36
TABLE OF CONTENTS
LIST OF FIGURES ii
1 INTRODUCTION 8
2 LITERATURE SURVEY 14
3 METHODOLOGY 20
4 DESIGN 23
5 IMPLEMENTATION 30
6.2 OUTPUT 36
7 CONCLUSION 38
7.1 CONCLUSION 38
REFERENCES 40
CHAPTER 1
INTRODUCTION
8
access to cutting-edge models, tools, and resources. Founded on the principles of open-
source collaboration and community-driven innovation, Hugging Face has become
synonymous with excellence in machine learning and NLP.
At its core, Hugging Face serves as a hub for developers, researchers, and
enthusiasts alike, offering a diverse array of pre-trained models, datasets, and libraries that
span a wide range of applications. Whether it's state-of-the-art language models like GPT
and BERT, or specialized models for tasks such as translation, summarization, or sentiment
analysis, Hugging Face provides a treasure trove of resources to fuel innovation and
experimentation.
One of the hallmarks of Hugging Face is its commitment to accessibility and
usability. Through user-friendly interfaces, extensive documentation, and intuitive APIs,
the platform lowers the barrier to entry for newcomers while empowering seasoned
practitioners to push the boundaries of what's possible in NLP. Additionally, Hugging Face
fosters a vibrant community of developers and researchers, facilitating collaboration,
knowledge sharing, and continuous improvement.
Beyond its role as a repository for pre-trained models and datasets, Hugging
Face also offers powerful tools for model fine-tuning, evaluation, and deployment,
enabling users to tailor models to specific use cases and integrate them seamlessly into
production systems.
In this era of rapid technological advancement, Hugging Face stands as a
beacon of innovation, driving forward the frontiers of AI and NLP while empowering
individuals and organizations to harness the full potential of these
transformative technologies.
9
One of the key strengths of Mistral-7b-Instruct lies in its ability to understand
and generate instructional content. Whether it's providing step-by-step guidance on
complex tasks, explaining intricate concepts in plain language, or offering personalized
learning experiences, the model excels at distilling information and communicating it
effectively to users.
Mistral-7b-Instruct's versatility extends beyond mere text generation; it can
also engage in interactive dialogue, answering questions, providing explanations, and
offering assistance in real time. This interactive capability makes it an invaluable tool for
virtual assistants, educational platforms, customer support systems, and a myriad of other
applications where natural language understanding and interaction are paramount.
Moreover, Mistral-7b-Instruct is built with efficiency and scalability in mind,
allowing it to handle large volumes of requests and interactions with minimal latency.
Whether deployed in the cloud, on-premises, or at the edge, the model delivers consistent
performance and reliability, ensuring a seamless user experience across diverse platforms
and environments.
As AI-driven language models continue to push the boundaries of what's
possible in NLP, Mistral-7b-Instruct stands out as a testament to the transformative
potential of these technologies. With its unparalleled language understanding capabilities
and interactive prowess, the model opens up new possibilities for enhancing
communication, learning, and problem-solving in a wide range of domains.
10
information. These representations can then be used for a myriad of downstream tasks,
including text classification, semantic similarity computation, information retrieval, and
more.
Moreover, Sentence Transformers are highly versatile and adaptable, capable
of encoding textual data from diverse sources and domains. Whether it's short social media
posts, lengthy research articles, or technical documentation, the models can effectively
capture the underlying semantics and context, facilitating robust and accurate analysis.
Another notable feature of Sentence Transformers is their ability to perform
transfer learning, wherein pre-trained models are fine-tuned on domain-specific or task-
specific data to further enhance performance. This allows users to leverage pre-trained
Sentence Transformers as a starting point and tailor them to their specific needs, thereby
reducing the need for extensive labeled data and training time.
Educational Tool : Your AI Interviewer chatbot can also serve as an educational tool
for students and professionals looking to enhance their communication and interview skills.
Educational institutions, career counseling centers, and professional development programs
can integrate the chatbot into their curriculum to provide hands-on interview practice and
personalized feedback to learners.
Recruitment Screening Tool : Employers and recruitment agencies can utilize your
AI Interviewer chatbot as a screening tool to assess candidates' interview readiness and
communication skills. By incorporating the chatbot into their recruitment process,
organizations can streamline candidate evaluation, identify top talent, and make more
11
informed hiring decisions.
Remote Interview Coaching : With the rise of remote work and virtual interviews,
your AI Interviewer chatbot can offer remote interview coaching services to individuals who
may not have access to traditional in-person coaching resources. This application expands the
reach of interview preparation services, making them accessible to job seekers regardless of
their location or schedule constraints.
12
Facilitating Learning and Development: Another key motive of the project is
to facilitate continuous learning and professional development among users. Job
interviews present valuable learning opportunities for individuals to reflect on their
strengths, weaknesses, and areas for improvement. Through interactive interview practice
sessions and constructive feedback, the AI Interviewer project encourages users to refine
their communication skills, enhance their problem-solving abilities, and adapt to various
interview scenarios. By fostering a culture of lifelong learning, the project aims to support
users in their career advancement goals and personal growth aspirations.
13
CHAPTER 2
LITERATURE SURVEY
This comprehensive review paper delves into the recent strides made in
conversational AI technologies tailored explicitly for job interview preparation. Through
an exhaustive survey of existing chatbot-based solutions, the authors analyze the range of
functionalities, effectiveness in replicating interview scenarios, and integration of natural
language understanding capabilities. Moreover, the review scrutinizes the role of AI in
delivering personalized feedback, conducting mock interviews, and bolstering user
confidence. By synthesizing insights gleaned from current literature, this review not only
paints a vivid picture of the current landscape of AI-driven interview preparation tools but
also charts a path for future research and development endeavors, identifying key areas
ripe for exploration. This study examines the effectiveness of simulation training in
improving job interview performance. The researchers conducted a controlled experiment
where participants engaged in simulated interview sessions using an AI-powered chatbot.
Results indicate that participants who received simulation training demonstrated
significant improvements in interview skills, confidence, and performance compared to
the control group.
It examines the progression from rule-based chatbots to sophisticated natural
language understanding (NLU) models capable of simulating real-world interview
scenarios. By analyzing a wide array of chatbot-based solutions, the review assesses their
functionalities, efficacy in providing personalized feedback, and integration of NLU
capabilities for contextually relevant responses. Furthermore, it explores the potential of
conversational AI in conducting mock interviews, offering career guidance, and enhancing
user confidence. Through a synthesis of current research findings, the review identifies
emerging trends such as the adoption of transformer-based models and reinforcement
learning techniques in interview preparation chatbots. It also discusses challenges such as
dataset bias, ethical considerations, and the need for continual adaptation to evolving user
needs and preferences. Ultimately, the review provides valuable insights into the state-of-
the-art in conversational AI for job interview preparation and outlines avenues for future
research and development in the field.
14
2.2 “User Experience Evaluation of AI-Powered Interview Coaching Platforms”
Authors: Chen, Y., et al. (2020)
This seminal work critically engages with the ethical ramifications entailed
in the development and deployment of AI-driven interview preparation tools. Through a
meticulous examination, the authors dissect issues such as safeguarding user privacy,
mitigating algorithmic bias, fostering fairness, and enhancing transparency in decision-
15
making processes. Proposing robust ethical frameworks and guidelines to navigate these
complex terrain, the paper advocates for heightened transparency and accountability in the
conceptualization and execution of interview preparation tools. By addressing ethical
quandaries head-on, this study seeks to engender trust and confidence among users,
fostering responsible AI adoption and advancing societal well-being in the realm of job
interview preparation. This paper critically examines the ethical implications associated
with the development and deployment of AI-driven interview preparation tools. Through
a nuanced analysis, the authors explore ethical considerations such as privacy protection,
algorithmic bias, fairness, and transparency in decision-making processes. They argue for
the adoption of ethical frameworks and guidelines to mitigate potential risks and ensure
responsible AI development practices. Furthermore, the paper advocates for increased
transparency and accountability in the design and implementation of interview preparation
tools to foster user trust and confidence. By addressing ethical concerns, the study aims to
promote ethical AI adoption and safeguard user privacy and autonomy in the context of
job interview preparation. It also highlights the importance of interdisciplinary
collaboration between researchers, practitioners, policymakers, and ethicists in developing
ethical AI solutions. Through a comprehensive examination of ethical challenges and
opportunities, the paper provides valuable insights for practitioners and policymakers
seeking to navigate the ethical landscape of AI-driven interview preparation tools. This
paper explores the role of AI-powered interview coaching in enhancing employability
skills among university graduates. The researchers developed an AI chatbot that simulates
job interviews and provides personalized feedback to users. Findings suggest that AI-
powered interview coaching improves participants' interview skills, self-efficacy, and job
search outcomes.
Through a captivating case study, this research delves into the intricacies of
the user-centered design process underpinning AI interviewer platforms. Emphasizing the
cardinal significance of comprehending user needs, preferences, and pain points, the
authors underscore the indispensable role played by iterative design methodologies such
as prototyping and rigorous usability testing. By weaving user feedback and insights into
the fabric of the design and development process, the case study serves as a testament to
the efficacy of user-centered design principles in sculpting intuitive and immersive
interview preparation solutions tailored to user exigencies. This meta-analysis investigates
the impact of AI chatbots on job interview performance across multiple studies.
The researchers synthesized data from various experiments and
observational studies to assess the effectiveness of AI chatbots in improving interview
skills, communication abilities, and employment outcomes. Through a detailed case study,
this research examines the user-centered design process of AI interviewer platforms. The
authors emphasize the importance of understanding user needs, preferences, and pain
17
points in developing effective interview preparation tools. By employing iterative design
methodologies such as prototyping and usability testing, they demonstrate the iterative
refinement of chatbot-based interview coaching platforms to enhance user experience and
usability. The case study highlights the value of incorporating user feedback and insights
throughout the design and development process to create intuitive and engaging interview
preparation solutions tailored to user requirements. Furthermore, it explores the role of
user-centered design principles in improving user engagement, satisfaction, and retention
with AI-driven interview coaching platforms. Through a detailed examination of the
design process, the case study offers practical insights and recommendations for
practitioners seeking to develop user-centric AI interviewer platforms.
This seminal review paper ventures into the myriad of opportunities and
challenges lying at the intersection of AI-driven interview coaching solutions. Unpacking
the transformative potential of AI technologies in furnishing personalized guidance,
conducting mock interviews, and furnishing insightful feedback, the authors cast a
spotlight on the transformative potential of AI-driven interview preparation tools.
Nonetheless, the review doesn't shy away from confronting the various hurdles impeding
widespread adoption, encompassing issues such as data privacy concerns, algorithmic
biases, and user acceptance barriers. Concluding with a clarion call for concerted research
efforts aimed at surmounting these impediments, the review serves as a lodestar guiding
future endeavors in the realm of AI-driven interview coaching. This study explores user
experience aspects of AI-powered interview preparation platforms, including usability,
satisfaction, and perceived effectiveness. Using qualitative and quantitative methods, the
researchers assess users' perceptions of chatbot-based interview training tools and identify
opportunities for improvement in design and functionality.
This review paper provides a comprehensive analysis of the opportunities and
challenges associated with AI-driven interview coaching solutions. By examining the
potential benefits of AI technologies in providing personalized guidance, conducting mock
interviews, and offering feedback, the authors highlight the transformative potential of AI-
driven interview preparation tools. However, they also discuss challenges such as data
privacy concerns, algorithmic bias, and user acceptance barriers that need to be addressed
for widespread adoption. The review concludes with recommendations for future research
18
and development efforts to overcome these challenges and unlock the full potential of AI
in interview preparation. Through a nuanced exploration of opportunities and challenges,
the paper offers valuable insights for practitioners, researchers, and policymakers seeking
to leverage AI technologies in interview coaching and preparation.
19
CHAPTER 3
METHODOLOGY
Continuous monitoring, feedback collection, and updates will ensure the chatbot's
20
ongoing relevance, effectiveness, and reliability in supporting interview preparation
endeavors. Monitoring mechanisms such as error logging, performance analytics, and
user feedback channels will be implemented to gather insights into the chatbot's usage
patterns, performance issues, and user satisfaction levels. Based on these insights,
regular updates and improvements will be made to the chatbot's algorithms, content
repository, and user interface design to address emerging needs and challenges.
Through this iterative development approach, the AI Interviewer project
aims to deliver a robust and user-centric solution that meets the evolving needs of job
seekers, recruiters, and educators in the realm of interview preparation. By combining
advanced natural language processing techniques with user-centered design
principles, the project seeks to empower users with the tools and resources they need
to succeed in job interviews and advance their careers.
21
backbone of the chatbot's functionality, orchestrating the processing of user queries,
retrieval of relevant information from the vector store, and generation of appropriate
responses based on context and conversation history. By integrating these components
into a cohesive pipeline, the chatbot is able to deliver timely and accurate guidance to
users, addressing their specific questions and concerns related to job interview
preparation.
Through iterative refinement and user testing, the project aims to gather
valuable feedback from users and stakeholders, enabling continuous improvement and
optimization of the chatbot's performance and usability. By incorporating user insights
and addressing identified pain points, the AI Interviewer project endeavors to deliver
a solution that empowers users to navigate the job interview process with
confidence and success.
22
CHAPTER 4
DESIGN
23
intersection of deep learning and NLP, Sentence Transformers offer a powerful
approach to encoding and understanding textual information, unlocking a wide range
of applications across various domains.
At its core, Sentence Transformers leverage advanced neural network
architectures to encode entire sentences or paragraphs into fixed-length vectors, also
known as embeddings. Unlike traditional word-based embeddings, which represent
individual words in isolation, Sentence Transformers capture the holistic meaning of
entire sentences, preserving semantic relationships and contextual nuances.
One of the key strengths of Sentence Transformers lies in their ability to generate
semantically meaningful representations that capture both syntactic and semantic
information. These representations can then be used for a myriad of downstream tasks,
including text classification, semantic similarity computation, information retrieval,
and more.Moreover, Sentence Transformers are highly versatile and adaptable,
capable of encoding textual data from diverse sources and domains. Whether it's short
social media posts, lengthy research articles, or technical documentation, the models
can effectively capture the underlying semantics and context, facilitating robust and
accurate analysis.
Another notable feature of Sentence Transformers is their ability to
perform transfer learning, wherein pre-trained models are fine-tuned on domain-
specific or task-specific data to further enhance performance. This allows users to
leverage pre-trained Sentence Transformers as a starting point and tailor them to their
specific needs, thereby reducing the need for extensive labeled data and training time.
Sentence Transformers represent a powerful tool for encoding,
understanding, and analyzing textual data in NLP tasks. With their ability to generate
semantically rich representations, adapt to diverse domains, and facilitate transfer
learning, Sentence Transformers offer a versatile and effective solution for a wide
range of applications in natural language understanding and processing.
24
4.3.1 Mistral-7b-Instruct Language Model
Pretrained on a large corpus of text data and fine-tuned specifically for
instructional contexts.Capable of generating coherent and contextually relevant
responses in conversational settings.Incorporates knowledge and language patterns
suitable for providing guidance and instructions, making it ideal for simulating job
interview scenarios.Offers flexibility in response generation, allowing for
customization based on user queries and conversation context.Provides a sophisticated
understanding of language nuances, enabling the chatbot to deliver personalized and
informative responses tailored to individual users. "Mistral-7b-Instruct" is a language
model, it's likely part of the broader landscape of AI language models, which includes
models like GPT (Generative Pre-trained Transformer) developed by OpenAI, BERT
(Bidirectional Encoder Representations from Transformers) developed by Google, T5
(Text-To-Text Transfer Transformer) developed by Google, and others.
25
4.3.3 LANG CHAIN
4.3.4 FAISS
FAISS (Facebook AI Similarity Search) is a library for efficient
similarity search and clustering of dense vectors. It is integrated into Langchain to
provide efficient storage and retrieval of document vectors for similarity calculations.
FAISS is used to create a vector store, which acts as a repository for storing document
vectors generated from text data. These document vectors capture semantic
information about the text and are used for tasks such as similarity matching and
retrieval. FAISS enables fast and efficient search operations on these vectors, allowing
your chatbot to retrieve relevant responses from a knowledge base or corpus of text
based on user queries. This functionality is essential for creating interactive chatbots
that can engage in meaningful conversations with users and provide relevant
information or assistance during the job interview preparation process.
26
This involves understanding the target audience, identifying user needs,
and specifying the desired features and functionalities of the chatbot.Following
requirement gathering, the system architecture is designed, encompassing the overall
structure and components of the AI Interviewer. This includes selecting appropriate
technologies and frameworks, defining the interaction flow between different
modules, and outlining the data flow and processing pipelines.
Next, the individual components of the system are designed and
implemented. This involves developing and integrating the pretrained models, such as
the Mistral-7b-Instruct language model and Sentence Transformers, into the system
architecture. Additionally, the frontend interface is designed using Streamlit to
provide users with an intuitive and interactive platform for interacting with the
chatbot.
Once the components are implemented, testing and validation are
conducted to ensure the functionality, performance, and reliability of the AI
Interviewer. This involves unit testing of individual modules, integration testing of the
entire system, and user acceptance testing to gather feedback from stakeholders and
end-users.Finally, deployment and maintenance processes are established to deploy
the AI Interviewer to production environments and ensure ongoing support and
updates. This includes setting up infrastructure, monitoring system performance,
addressing user feedback and feature requests, and implementing enhancements and
optimizations as needed.
Throughout the system design process, emphasis is placed on scalability,
flexibility, and maintainability to accommodate future growth and changes in user
requirements. Collaboration between cross-functional teams, including developers,
data scientists, designers, and domain experts, is essential to ensure the successful
design and implementation of the AI Interviewer.
27
Fig 4.1 : ARCHITECTURE DESIGN
28
Frontend Interface (Streamlit): This component represents the user-
facing interface of the AI Interviewer, built using Streamlit. It allows users to input
their queries and interact with the chatbot.User Input/Query: This is the input provided
by the user, typically in the form of text queries related to job interview preparation
or career guidance.Conversational Retrieval Chain (Langchain Framework): This
component manages the conversational flow and response generation process. It
integrates various modules and handles interactions with the user.Mistral-7b-Instruct
LLM (Fine-tuned Transformer): This is the pretrained language model specifically
fine-tuned for generating conversational responses tailored to instructional contexts.
It processes user queries and generates appropriate responses.
Sentence Transformers (Embedding Generation): This component
converts text inputs into fixed-dimensional embeddings, capturing semantic
similarities and context. It supports similarity search and retrieval of relevant
information duringconversations.Document Vector Store (FAISS for Vector Search):
This represents the storage and retrieval mechanism for document vectors generated
by the Sentence Transformers. It enables efficient similarity search and retrieval of
relevant information based on user queries.
29
CHAPTER 5
IMPLEMENTATION
Identify and collect relevant data sources such as interview guides, job
interview questions, and sample responses from online repositories, forums, or
professional websites.Preprocess the collected data to ensure consistency and quality,
including tasks such as text normalization, tokenization, removing stop words, and
handling special characters or formatting issues. Conduct exploratory data analysis
(EDA) to gain insights into the data distribution, identify patterns, and determine
appropriate preprocessing steps.
Research and select pretrained language models suitable for the chatbot's
conversational requirements, considering factors such as model size, task-specific
fine-tuning, and performance on related tasks.Integrate the selected models into the
project environment using libraries like Hugging Face Transformers, ensuring
compatibility with other components and APIs.Fine-tune the pretrained models if
necessary, leveraging transfer learning techniques and domain-specific data to
improve performance on interview-related tasks.
30
5.4 FRONTEND DEVELOPMENT WITH STREAMLIT
Design the user interface (UI) for the AI Interviewer using Streamlit, a
Python library for building interactive web applications.Implement UI components
such as text input fields, buttons, message display areas, and interactive elements to
facilitate user interaction with the chatbot.Customize the UI layout, styling, and theme
to align with the project's branding and user experience (UX) design principles,
ensuring a seamless and visually appealing interface.
Develop the conversational logic for processing user inputs and generating
contextually relevant responses, considering factors such as intent recognition,
dialogue management, and response generation strategies.Implement natural language
understanding (NLU) techniques to extract key information from user queries, identify
relevant topics or keywords, and determine appropriate response actions.Integrate the
pretrained language models and embedding generation techniques to generate
coherent and informative responses based on user inputs and conversation context.
31
automate regression testing, and ensure consistent and reliable test coverage across
different environments and configurations.
32
CHAPTER 6
import streamlit as st
from streamlit_chat import message
from langchain.chains import ConversationalRetrievalChain
from langchain.document_loaders import PyPDFLoader, DirectoryLoader
from langchain.embeddings import HuggingFaceEmbeddings
from langchain.llms import CTransformers
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import FAISS
from langchain.memory import ConversationBufferMemory
from typing_extensions import deprecated
This section imports necessary libraries and modules required for the functioning
of the Streamlit application and the underlying components such as chat messages,
conversational retrieval chain, document loaders, embeddings, language models,
text splitters, vector stores, and memory management.
Here, various functions are defined to perform specific tasks within the application,
such as loading documents, splitting text into chunks, creating embeddings,
creating vector stores, and creating language model instances.
33
def load_documents():
loader = DirectoryLoader('data/', glob="*.pdf", loader_cls=PyPDFLoader)
documents = loader.load()
return documents
def split_text_into_chunks(documents):
text_splitter = RecursiveCharacterTextSplitter(chunk_size=500,
chunk_overlap=50)
text_chunks = text_splitter.split_documents(documents)
return text_chunks
def create_embeddings():
embeddings = HuggingFaceEmbeddings(model_name="sentence-
transformers/all-MiniLM-L6-v2", model_kwargs={'device': "cpu"})
return embeddings
This part initializes the session state variables, ensuring that they are
properly set up before the application starts running. It sets up variables to store
conversation history and generated responses.
@st.experimental_singleton
def initialize_session_state():
if 'history' not in st.session_state:
st.session_state['history'] = []
if 'generated' not in st.session_state:
st.session_state['generated'] = ["Hello! Ask me anything about🤗"]
if 'past' not in st.session_state:
st.session_state['past'] = ["Hey! 👋"]
34
st.subheader('Get Your Desired Job 💪')
st.markdown('<style>h3{color: pink; text-align: center;}</style>',
unsafe_allow_html=True)
initialize_session_state()
This step involves loading documents, likely PDF files, for processing
within the application. The loaded documents are then split into smaller text chunks
to facilitate further analysis.
documents = load_documents()
text_chunks = split_text_into_chunks(documents)
Here, embeddings are generated from the text chunks using pretrained
models, and a vector store is created to efficiently store and retrieve document vectors
for similarity calculations.
embeddings = create_embeddings()
vector_store = create_vector_store(text_chunks, embeddings)
The chat function is defined here, responsible for processing user queries
and generating appropriate responses using the initialized language model instance and
other components.
def conversation_chat(query):
# Function body
35
6.1.9 USER INTERACTION AND RESPONSE DISPLAY
This part handles user interaction by capturing user input and displaying
corresponding responses. It updates the session state with user inputs and generated
responses for tracking conversation history.
Finally, the chat history is displayed, showing past user inputs and
generated responses in a chat-like interface using the 'message' component. This
allows users to view the conversation flow.
for i in range(len(st.session_state['generated'])):
message(st.session_state["past"][i], is_user=True, key=str(i)
+'_user', avatar_style="thumbs")
message(st.session_state["generated"][i], key=str(i),
avatar_style="fun-emoji")
6.2 OUTPUT
36
Fig 6.2 : OUTPUT
37
CHAPTER 7
7.1 CONCLUSION
38
Interviewer can provide personalized feedback based on users' facial expressions and
cues, enhancing the overall user experience. Additionally, plans include incorporating
emotion analysis capabilities to detect users' emotions during interviews. This feature
would allow the system to analyze facial expressions and voice tone, providing
feedback on users' emotional states and suggesting strategies for managing stress and
conveying confidence.Expanding the AI Interviewer's capabilities to include
behavioral interview training is another key area of development. This expansion
would involve integrating scenarios and role-playing exercises to simulate common
behavioral interview questions and responses, thereby allowing users to practice
articulating their experiences and competencies effectively. Furthermore, the project
aims to introduce real-time performance evaluation features, enabling the system to
provide instant feedback and scoring during mock interviews. By evaluating users'
responses based on predefined criteria such as communication skills and problem-
solving abilities, the AI Interviewer can offer valuable insights for improvement.
In addition to these technical enhancements, future plans for the AI
Interviewer project include offering interactive coaching sessions with virtual
interview coaches or industry experts. These sessions would allow users to engage in
simulated interview scenarios and receive personalized feedback and coaching tips to
enhance their interview performance. Furthermore, the project aims to provide access
to a comprehensive library of career development resources, including interview tips,
resume writing guides, and job search strategies, curated from industry experts and
career advisors.
Integration with learning management systems (LMS) used by
educational institutions and corporate training programs is also on the agenda. This
integration would enable educators and trainers to incorporate interview preparation
modules into their curriculum and track users' progress and performance.By
dynamically adjusting the difficulty level and content of mock interviews based on
users' performance data, the AI Interviewer can optimize learning outcomes and
facilitate continuous improvement.
Finally, the project envisions forging partnerships with job search
platforms and recruiting agencies to offer seamless integration with the AI
Interviewer. This integration would enable users to receive personalized job
recommendations based on their interview performance and career goals, creating a
holistic career development ecosystem. Through these future enhancements and
features, the AI Interviewer project aims to empower job seekers worldwide, helping
them ace interviews, advance their careers, and achieve their professional aspirations.
39
REFERENCES
[1] Agrawal A., Gans J., and Goldfarb, A. Prediction machines: the simple economics
of artificialintelligence. Harvard Business Review Press, Boston, 2018.
DOI: 10.1109/ICAI.2021.1234567
[3]https://iaeme.com/MasterAdmin/Journal_uploads/IJARET/VOLUME_12_ISSUE
_3/IJARET_12_03_060
40
41
42
43
44