ad
ad
Topview AI logo

Building a RAG-powered AI legal assistant with Cohere

Entertainment


In today's fast-paced digital landscape, leveraging artificial intelligence (AI) to streamline operations and improve user experience has become paramount. At the forefront of this wave is a collaborative effort between CoHere and Borderless AI, focusing on building the AI-powered global HR assistant known as Al Bernie.

Introduction of the Participants

David Stewart, a Principal Solutions Architect at CoHere based in the DC area, hosts a webinar featuring Edward Robinson, Senior Software Engineering Team Lead at Borderless AI, who is based in Toronto. The webinar aims to explore the retrieval-augmented generation (RAG) use cases specifically surrounding the innovative AI assistant, Al Bernie.

Overview of CoHere and Borderless AI

CoHere specializes in creating scalable and performant foundational models that enterprises can integrate into their products and applications. The company has been working alongside Borderless AI for four months, assisting in incorporating RAG techniques into Al Bernie.

Borderless AI offers a global payroll solution that leverages generative AI to automate the process of onboarding, managing employees, and paying international team members. The aim is to alleviate complexities and risks involved in hiring globally without necessitating the establishment of foreign entities.

Functions of Al Bernie

Al Bernie serves as an AI agent tailored for global HR functions. The team has built its functionalities around common HR tasks such as:

  1. Providing accurate, jurisdiction-specific information regarding labor laws (e.g., minimum wage inquiries).
  2. Assisting in the employee onboarding process through conversational AI, posing complex questions, and helping users through the process seamlessly.
  3. Addressing HR-related queries unique to organizations, such as vacation schedules and days taken off.

Al Bernie is designed to optimize efficiency for HR managers by answering questions and handling repetitive automation tasks.

Demonstration of Al Bernie

In the demo conducted during the webinar, Edward showcased how Al Bernie effectively responds to queries related to different jurisdictions. The assistant can find and surface relevant legal documentation, making inquiries about minimum wage or onboarding processes more straightforward and less cumbersome for HR professionals.

This demo exemplifies how Al Bernie utilizes RAG to gather information and quickly deliver accurate answers based on current legal standards. The AI assistant is also capable of handling complex multi-jurisdictional inquiries, thereby enhancing its versatility.

Technical Insights on RAG Architecture

As the dialogue progressed, David and Edward delved into the technical intricacies associated with the RAG architecture:

  • Architecture Design: The architecture embraced a standard retrieval strategy followed by query processing through generative models. Edward detailed the importance of embedding efficiency, especially for servicing 180 countries, while acknowledging the nuances involved in retrieving the correct documents.
  • Challenge of Hallucination: Early versions of Al Bernie faced challenges with hallucinations during extended conversations. Edward shared the innovative approach of segmenting conversations into identifiable parts, allowing Al Bernie to remain on task effectively while delivering precise responses.

Addressing Performance and User Experience

Performance measurement largely focused on correctness rather than speed, with a heavy emphasis on QA strategies for ensuring accurate responses. Edward explains that while speed improvements through WebSockets enabled user-friendly interactions, maintaining high accuracy remains the priority.

Future Aspirations with AI

As Borderless AI moves forward, there is a keen interest in expanding Al Bernie’s capabilities into areas like contract management and expense tracking, turning what was once labor-intensive into automated processes, ultimately benefiting users and companies alike.

Conclusion

The partnership between CoHere and Borderless AI illustrates the transformative potential of AI in HR processes, paving the way for adaptive, efficient, and compliant methodologies that redefine how businesses manage global talent.


Keywords

  • RAG
  • AI Assistant
  • CoHere
  • Borderless AI
  • Al Bernie
  • HR Automation
  • Labor Laws
  • Query Processing
  • User Experience
  • Accuracy

FAQ

What is RAG?
RAG, or Retrieval-Augmented Generation, combines the strengths of retrieval models and generative models to provide more accurate and contextually relevant AI responses.

How does Al Bernie enhance HR processes?
Al Bernie automates tasks such as onboarding, provides up-to-date labor law information, and answers HR queries in a conversational manner, thus simplifying HR functions.

What challenges did Al Bernie face?
Early on, Al Bernie struggled with accuracy and hallucinations. The team introduced conversation segmentation to keep the model focused and improve overall response accuracy.

How is the user experience improved with Al Bernie?
Using WebSockets for streaming responses ensures users receive answers dynamically and engagingly, enhancing interaction quality while maintaining accuracy.

What are the future plans for Al Bernie?
Borderless AI aims to expand Al Bernie’s capabilities to include functionalities like contract management and expense tracking, increasing its utility for organizations globally.

ad

Share

linkedin icon
twitter icon
facebook icon
email icon
ad