dowhiledev / dowhiledev/nomos

Structured Output vs Function Calling

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
New Feature
Dominant language
Python
Stars
88
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Current Approach of using the Just Structured Output Feature of LLM (Constrained Decoding) though reliable, is expensive in term of token usage and also in time consumption.

Thats why the Function Calling is widely used in the Agent Frameworks for its fast response.

What if we use a hybrid approach where if the user wants speed, we will use prompt based or function calling approach to next the next decision or another approach where we provide each tool as seperate tools + step transition as a tool. and if it fails fallback to the structured output approach.

Such that we are not giving up the reliability but at the same time gains performance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.