Replies: 1 comment 1 reply
-
To integrate a Bing search tool into your
By following these steps, you should be able to integrate the Bing search tool successfully [1][2]. |
Beta Was this translation helpful? Give feedback.
-
To integrate a Bing search tool into your
By following these steps, you should be able to integrate the Bing search tool successfully [1][2]. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I try to add a bing search tool to a as_chat_engine object but it doesn't ask bing so maybe I'm missing something ?
I don't get any errors by executing this code so I'm confused.
There is my code :
Cortana = HuggingFaceLLM(
model_name="meta-llama/Llama-3.2-3B-Instruct",
tokenizer_name="meta-llama/Llama-3.2-3B-Instruct",
context_window=context_size,
model_kwargs={"torch_dtype": torch.bfloat16},
generate_kwargs={"temperature": 0.1, "top_k": 3, "top_p": 0.95},
system_prompt=system_prompt,
device_map="auto",
)
from llama_index.tools.bing_search import BingSearchToolSpec
tool_spec = BingSearchToolSpec(
api_key=subscription_key,
lang="fr-FR")
global_chat_engine = global_index.as_chat_engine(
chat_mode="context",
memory=ChatMemoryBuffer.from_defaults(token_limit=token_limit),
token_limit = token_limit,
llm = Cortana,
streaming=True,
similarity_top_k=1,
system_prompt=system_prompt,
tool_spec = tool_spec,
)
Beta Was this translation helpful? Give feedback.
All reactions