almutareb / insurance-advisor-agent

0 stars 0 forks source link

Add a function for query rewriting #26

Closed almutareb closed 2 months ago

almutareb commented 2 months ago

Is your feature request related to a problem? Please describe. create a tool that takes the original query and rewrites it using a chain

Describe the solution you'd like create a function that handle the generation of queries, it can use a chain to create a better search query based on the given initial query, context and intended tool (vector store/google)

Describe alternatives you've considered This can be combined with query expansion or "storm" method, to draft multiple queries, to cover different perspectives

Additional context The search queries created by the agents are too shallow or simple, resulting in sub bar retrieval results