LLM dashboards with memory
Dashboards that keep context and call tools, instead of starting from a blank prompt.
AI Solutions Developer / UX Lead Consultant
- LangChain
- OpenAI
- Memory
- Tool calling
Overview
At Primordial Technologies I built LLM-powered dashboards with LangChain memory and dynamic tool calling, and worked with the team on OpenAI API integration, including prompt and token changes aimed at lower latency and cost.
The problem
A dashboard that forgets the last turn, or that can only answer from the prompt, forces people to restate context and copy results out by hand. Latency and token cost also had to come down as usage grew.
The solution
LangChain supplied memory and tool calling inside the dashboard. Prompts and token use were tuned with the team so OpenAI calls stayed faster and cheaper. Ontology-driven interfaces and linked-data schemas were explored as preparation for RDF and OWL reasoning, not shipped as a finished knowledge graph.
Key features
Memory across turns
LangChain memory so the dashboard carries context instead of starting over.
Dynamic tool calling
The chain can call tools the dashboard already has, rather than only chatting.
Prompt and token tuning
OpenAI calls were tightened with the team to reduce latency and cost.
Ontology exploration
Linked-data schemas and RDF/OWL interfaces were explored as preparation, not shipped as a finished graph.
Architecture
The dashboard talks to a LangChain chain that keeps memory, calls tools, and sends the request to OpenAI.
- Dashboard
- LangChain
- Memory
- Tool calling
- OpenAI
Tech stack used
- LangChain
- OpenAI
- Memory
- Tool calling
Challenges and how I solved them
Challenge
Each new question arrived without the context of the one before it.
What I did
Memory was built into the LangChain chain so the dashboard could carry context forward.
Challenge
Answers that needed a lookup or an action stayed trapped in the chat.
What I did
Dynamic tool calling let the chain reach the tools the dashboard already had.
Challenge
Longer prompts made OpenAI calls slower and more expensive.
What I did
Prompts and token use were optimized with the team specifically to cut latency and cost.
Results
- Context
- Memory across turns
- Actions
- Dynamic tool calling
- Model
- OpenAI APIs
- Cost work
- Prompt and token tuning
What I learned
Memory and tools are what make a dashboard feel like a product. Prompt and token work belongs in the same design, because a capable chain that is slow or expensive does not stay in use. RDF and OWL stayed exploratory: useful preparation, not a claim of a finished graph.
