Choosing the Right Approach for OWASP NestBot AI Assistant #1109
Replies: 4 comments 1 reply
-
considering all the options available here's my take: Accuracy and Relevance
Cost and Maintenance
Slack Integration and real time interaction
Privacy and Security
Flexibility
Overall I think: In short:
|
Beta Was this translation helpful? Give feedback.
-
I would like to share my experience, I have worked with RAG chatbots, i have used LLM APIs with langchain and langraph and also used local models for fun projects :) Based on the key factors mentioned here's my opinion:
Langchain being a flexible and compatible with python and smooth slack integration makes it a great fit for AI assistance nestbot |
Beta Was this translation helpful? Give feedback.
-
I’d go with a hybrid approach, leaning heavily on a fine-tuned LLM trained on OWASP’s Slack data and documentation. If privacy and accuracy are key, self-hosting a fine-tuned Mistral or Llama 3 model with vector search (FAISS) for better retrieval would be ideal. That way, we:
P.S. The only limitation I see is how we’re going to train the model since a conventional one like Llama 3.1 requires significant resources. Maybe we could use Unsloth to optimize the process. I have worked previously on fine tuning of data with respect to medical/ mental health based data (custom dataset with collection of 3 datasets from kaggle) (more of conversation based and suggestive stuff aswell )which took me nealry 50 mins to train on free google colab cpu. |
Beta Was this translation helpful? Give feedback.
-
Many enterprise-grade bots and Q&A systems today use LangChain + LLMs or similar approaches (e.g., Copilot Agents). Among the four approaches considered, LangChain with LLMs (Agentic Workflow) is the optimal choice, especially with a sensitive information filter, as suggested by others. However, for the OWASP community Slackbot, cost control is also an important factor. Proposed Solution: Layered Response Strategy
Tiered Question Handling Development Roadmap Key Decision Factors
|
Beta Was this translation helpful? Give feedback.
-
We're planning to extend NestBot with an AI-powered Slack assistant for OWASP, to help answer common questions, redirect discussions to the right channels, and improve overall engagement within the community.
There are multiple ways we can build this, and we'd like to gather input on the best approach. Below are three primary options under consideration, along with a possible hybrid approach.
1. Custom NLP/ML Model Training
This approach involves training an in-house machine learning model using historical Slack messages, documentation, and structured knowledge sources.
Pros
Cons
2. LangChain with LLMs (Agentic Workflow)
This approach uses pre-trained Large Language Models (LLMs) (e.g., OpenAI GPT, Claude, Mistral) via LangChain to provide intelligent responses, combined with Retrieval-Augmented Generation (RAG) for fetching accurate OWASP-specific answers.
Pros
Cons
3. Rule-Based System with Predefined Responses
This approach uses a structured decision tree or keyword-based system to detect common patterns in questions and provide predefined responses, along with links to relevant OWASP resources.
Pros
Cons
4. Hybrid Approach: Combining Rule-Based System with LLMs
This approach would start with a rule-based system for handling frequently asked questions, while falling back on an LLM when a question does not match predefined patterns. A confidence threshold could determine whether an AI-generated response is appropriate or if the question should be escalated to a human or redirected.
Pros
Cons
Key Factors to Consider
Looking for Community Feedback
We want to hear from developers, AI/ML enthusiasts, and OWASP community members:
Please share your thoughts in the discussion.
Beta Was this translation helpful? Give feedback.
All reactions