Find answers from the community

Updated 5 months ago

I think the wikipedia tools return

At a glance
I think the wikipedia tools return strings but when indexing them, documents are expected.
So this seems to be a bug in LoadAndSearchToolSpec
Attachment
image.png
L
e
10 comments
what tool did you wrap?
from llama_index.tools.wikipedia import WikipediaToolSpec
Plain Text
wikipedia_tool_spec = WikipediaToolSpec()
wiki_load_and_search = LoadAndSearchToolSpec.from_defaults(
    wikipedia_tool_spec.to_tool_list()[0],
).to_tool_list()
hmm yea. Guess it should probably be converting to documents in the load and search tool
feel free to make a PR
But if it's a bug in LoadAndSearchToolSpec then it should be failing for all wrapped tools which return strings?
not sure πŸ€·β€β™‚οΈ I don't think this gets used often
I feel like most tools return a document, was looking at a few examples
Add a reply
Sign up and join the conversation on Discord