Find answers from the community

b
bajosi
Offline, last seen 2 weeks ago
Joined September 25, 2024
i wonder how else i can make it call the tool...

llama_index.core.workflow.errors.WorkflowRuntimeError: Error in step 'struct': Expected at least one tool call, but got 0 tool calls.
Plain Text
class UserInfo(BaseModel):
    """
    Output containing the response. Structured information about the person.
    """
    name: str = Field(title="Full Name", description="Full name of the person")

sllm = llm_gemini.as_structured_llm(UserInfo)
        query_engine = index.as_query_engine(doc_ids=doc_ids, use_async=True, llm=sllm)

        answer = await query_engine.aquery(
            """
            Based on the context, generate a structured summary of the person.
            """
        )
3 comments
W
b
L
hey. i want to use the seed mechanism of openai. but i use query engine with my data, and it sends some additional data that i don't want to send it in prompt so i can use the seed mechanism properly. how can i choose what data to send what data to exclude in query engine?
7 comments
L
b
how do i send json in prompt?
5 comments
W
b