Langchain

2 posts

lineOriginal article

Implementing a RAG-based (opens in new tab)

To address the operational burden of handling repetitive user inquiries for the AWX automation platform, LY Corporation developed a support bot utilizing Retrieval-Augmented Generation (RAG). By combining internal documentation with historical Slack thread data, the system provides automated, context-aware answers that significantly reduce manual SRE intervention. This approach enhances service reliability by ensuring users receive immediate assistance while allowing engineers to focus on high-priority development tasks. ### Technical Infrastructure and Stack * **Slack Integration**: The bot is built using the **Bolt for Python** framework to handle real-time interactions within the company’s communication channels. * **LLM Orchestration**: **LangChain** is used to manage the RAG pipeline; the developers suggest transitioning to LangGraph for teams requiring more complex multi-agent workflows. * **Embedding Model**: The **paraphrase-multilingual-mpnet-base-v2** (SBERT) model was selected to support multi-language inquiries from LY Corporation’s global workforce. * **Vector Database**: **OpenSearch** serves as the vector store, chosen for its availability as an internal PaaS and its efficiency in handling high-dimensional data. * **Large Language Model**: The system utilizes **OpenAI (ChatGPT) Enterprise**, which ensures business data privacy by preventing the model from training on internal inputs. ### Enhancing LLM Accuracy through RAG and Vector Search * **Overcoming LLM Limits**: Traditional LLMs suffer from "hallucinations," lack of up-to-date info, and opaque sourcing; RAG fixes this by providing the model with specific, trusted context during the prompt phase. * **Embedding and Vectorization**: Textual data from wikis and chats are converted into high-dimensional vectors, where semantically similar phrases (e.g., "Buy" and "Purchase") are stored in close proximity. * **k-NN Retrieval**: When a user asks a question, the bot uses **k-Nearest Neighbors (k-NN)** algorithms to retrieve the top *k* most relevant snippets of information from the vector database. * **Contextual Generation**: Rather than relying on its internal training data, the LLM generates a response based specifically on the retrieved snippets, leading to higher accuracy and domain-specific relevance. ### AWX Support Bot Workflow and Data Sources * **Multi-Source Indexing**: The bot references two main data streams: the official internal AWX guide wiki and historical Slack inquiry threads where previous solutions were discussed. * **Automated First Response**: The workflow begins when a user submits a query via a Slack workflow; the bot immediately processes the request and provides an initial AI-generated answer. * **Human-in-the-Loop Validation**: After receiving an answer, users can click "Issue Resolved" to close the ticket or "Call AWX Admin" if the AI's response was insufficient. * **Efficiency Gains**: This tiered approach filters out "RTFM" (Read The F***ing Manual) style questions, ensuring that human administrators only spend time on unique or complex technical issues. Implementing a RAG-based support bot is a highly effective strategy for SRE teams looking to scale their internal support without increasing headcount. For the best results, organizations should focus on maintaining clean internal documentation and selecting embedding models that reflect the linguistic diversity of their specific workforce.

figma2 min readCurated summary

Give ideas more space with Jambot | Figma Blog

Jambot is a FigJam widget that brings ChatGPT’s generative capabilities into a collaborative, visual canvas. Figma created it to move beyond the limitations of linear chat, allowing people to ideate, branch into related topics, summarize discussions, and explore ideas together. The project reflects Figma’s broader view that AI interfaces should become more spatial, tangible, and multiplayer. ## From Chatbots to Creative Collaboration - Large language models can simulate spontaneous brainstorming and provide a broad base of knowledge. - ChatGPT’s conversational format is useful but can feel one-sided and restrictive during creative work. - Jambot was designed to make AI interaction more collaborative and adaptable to group ideation. ## Limitations of Linear Chat - Chat conversations present ideas in a one-dimensional sequence. - When ChatGPT offers multiple possibilities, exploring one path makes it difficult to return to another without scrolling and repeating questions. - Linear chat makes it unnatural to branch into related topics, compare alternatives, or see how ideas connect. ## A Visual Alternative - Jambot began as an internal Figma AI hackathon project described as “a visual version of ChatGPT.” - Its concept draws on networked-thinking tools such as Roam Research and Logseq, which link and organize ideas across pages. - The team was also inspired by Albus, which gives AI interaction a more visual structure. - LangChain influenced the idea of making sophisticated AI workflows visually tangible rather than requiring users to write code. ## Rethinking AI Interfaces - The team argues that users are currently “stuck in chat boxes,” much as they became dependent on video-call interfaces like Zoom. - Existing AI interfaces can feel primitive and command-line-like, despite decades of progress in graphical user interfaces. - Designers have an opportunity to develop new interaction patterns that provide more context, identity, and flexibility than simple conversational prompts. - A visual canvas can make AI more approachable while supporting branching ideas and shared participation. ## What Jambot Enables - Ideation and brainstorming directly inside FigJam. - Summarizing conversations or collections of ideas. - Riffing on concepts and extending them in multiple directions. - Collaborative exploration of AI-generated output within a multiplayer workspace. Jambot’s central recommendation is to treat AI as something that can inhabit richer environments than a chat window. By placing generative AI on a shared visual canvas, Figma aims to give teams more space to explore, connect, and develop ideas together.

Read original(opens in new tab)