by madrox · 2y ago · 0 comments
If I'm really leaning into multi-tool use for anything resembling a mutation, then I'd like to see an execution plan first. In my experience, asking an AI to code up a script that calls some functions with the same signature as tools and then executing that script actually ends up being more accurate than asking it to internalize its algorithm. Plus, I can audit it before I run it. This is effectively the same as asking it to "think step by step."
I like the idea of Command R+ but multitool feels like barking up the wrong tree. Maybe my use cases are too myopic.
It would be nice to know if this is sort of how OpenAI’s native “file_search” retriever works - that’s certainly the suggestion in some of the documentation but it hasn’t, to my knowledge, been confirmed.
In runtime you only parse the "user question" (user prompt) into a starting and end node, which is equivalent to a function call.
So the question
"What league does Messi play in?"
Is parsed by the llm as
League("Messi")
So if your dag only contains the functions team(player) and league(team), you can still solve the question.
But the llm isn't tasked with resolving the dag, that's code, let the llm chill and do what it's good at, don't make it code a for loop for you
My choice of words was poor: by “pre-baking”, I just meant: generated dynamically at runtime from the user’s query, _before_ you then set about answering that query. The nature of our problem space is such that we wouldn’t be able to design DAG in advance of runtime and have it be useful everywhere.
The answering process itself is then handled by deterministically (in code) resolving the dependencies of the DAG in the correct order, where each node might then involve a discrete LLM call (with function) depending on the purpose. Once resolved, a node’s output is passed to the next tier of the DAG with framing context.
The functions are traditional software (Code, API, SQL) the job of the LLM is only to:
1- Map each type of question into a subsystem/codepath. The functional parsing solution is the most advanced. But a simple version involves asking LLM to classify a question into an enum.
2- To parse the parameters as a list of key/value tuples.
The end. Don't ask the LLM to cook your food, clean your clothes or suck your dick. LLM is revolutionary at language, let it do language tasks.
We are not consumers of a helpful AI assistant, we are designers of it.
This is called defunctionalization and useful without LLMs as well.
You don't have the capacity to "audit" stuff.
Furthermore tool execution occurs not in the LLM but in the code that calls the LLM through API. So whatever code executes the tool, it also orders the calling sequence graph. You don't need to audit it, you are calling it.
How do you know a malicious actor won't try to do these things? How do you protect against it?
SELECT * from foo; DELETE FROM foo ...
...because you know people will deploy a general SQL function or agent
You need to be more specific. In a systems, everything but the output is an argument to something else. Even then the system output is an input to the user.
So yeah, depending on what argument you are talking about you can audit it in a different way and it has different potential for abuse.
whereas, a DSL still aims for accurate and deterministic modeling of the specific usecase.
I don't think you mean Digital Subscriber Line, so may I ask: What is a DSL in this context?
Has anyone seen anyone using this approach? Any resources available?
But Agent!=Language