- Data Talent Pulse
- Posts
- 👩💻 Harnessing LLMs for Enterprise Applications
👩💻 Harnessing LLMs for Enterprise Applications
DTP #27: Plus, Amazon announces new AI chatbot
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/afba636e-4791-4cea-a795-75cc92d921ef/Featured_Image_DTP_27.jpg?t=1701408321)
In a blog post from GitHub, they list the lessons they learnt as they built and scaled GitHub Copilot, a Large Language Model (LLM) enterprise application. Their three key takeaways: “Find it,” “Nail it,” “Scale it.”
In their case, they identified AI's role in aiding developers, focusing on code suggestions within the IDE. Iterative development based on user feedback streamlined GitHub Copilot, adapting to evolving AI capabilities. Prioritizing user-centric design and security, they readied the tool for broader use.
We look at how one can categorize different levels of LLM implementation, take a deeper dive into these 3 stages, how they may translate for any enterprise, and look at when it may be a better idea to Build vs. Buy, below.
💼 AI in Business
Amazon Announces AI Chatbot for Business
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/31efc751-20bd-48f2-a3ee-67ded6dfba88/Amazon_AI_ChatBot.jpg?t=1701408322)
Image generated by Midjourney
Amazon announced an AI-powered chatbot ‘Q’ for its AWS users this past week:
Q can answer queries, generate content, and perform actions based on a deep understanding of a company's systems, data repositories, and operations.
Integrated with various organizational apps, Q learns organizational structures, concepts, and product names, offering solutions tailored to specific business needs.
Q's functionalities extend to generating content like blog posts, emails, and summaries, as well as executing actions such as creating service tickets and updating dashboards.
Capabilities include troubleshooting network issues, generating app code, facilitating code transformations (currently supporting Java upgrades), and integrating with Amazon's first-party products like AWS Supply Chain and QuickSight.
Q enhances Amazon Connect, aiding customer service agents with suggested responses and post-call summaries, emphasizing privacy and user permission controls.
Q ensures authorized access and filters sensitive information, aiming to address concerns about generative AI and data security.
It's compared to Microsoft's Copilot for Azure and Google Cloud's Duet AI but offers a broader spectrum of services, attracting attention as a significant announcement during Amazon's re:Invent conference.
Categorizing levels of LLM implementation
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/f0dd31aa-1ee9-45a6-b1fa-7d70dc137bae/MicrosoftTeams-image__5_.png?t=1701333898)
Level 1: The most fundamental integration, utilizing an uncomplicated API connection to an LLM. It caters to routine information-related activities such as generating and summarizing text and evaluating sentiments. With swift deployment requiring minimal developer input, these primary use cases serve as an excellent initial step for businesses exploring AI-driven support.
Level 2: Tailored LLMs, adjusted using organizational data, enabling the LLM to execute specialized tasks within specific domains, such as crafting a finance department FAQ or translating IT support inquiries. This process needs increased resources and sophisticated methodologies like fine-tuning and retrieval augmentation.
Level 3: The interlinking of several LLMs to accomplish intricate, multi-tiered functions, such as delivering multilingual support in IT and HR, content moderation, or enhancing operational efficiency within supply chains for enterprises. Executed correctly, these applications often yield significant impact.
Level 4: A comprehensive deployment across an enterprise, catering to a diverse array of functions. This level involves the pairing of multiple LLMs with proprietary models and integration across numerous enterprise systems. Potential use cases: Aiding decision-making processes by supplying valuable insights, overseeing compliance and security measures.
By identifying a viable use case (explored below) one can place their desired implementation at one of these 4 levels.
FINDING A VIABLE USE CASE
In the initial phase of exploration, focus on pinpointing a specific challenge that could be effectively addressed by AI, with a targeted scope that facilitates swift market entry and significant impact.
Identify and prioritize beneficiaries to streamline their tasks
For example: Task acceleration and minimized work process disruptions for professionals
Focus on a specific phase of the work process
Example within development: Enhanced coding functions within the Integrated Development Environment (IDE)
Commit to seamless integration with existing solutions
For example: avoiding necessitating significant changes in developers' workflows
BUILDING A MODEL
At this stage emphasize iterative development, user-centric design, and adapting to emerging technology.
Iterative Development: Utilize A/B testing to acquire genuine user feedback, fostering quick iterations and learning from failures.
Revisiting Decisions: Reassess past decisions and reconsider approaches (keeping the rapid advancements in generative AI in mind), such as interactive chat functionalities and address sunk cost fallacies.
SCALING THE MODEL
Applicable especially if planning to provide the model for general consumption:
Model Readiness for General Availability (GA): Emphasis on ensuring AI model consistency, managing user feedback, and establishing key performance metrics is crucial for readiness in the GA phase. Prioritize measures for security and responsible AI usage to filter out insecure or offensive code suggestions.
Enhancing Quality and Reliability: Acknowledge and address the probabilistic nature of LLMs, which can produce unpredictable responses. Strategies such as parameter modification and response caching help minimize randomness, reduce variance, and enhance overall performance.
User Handling and Feedback Management: Implement strategies like a waitlist system to manage early users effectively. Analyze user feedback comprehensively to identify issues, refine performance metrics, and track the adoption rate of generated code.
Security Measures: Focus on security by incorporating filters to discard code suggestions that may introduce vulnerabilities like SQL injection. Empower developers with tools like code references to make informed decisions and address concerns about code alignment with publicly available sources.
When should you BUILD vs BUY?
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/ba3180cc-08d4-45ce-8e4c-8b92b8708018/Build_vs_Buy_v1.jpg?t=1701408322)
This decision rests on a few crucial elements, primarily the size of the engineering team and their proficiency in handling Large Language Models.
Smaller teams or those lacking extensive experience in LLMs might encounter challenges with the intricacies and resource demands of advanced implementations, potentially favoring an off-the-shelf solution.
Factors such as cost and time-to-market play pivotal roles. While a tailored solution could offer customization and long-term value, it often accompanies higher initial expenses and extended development periods.
Businesses in highly competitive landscapes or rapidly evolving markets might find that the delay in market entry, inherent in crafting a solution, offsets the advantages it brings. Purchasing a pre-made solution, despite potential upfront expenses, can expedite market penetration—an advantageous edge in utilizing LLMs for competitive advancement.
Ultimately, the decision between building and buying should strike a balance encompassing your team's capabilities, deployment urgency, and the specific requisites of your business across diverse LLM implementation tiers.
💻 Platform Highlight
Portkey - Platform offering an LLMOps stack for monitoring, model management, and security and compliance.
LlamaIndex - Tool developed by Anthropic which creates vector indexes of text for ultra-fast semantic search using LLM embeddings.
Haystack - An end-to-end platform providing document search interfaces using LLMs.
🌐 From the Web
Businesses face challenges in LLM-based applications due to hallucinations, generating misleading information. Galileo Labs created a Hallucination Index evaluating 11 LLMs. Galileo's evaluation metrics aid in identifying hallucination risks, aiming to expedite reliable AI deployment.
Large language models (LLMs) hold diverse applications in enterprises, including translation, malware analysis, content creation, and customer support. Despite their potential, LLMs are in an early stage, requiring defined use cases and careful consideration of their limitations like fact hallucination.
A report aiding in evaluating costs and benefits of diverse implementation methods (API or open-source) in AI integration. It addresses complexities, guiding smarter decisions considering deployment speed and customization, crucial for cost-effective AI solutions.
💬 Social Highlight
Data Scientists on Reddit discuss the most important technical skills for the year: Topic
Thoughts on AI implementation – a tweet
🤖 Prompt of the week
I want you to act as a code analyzer. Can you improve the following code for readability and maintainability? [Insert code]
See you next week,
Mukundan
Reply