Find answers from the community

Updated 7 months ago

do you have any idea why _CBEventType.

do you have any idea why _CBEventType.SUB_QUESTION is not called?
the code in the thread

Plain Text
**********
Trace: chat
    |_CBEventType.AGENT_STEP -> 5.045546 seconds
      |_CBEventType.LLM -> 0.980289 seconds
      |_CBEventType.FUNCTION_CALL -> 3.450443 seconds
      |_CBEventType.LLM -> 0.0 seconds
**********
T
L
6 comments
Plain Text
    qualitative_question_engine = SubQuestionQueryEngine.from_defaults(
        query_engine_tools=vector_query_engine_tools,
        service_context=service_context,
        response_synthesizer=response_synth,
        verbose=settings.VERBOSE,
        use_async=True,
    )

    top_level_sub_tools = [
        QueryEngineTool(
            query_engine=qualitative_question_engine,
            metadata=ToolMetadata(
                name="qualitative_question_engine",
                description="""
A query engine that can answer questions about a set of documents that the user pre-selected for the conversation.
Any questions about document or Uber related information or other should be asked here.
""".strip(),
            ),
        ),
    ]


    chat_engine = OpenAIAgent.from_tools(
        tools=top_level_sub_tools,
        llm=chat_llm,
        chat_history=chat_history,
        verbose=settings.VERBOSE,
        system_prompt=SYSTEM_MESSAGE.format(doc_titles=doc_titles, doc_names=doc_names, curr_date=curr_date),
        callback_manager=service_context.callback_manager,
        max_function_calls=3,
    )

    return chat_engine
not it works.,
okay, sometimes it works, sometimes not

how to force it to always use a document?

btw, it is sec-insights repository. just trying to understand llama deeply
Attachment
image.png
and it always returns "I apologize" to my questions
q: What documents are incorporated by reference in the ANNUAL REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 of UBER TECHNOLOGIES, INC?

answer:
I apologize, but based on the information available, I couldn't find the specific documents that are incorporated by reference in the ANNUAL REPORT of Uber Technologies, Inc. It's recommended to refer to the actual report or consult with the company directly for the complete and accurate list of documents incorporated by reference.
@Logan M sorry to calling you. do you have any idea?
this sounds like the LLM you are using being overally safe in the response
I don't understand. what do you mean?
Add a reply
Sign up and join the conversation on Discord