Wikidata:Requests for permissions/Bot/SpinachBot
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
Approved--Ymblanter (talk) 19:04, 20 July 2024 (UTC)[reply]
SpinachBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: HTriedman (WMF) (talk • contribs • logs)
Task/s: AI agent-enabled question answering through the creation and execution of complex SPARQL queries on Wikidata. Users tag the bog with wikidata-related questions, and it tries to come up with an answer by iteratively creating SPARQL queries.
Code: https://gitlab.wikimedia.org/htriedman/spinach-bot
Function details: When a properly-formatted query is submitted to SpinachBot (enclosed in spinachbot top
and spinachbot bottom
template tags and the bot is @-tagged), the bot will use chain of thought prompting combined with a limited set of actions it can take (searching Wikidata for a natural language term/ID, getting all statements for a specific QID, running a SPARQL query, and halting) to attempt to create a functional SPARQL query that answers the prompt. If it is unsuccessful, it will suggest some further directions to pursue. After it answers, users can reply to the bot, tagging it, and asking follow-up questions in a discussion format.
Some examples of test interactions between myself and the bot:
- Who are the last 7 prime ministers of France? (conversation)
- What are the plants that are endemic to Australia?
- Who was the 15th mayor of Chicago?
- Which artworks have been displayed at both the MoMA and the Tate?
Right now, the bot is not online on toolforge; I'm running it on my local machine as we test and debug. However, in the near future, I'm hoping to automate it to run and reply to users every 10-15 minutes on toolforge. --HTriedman (WMF) (talk) 16:47, 9 July 2024 (UTC)[reply]
Support Looks good to me --Ameisenigel (talk) 18:03, 9 July 2024 (UTC)[reply]
Support. This way I won't have to bother other users more experienced than me with SPARQL and wait for their answer! Really an interesting and useful bot! I guess it's easier to develop it as a bot than as a tool to be enabled on user's profile?? --Wiccio (talk) 21:05, 9 July 2024 (UTC)[reply]
- @Wiccio Yes, it's a bit easier to develop it as a bot (at least initially) than as a user tool. Happy to hear that this is an exciting prospect for you, that is exactly what we're hoping it does :) HTriedman (WMF) (talk) 22:21, 9 July 2024 (UTC)[reply]