Find answers from the community

Updated 3 months ago

I have other question I don t know if

I have other question. I don't know if there is a better way to make this function calling or if is better to use other tool. The problem of this code is that if specialty variable passed is for example bloods donation the bot is not going to find it and will return the default message.
e
2 comments
So, I separate the system promt and the client prompt. I cant make the CHAT_TEXT_QA_PROMPT used by the query_tool:
similarity_top_k = 7 _retriever = VectorIndexRetriever( index=_index, similarity_top_k=similarity_top_k ) synth = get_response_synthesizer( text_qa_template=CHAT_TEXT_QA_PROMPT, ) _query_engine = RetrieverQueryEngine( retriever=_retriever, response_synthesizer=synth ) query_engine_tool = QueryEngineTool.from_defaults(query_engine=_query_engine) _all_tools = [query_engine_tool] for tool in tools: _all_tools.append(tool)
Add a reply
Sign up and join the conversation on Discord