Find answers from the community

Updated 12 months ago

Hi guys. I'm trying to understand why

Hi guys. I'm trying to understand why the message printed to the console (verbose output: .from_tools(verbose=True) ...) is different than the final message I'm getting back in Postman when testing?

I have disabled templates, post processors and response synthesizer:
Plain Text
retriever = VectorIndexRetriever(
    index=index,
    similarity_top_k=3
  )
  node_postprocessors = [
        SimilarityPostprocessor(similarity_cutoff=0.5),
        MetadataReplacementPostProcessor(target_metadata_key="window"),
        # KeywordNodePostprocessor(
        # required_keywords=["news"],
        # exclude_keywords=["playground"])
    ]
  response_synthesizer = get_response_synthesizer(
    response_mode="compact",
    # text_qa_template=text_qa_template,
    # refine_template=refine_template
  )
  vector_db_query_engine = RetrieverQueryEngine(
    retriever=retriever,
    # node_postprocessors=node_postprocessors,
    # response_synthesizer=response_synthesizer
  )
  vector_query_engine_tool = QueryEngineTool(
    query_engine=vector_db_query_engine,
    metadata=ToolMetadata(
      # FIXME: Inconsistent naming, should be `article_database` instead
      name="news_database",
      description="Get news articles and information about political entities and events. Use a detailed plain text question as input to the tool.",
    )
  )
  return OpenAIAgent.from_tools(
    [latest_articles_tool, vector_query_engine_tool],
    llm=OpenAI(model="gpt-3.5-turbo-1106"),
    verbose=True,
    # system_prompt=system_prompt,
    temperature=0,
    seed=1234
  )
L
r
v
3 comments
The agent reads the tool response, and re-interprets it in the context of the chat history
Following on your answer. Is there anyway for each tool has individual prompt and I tried implement as retriever, not sure any inputs?
@Logan M Thank you!
Add a reply
Sign up and join the conversation on Discord