Announcing Faramir: an LLM-powered microservice for validating phone numbers
generative AI microservice architectureContact me for information about consulting and training at your company.
The MEAP for Microservices Patterns 2nd edition is now available
Until July 25th, enroll for $95 in my virtual bootcamp, distributed data patterns in a microservice architecture
It’s been a while since I first wrote an article about LLMs and Microservices. But the various discussions at the ExploreDDD conference - including a panel about the intersection of DDD and LLMs - inspired me to revisit the topic.
Moreover, I was recently reminded of a tweet from 3 years that described how some websites make it difficult to enter information, such as a phone number:
The obvious solution is to use today’s golden hammer: an LLM, or more specifically, OpenAI’s GPT-4.
About Faramir
Faramir is a simple Python-based microservice that uses Langchain and OpenAI to validate and format phone numbers. You could, for example, use Faramir to make it easier for users to enter phone numbers in a web form.
Here’s an example of Faramir in action:
$ http POST localhost:8000/parse phoneNumber=5105551212
HTTP/1.1 200 OK
content-length: 27
content-type: application/json
date: Fri, 29 Mar 2024 22:25:58 GMT
server: uvicorn
{
"result": "(510) 555-1212"
}
To learn more
To learn more about Faramir including the origin of the name, check out the GitHub repository.