extra_info
dictionary of metadata. By default this metadata is injected into each text chunk derived from the document, so you can use this to inject global context about the section!# define query configs for graph # "similarity_top_k": 3, # or 1 query_configs = [ { "index_struct_type": "simple_dict", "query_mode": "default", "query_kwargs": { "similarity_top_k": 3, "verbose": True # "include_summary": True }, "query_transform": decompose_transform }, { "index_struct_type": "list", "query_mode": "default", "query_kwargs": { "response_mode": "tree_summarize", "verbose": True } }, ]
use_async=True, response_mode="tree_summarize"
` # define query configs for graph # "similarity_top_k": 3, # or 1 query_configs = [ { "index_struct_type": "simple_dict", "query_mode": "default", "query_kwargs": { "similarity_top_k": 3, "verbose": True, "use_async": True, "response_mode": "tree_summarize" # "include_summary": True }, "query_transform": decompose_transform }, { "index_struct_type": "list", "query_mode": "default", "query_kwargs": { "response_mode": "tree_summarize", "verbose": True } }, ]
` query_configs = [ { "index_struct_type": "simple_dict", "query_mode": "default", "query_kwargs": { "similarity_top_k": 3, "verbose": True, "use_async": True, "response_mode": "tree_summarize" # "include_summary": True }, "query_transform": decompose_transform }, { "index_struct_type": "list", "query_mode": "default", "query_kwargs": { "response_mode": "tree_summarize", "verbose": True } }, ]
` query_configs = [ { "index_struct_type": "simple_dict", "query_mode": "default", "query_kwargs": { "similarity_top_k": 3, "verbose": True, "use_async": True, "response_mode": "tree_summarize" # "include_summary": True }, "query_transform": decompose_transform }, { "index_struct_type": "list", "query_mode": "default", "query_kwargs": { "response_mode": "tree_summarize", "use_async": True, "verbose": True } }, ]
` Thought: Do I need to use a tool? Yes Action: Vector Index Italy Action Input: Online Privacy
` Thought: Do I need to use a tool? Yes Action: Vector Index Germany and Vector Index Belgium Action Input: age for child's consent Observation: Vector Index Germany and Vector Index Belgium is not a valid tool, try another one.
llm=ChatOpenAI(temperature=0, model_name="gpt-4", max_tokens=512)
and chat-conversational-react-description
, it will give:{ "action": "Graph Index", "action_input": "Compare/contrast the age for child's consent in Germany and in Belgium" } > Current query: Compare/contrast the age for child's consent in Germany and in Belgium? > New query: What is the age for child's consent in Belgium? ... > New query: What is the age for child's consent in Germany? ... > New query: What is the age for child's consent in France? ... > New query: What is the age for child's consent in Italy? ... > New query: What is the age for child's consent in Spain? ...