Comments (1)
The error was resolved by improving the class structure as follows:
from pydantic import BaseModel, Field
class SectionEvaluation(BaseModel):
score: int = Field(ge=1, le=5)
rationale: str
class EvaluationResult(BaseModel):
about_the_organization: SectionEvaluation
project_overview: SectionEvaluation
scope_of_work: SectionEvaluation
deliverables: SectionEvaluation
proposal_format: SectionEvaluation
rfp_issuer_scoring_method: SectionEvaluation
from instructor.
Related Issues (20)
- Literal while streaming does not work HOT 2
- Optional[List] as field type crashes with streaming HOT 3
- Return types with response_model are less clear now HOT 5
- Can you make it run with open source models like llama HOT 1
- Cohere Schema Parsing ( Must specify type of object )
- Different results with and without Instructor HOT 6
- Async completions type checking error HOT 2
- [Feature]Add log for llm input/prompt text data
- Integrate with new OpenAI json_schema params HOT 1
- Support OpenAI API's new guaranteed structured output HOT 4
- support nested Annotated and set HOT 2
- AttributeError: module 'instructor' has no attribute 'from_openai' HOT 2
- Instructor being able to carry on with the chat after tool calls
- Instructor with Lagchain bind_tools? HOT 1
- [Bug] VertexAI client always fails when `response_model` is None HOT 1
- Streaming for Parallel tool execution
- Using Anthropic's Prompt Caching with Instructor
- Integrate BAML support into Instructor for enhanced LLM function handling and structured output
- Instructor doesn't support dictionary types HOT 1
- Get raw prompt *before* making API call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instructor.