Find answers from the community

Home
Members
omarhelwe
o
omarhelwe
Offline, last seen 3 days ago
Joined September 25, 2024
o
omarhelwe
·

ollama

when i use query engine with Ollama llm locally , i get these sometimes:
idk why is it exceeding context window even though im using top_k=1 only and a small prompt
3 comments
W
o
Can we make the openai agent give response from data found in index only?
1 comment
L
o
omarhelwe
·

Pydantic

class Clothing(BaseModel):
"""Data model for clothing items"""
name: str
product_id: int
price: float
class ClothingList(BaseModel):
"""A list of clothing items for the model to use"""
cloths: List[Clothing]
using openai agent :=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "lightweight, short-sleeved linen shirt in a pastel color, such as a soft blue or mint green, for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
========================

=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "tailored chino shorts in a neutral color like beige or light grey for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
========================

=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "comfortable loafers or espadrilles for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
========================
19 comments
o
L
W