Have a look in this topic:
Interesting. So it seems like it has been upgraded for me. There was actually a commit AFTER I had upgraded so it showed up as that for me. I will enable the plugin and see if I can reproduce the bug.
Guys, Iām not recommending using this plugin in Production right now, Iāll put a note in the OP.
If you want to help out with testing, please use a development or staging site.
Once weāve reached stability Iāll re-recommend it for Production.
Iāll put a note in the OP.
Ummm, Iām on the latest version and this is happening:
Iām wondering if the chatbot is responding because it has responded in this channel before.
Thanks.
Werenāt you in the stuck upgrade? Is it possible that itās processing stuff from during the upgrade?
Yes, but it is showing as completed now, after I did āReset Upgradeā and rebuilt.
(Itās ahead of the commit that has supposedly fixed this issue from happening)
Short update, the AI replies in topics/posts should be better. I ran some tests and think something is still not right but at least itās acting with knowledge from the topic.
If you want to help testing this, you can do so to test new topics (in a private category, to start with), mention the AI, provide clear information, numbers are simple to test with. Create a chain of max 10 posts with at least 2/3 numbers (default setting = 5 posts history), then ask if it recalls all the numbers mentioned earlier, in my test it completely āforgotā about one number - while it replied to it earlier.
Current known behavior - then AIBot has been mentioned once in a topic, it keeps replying until a third user comes in.
There are still some bugs with chat - which we will hopefully sort out tomorrow. Want to thank @merefield for the time he puts in. Good night for now.
OK Iāve concluded things are stable now and the obvious big bugs are resolved.
Chat support is finally working properly and Post responses now use the correct history when thereās been an explicit reply to a Post and make much more sense!
Thanks to @jimmynewtron and especially @MarcP for their collaboration and critical feedback.
AIBot seems to be broken in one of my toipcs. Not a concern for me but thought Iād report in case itās useful. Iām pressing the topic reply and itās only me and aibot thatās in the discussion
Message
OpenAIBot: There was a problem: undefined method
user_idā for nil:NilClass`
Backtrace
/var/www/discourse/plugins/discourse-chatbot/app/jobs/regular/chatbot_reply_job.rb:56:in `rescue in execute'
/var/www/discourse/plugins/discourse-chatbot/app/jobs/regular/chatbot_reply_job.rb:51:in `execute'
/var/www/discourse/app/jobs/base.rb:249:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:236:in `block in perform'
/var/www/discourse/app/jobs/base.rb:232:in `each'
/var/www/discourse/app/jobs/base.rb:232:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.8/lib/sidekiq/processor.rb:202:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.8/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.8/lib/sidekiq/middleware/chain.rb:177:in `block in invoke'
Might be an issue from a post created by a prior version. Can you delete all bot posts on that topic and rerun the conversation?
That fixed it yes- thanks. I just deleted the bot messages. However then when I asked it to summarise the thread it didnāt have anything to summarise. Does the history that gets sent to openai count the deleted messages when selecting the number of messages to include?
The resolved issue might still have an impact as it will include linked Posts virtue of a reply regardless of deleted status.
The best thing would be to test it on a fresh Topic tbh.
Also consider my other plugin which is precisely aimed at the job of summarising a Topic using their most optimal model for that task.
I am somehow able to reproduce something related in a newer topic that had convo only with the AIBot.
OpenAIBot: There was a problem: undefined method `reply_to_post_number' for nil:NilClass
Repro - create N
posts (where N
is the history in amount of posts you allow the bot to retrieve), then delete N
posts and ask the bot for a reply.
Works ok for me:
I have another issue: OpenAIBot: There was a problem: undefined method `user_id' for nil:NilClass
Hi, curious does this bot ingest the content of the discourse instance?
No, token limits preclude that and we are not training a model here. We are just prompting the LLM with the last x Posts within the same Topic.
It seems to work better in chat as well, but not as great on Topics/Posts
Do I have to pay to use the bot on my forum?