[Feature Request]: Support for structured text generation via outlines lib. #18923
Replies: 3 comments 2 replies
-
Very interesting idea, would be a great addition to the framework |
Beta Was this translation helpful? Give feedback.
-
I think it would be insteresting having outlines as ChatModel Interface with additional methods that expose the features of outlines but also implementing all Runnable methods. This allowes to use the fast structured output engine of outlines for local funtion calling or grammars. |
Beta Was this translation helpful? Give feedback.
-
can anyone let me know how can i raise feature request ... no one from langchain staff responding to this discussion. I can also contribute it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Outlines provides ways to control the generation of language models to make their output more predictable.
following is the example of how outlines can be used for structured text generation task :
import outlines
model = outlines.models.transformers("WizardLM/WizardMath-7B-V1.1")
Github repo link : outlines
Motivation
current implementation of llamaindex model wrappers for OpenAI gpt's and HuggingFace's open source models doesn't support structured output generation
it will be helpful for generating more robust, formatted and structured output by RAG .
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions