DEV Community

Cover image for 🦜🔗 Track Package Delivery w. Langchain Agent Custom Tools
adriens
adriens

Posted on • Edited on

🦜🔗 Track Package Delivery w. Langchain Agent Custom Tools

☝️ About

Big enteprises build Strategic Plans to project themselves into the future.

OPT-NC makes no exception and has recently designed its own called "Construire demain":

Plan stratégique | OPT-NC

L’OPT-NC a présenté l’élaboration du plan stratégique CONSTRUIRE DEMAIN | OPT 2025 à son conseil d’administration le 16 novembre 2021. Un choix d’orientation a été fait à cette occasion, soutenu par des échanges préalables au gouvernement de la Nouvelle-Calédonie et par de multiples contributions de personnalités politiques, économiques et sociales dans le pays.  

favicon office.opt.nc

A strategic plan may have a lot (maybe plenty) of points... and in the mean time should be resumable into a very few keypoints -let's say 3 -,

so anyone can understand and talk about the big picture with ease.

👉 With this post, we'll dive into a journey where, with the help of various AI driven tools, we will:

  1. 📚 Chat with the plan itself
  2. 🤔 Imagine a near future
  3. 💡 Pitch an idea
  4. 🗣️ Explain & Implement the idea
  5. 🕹️ Play with the prototype
  6. 🎯 Loop back on strategic plan to how it fits
  7. 🔭 Think about other opportunities

💭 About Chatbots & Primary Customer Service

Below some context about ChatBot based service, good to knonw before delivering such services in production:

Image description

🧰 Tools

We will use many tools here:

  • 🧠 Quivr as "the brain" of the Strategic Plan, which holds the knowledge of what the plan we have stored in
  • 🦾 OpenAI : the API that will give us the LLM, the engine that will "do the job"
  • 🤖 ChatGPT : for casual question or little explanations (eg. "What's a LLM ?")
  • 🦜🔗 Langchain : the framework, the "glue" we will use to interact with the LLM
  • 😽 Kor : A tool to extract structured data out raw unstructured text

🎯 What we'll do

In this demo, we'll see how to build very custom tools (add our very own ones) to achieve specific customer-centric tasks... but operated by autonomous AI-driven agent.

At the end, we'll get a kind of connected chatGPT.

📽️ Demo

🤯 What Ive learned and reflexions

  • Trust LLM capabilities (experiment early with tools)
  • Screenwriter role
  • Customer Experience Designer
  • Designing Custom Tools
  • About static content : fallback
  • Agent Contextualizaiotn
  • Agent design
  • Agent & tools unit testing
  • Chatbot KPIs

📚 Must-reads

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (14)

Collapse
 
adriens profile image
adriens

No customer UX without KPis & metrics... this is now available:

Collapse
 
adriens profile image
adriens

Thanks to Quivr:

💝 Thank you for making Quivr and feedback on specifi usecase #1035

Hi,

I'm working at opt.nc/ and I have used Quivr to better understand our Strategiv plan.

Below is a storytelling which relies in part on Quivr :

Thanks a lot for the great app you are delivering 🙏 🤩

Collapse
 
adriens profile image
adriens

💝 Posted to Langchain

Collapse
 
adriens profile image
adriens • Edited

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Collapse
 
adriens profile image
adriens

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay