Where do I need to put that prompt?? 😭
retriever = PineconeHybridSearchRetriever(embeddings=embeddings, index=index, tokenizer=tokenizer, top_k=3)
retrieval_qa = RetrievalQA.from_chain_type(llm=llm, chain_type="map_rerank", retriever=retriever)
tools = [
Tool(
name="IUTH",
func=retrieval_qa.run,
description="useful for when you need to answer questions about IUTH university, also known as мутиг/вуз/университет/university."
)
]
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, max_iterations=3, early_stopping_method="generate")
response_text = agent.run(query)