ChatGPT API Integration
G
Gregory Maro
This is a copy/paste from a previous user who opened the idea up for feedback. A year has passed since last brought up and I'm certain we can now agree on how useful this functionality would be.
-
Wiki.js is a powerful and flexible wiki software that allows organizations to create and maintain collaborative documentation and knowledge bases. However, users may sometimes have specific questions that are not covered in the existing documentation, and it can be difficult to find the information they need. To address this issue, we propose adding a chatbox plugin with a GPT-based response system that can provide personalized and relevant answers to user questions.
The chatbox would be a simple interface that allows users to ask questions in natural language. The GPT-based response system would then analyze the question using OpenAI's embedding technology and find the most relevant section of the wiki page. It would then provide a short, concise answer to the user's question, based on the content of that section. If the answer is not satisfactory or the user needs more information, the chatbox can provide a link to the relevant wiki page or allow the user to ask another question.
Implementation:
To implement this feature, we will need to develop a plugin that integrates with OpenAI's GPT models and the existing Wiki.js codebase. The plugin will need to provide a user interface for the chatbox and integrate with the existing search functionality to find the most relevant sections of the wiki page. We will also need to implement the logic for analyzing the user's question using OpenAI's embedding technology and generating an appropriate response.
Testing:
To ensure the quality and effectiveness of this feature, we will need to conduct extensive testing and validation. We will need to test the chatbox plugin in various scenarios and use cases to ensure that it provides accurate and relevant responses. We will also need to test the integration with OpenAI's GPT models to ensure that it can handle a wide range of user questions and provide appropriate responses.
Conclusion:
Adding a chatbox plugin with a GPT-based response system can greatly enhance the usability and accessibility of Wiki.js for users. It can provide personalized and relevant answers to user questions and help users find the information they need quickly and easily. We believe that this feature will be a valuable addition to Wiki.js and will help organizations create and maintain high-quality documentation and knowledge bases.
Tak-MK
I'm against any AI add-on; seems like nowadays everyone wants to add AI to even their fridge.
If you want it, first of all, don't use AI to explain it because that's 0 or negative effort in stating your reasons, and second, do it yourself as a plugin so people who want it can just install it.
Gregory Maro
Tak-MK I have an extremely robust wiki and my users need to find answers quickly. My wiki is private so third party chatbots don't work. I don't need AI to explain anything, I need to use it as a natural language search function. I welcome your thoughts.
Tim Elmer
I agree; this sounds like a fantastic option for a user-developed plugin, and not a core functionality. I'm not sure that this is the best forum to discuss that however. Maybe a more relevant discussion would be support for third-party plugins, either via GraphQL or another mechanism?
Gregory Maro
Tim Elmer It's available as a third party plugin, however, it doesn't work if you add security and make the wiki private.
Tim Elmer
Gregory Maro That seems like an issue with the plugin's integration. You are able to give access to a third party application via GraphQL, even if the wiki is otherwise locked down, unless it is wholely inaccessible from the internet, in which case such an application would need to be hosted locally or granted firewall access.
Gregory Maro
Tim Elmer Thanks Tim! I'll check that solution out and report back.
T
TheMet4lGod
Since I use Wiki.js for a Quality Manual/Document Control system this feature is not useful to me. The tagging system and laying out pages in a hierarchical format with main navigation pages for each department with master page lists is sufficient for me.
Gregory Maro
TheMet4lGod I'm glad it's sufficient for you. I am running a secure, very robust wiki with many, many users for a company. No matter how well I organize everything, users are users and will continue to be users. They can't find what they are looking for. Having an AI integration would be used as a natural language search.
T
TheMet4lGod
Gregory Maro A thing you'll need to keep in mind, though, is that integrating AI means you're going to need some GPU power to run it. It's a non-trivial addition. I assume you have already, but have you tried polling the users to figure out what the common issue(s) for locating pages are and then acting on the feedback?
Nicolas Giard
TheMet4lGod This request is about integrating the chatGPT API, which is managed service provided by OpenAI. You wouldn't be running your own ML models on GPUs...
T
TheMet4lGod
Nicolas Giard Thanks for clarifying. I guess one solution to this would be making the web server "public", but then restricting access to internal IPs only along with other web server security best practices.
Andreas Scheucher
Nicolas Giard There are a lot of ChatGPT API compatible local hostes solutions, like LocalAI.
There really is no reason not to integrate something like this.
Douglas Limaリマドウグラス
Google Gemini 100% free
Gregory Maro
Douglas Limaリマドウグラス I have an extremely robust wiki and my users need to find answers quickly. My wiki is private so third party chatbots don't work. I don't need AI to explain anything, I need to use it as a natural language search function. I welcome your thoughts.