馃憢 Welcome to Xiaojing’s Blog

Hi, this is Xiaojing. I鈥檓 documenting my learning notes on AI/ML in this blog.

Using Anthropic Models with Open WebUI

When it comes to code generation and critique, I鈥檝e found Anthropic鈥檚 models to be my top choice. In my experience, they consistently deliver higher quality outputs compared to OpenAI鈥檚 GPT-4. Claude.ai, the official WebUI for Anthropic models, provides a streamlined interface for interacting with these models. However, it has a significant drawback: strict rate limits that can be quickly reached. To overcome this rate limit of claude.ai or chatgpt.com, many developers turn to open-source solutions....

August 23, 2024 路 4 min 路 Xiaojing Wang

AI Design Pattern: Guardrails

Guardrails in AI are essential controls that ensure AI systems do not generate or process inappropriate content. These controls fall into two categories: input guardrails and output guardrails. Input guardrails filter out unsuitable data before it reaches the AI system, while output guardrails prevent the AI from producing harmful content. In this post, we鈥檒l build on an example from the OpenAI cookbook to create a GenAI chatbot equipped with both input and output guardrails....

August 18, 2024 路 9 min 路 Xiaojing Wang