Replies: 5 comments 9 replies
-
Sqlmodel from the creator of fastapi makes it easy to persist. If you look at parallel tools. We have tools. Response model actually uses tools behind the scenes. |
Beta Was this translation helpful? Give feedback.
-
Hey! Wanted to share our library Similar at a high level to LangGraph (represent your app as a state machine, graph of actions), but has an OS UI for telemetry + persistence built in/pluggable (has a SQLLite persister as well). Also generally less opinionated about LLM tooling than the langstack -- works with instructor quite nicely (the examples just use OpenAI/other LLM endpoints, but instructor obviously allows a very clean patch). You can read about persistence here: https://burr.dagworks.io/concepts/state-persistence/. |
Beta Was this translation helpful? Give feedback.
-
Your reference and what I found there has got me reading for hours ... It is a huge compilation of experience/knowledge. Applied LLMs - What We’ve Learned From A Year of Building with LLMs Prompting Fundamentals and How to Apply them Effectively Your AI Product Needs Evals – Hamel's Blog LLM From the Trenches: 10 Lessons Learned Operationalizing Models at GoDaddy - GoDaddy Blog |
Beta Was this translation helpful? Give feedback.
-
Hey @jxnl I have been able to set up agentic flow with instructor thanks to your cookbooks. They cover so many cases and I love it! with instructor, I am getting structured output, but I also wanna store every conversation as a message, be it Human, Assistant or Tool. I've written a helper function, which converts pydantic base class (Messages) to groq/open-ai compatible list of messages. The problem occurs in case of Tool Message. The Groq / OpenAI endpoint, for tools needs tool_id and other related stuff for the message to be used for providing context to LLM. What should be done in this case? Should I just save ToolMessage as Assistant Message? Here's what I've been cooking, for complex tasks I want to store every conversation that has happened as it will help me in designing stable tasks. 🤔 @jxnl |
Beta Was this translation helpful? Give feedback.
-
It will be great if someone can paste minimal example of multi agent example using instructor or add directly in docs I still can't understand how to build multi agent system using instructor. |
Beta Was this translation helpful? Give feedback.
-
Hi @jxnl,
I recently discovered Instructor through your co-authored blog post, "What we learned in a year of building LLMs," and I've been thrilled to replace my LCEL with Instructor code. The experience has been seamless!
However, I'm now facing a dilemma: how to set up agentic-workflow with Instructor.
Previously, I used LangGraph+LangChain's runnables with SQLite persistence checkpointer. I'd love to hear your thoughts on setting up the desired logic and flow for reliable agentic workflows.
I like LangGraph's concept, particularly how ToolMessage could interact with LLMs, enabling them to reason. In one of my projects, I successfully used LLMs with tools and HITL, but I encountered JsonDecodeErrors and had to craft detailed prompts to make it work. Now, I'm using a smaller LLM with n-shot learning, and it's working as expected with Instructor.
I have two questions:
Looking forward to your insights!
Beta Was this translation helpful? Give feedback.
All reactions