Devr.AI icon indicating copy to clipboard operation
Devr.AI copied to clipboard

FEATURE REQUEST: Implement FAQ Handler with Web Search for Organizational Queries

Open smokeyScraper opened this issue 1 year ago β€’ 23 comments

Is your feature request related to a problem?

  • [x] Yes, it is related to a problem

Describe the feature you'd like

🌟 Feature Description

This feature re-envisions the FAQ Handler as a specialized tool that leverages web search to answer general, high-level questions about the organization. It is designed to be the go-to tool for users seeking to understand the organization's mission, projects, and operational model.

It will be triggered when users ask questions like:

  • "What is this organization all about?"
  • "How does this organization work?"
  • "What projects do you have?"
  • "What are the main goals of Devr.AI?"

πŸ” Problem Statement

Newcomers and potential contributors often have foundational questions about the organization itself before they dive into specific projects. Answering these questions manually is repetitive and inefficient. While a static knowledge base could work, it risks becoming outdated. A dynamic approach is needed to provide accurate, current information based on the organization's official public presence.

🎯 Expected Outcome

The FAQ Handler will act as an automated public-facing representative, providing instant and accurate information about the organization. The expected outcome is a system that can:

  • Receive a general query about the organization.
  • Dynamically search the web, focusing on the organization's official website, blog, and public repositories.
  • Synthesize the search results into a concise, easy-to-understand answer.
  • Provide source links to allow users to explore the topic further.

πŸ“· Screenshots and Design Ideas

The workflow will be managed by the FAQ Handler tool, which will essentially be a specialized and intelligent implementation of a web search node.

Refer Notion for preferred workflow.

πŸ“‹ Additional Context

By aligning the FAQ Handler with the Web Search tool, we ensure a "single source of truth": the organization's own website and public materials. This approach is highly scalable and low-maintenance.

To make this tool effective, the primary task is not to build a database of FAQs, but to ensure that the organization's website is well-structured and contains clear, findable answers to these common questions. The success of the FAQ Handler is directly tied to the quality of the organization's public-facing content.

Record

  • [x] I agree to follow this project's Code of Conduct
  • [ ] I want to work on implementing this feature

smokeyScraper avatar Jul 10 '25 05:07 smokeyScraper

HEY @smokeyScraper i would like to work on this

Aditya30ag avatar Jul 10 '25 13:07 Aditya30ag

hey @Aditya30ag, sure man, you can give it a try. I'll be reviewing your PR soon.

smokeyScraper avatar Jul 10 '25 14:07 smokeyScraper

Ok Thank you

Aditya30ag avatar Jul 10 '25 14:07 Aditya30ag

hello @smokeyScraper , if this issue is still open and no one is working on it, id love to give it a go.

Rudra775 avatar Jul 20 '25 08:07 Rudra775

yeah @Rudra775, you can pick this. Just shoot your idea how you are planning on this. I'll elaborate on my workflow soon.

smokeyScraper avatar Jul 20 '25 15:07 smokeyScraper

yes @PrithvijitBose, we require this tool to be aligned in a similar way; just with a few changes. For step 1, instead of any keyboard based matching, let there be a thinking node which can align the user's query to well aligned question. For step 2, we already have Tavily as well as DuckDuckGo configured. Rest flow is correct and we just need to ensure minimal nodes and minimizing calls to the model.

@Rudra775 did a bit of work on this issue too, I think you both can work on this issue together? I'll let you know more on the design details.

smokeyScraper avatar Jul 22 '25 06:07 smokeyScraper

@smokeyScraper sure man, will love to work with like minded people

Rudra775 avatar Jul 22 '25 08:07 Rudra775

@PrithvijitBose im not an expert either, just trying to learn from everywhere i can. lets connect on discord and discuss. rudraaa_24

Rudra775 avatar Jul 22 '25 11:07 Rudra775

hey @Rudra775 @PrithvijitBose any updates?

smokeyScraper avatar Oct 01 '25 11:10 smokeyScraper

hello @smokeyScraper, apologies for being inactive.. i was caught up juggling between 2 internships & college. But I've got some free time now.. if thats ok to you I'll try to raise a PR by Sunday as I had already started working on the issue

Rudra775 avatar Oct 01 '25 12:10 Rudra775

ok @PrithvijitBose i'll dm you on discord tonight

Rudra775 avatar Oct 01 '25 13:10 Rudra775

sure @Rudra775 @PrithvijitBose, take your time, guys. The last PR was a pretty good one, except for a bit of improper structuring. Try referring to it, please, as it worked decently well, the only fact that I was concerned about for the last PR was structuring and a few dead code flaws.

smokeyScraper avatar Oct 01 '25 13:10 smokeyScraper

Access can be shared within branches by adding another person as a contributor to your forked repo. This way ensures that you both can commit to the same PR.

Happy Contributing :)

smokeyScraper avatar Oct 01 '25 13:10 smokeyScraper

ok thanks @smokeyScraper

Rudra775 avatar Oct 01 '25 17:10 Rudra775

any update, guys? @Rudra775 @PrithvijitBose Are you still working on the issue?

smokeyScraper avatar Oct 11 '25 08:10 smokeyScraper

yes @smokeyScraper, almost all the reviews made by you n coderrabit in the previous pr have been resolvede. just one part is left.. it should be done by today/tomorrow at latest.. pr should be raised by tomorrow if we still face any issue, i'll let you know on discord.

Rudra775 avatar Oct 11 '25 12:10 Rudra775

hey @smokeyScraper, i also want to give this a go. I've already gone through feature description and what works has been done till now along with a high level overview of what other people have tried earlier. If it is still open, can you assign this to me?

shoaib-31 avatar Nov 05 '25 04:11 shoaib-31

@smokeyScraper can i contribute on this issue , planning would be same -> @PrithvijitBose

FAQ Handler Implementation:

I’ve carefully read through the problem statement and I believe this is a high-impact addition to your project.

Here's how I plan to break this down and implement it, step by step:

Step 1: Question Intent Detection

  • Build a simple NLP classifier (or use keyword-based matching) to determine if the user’s query is a general organizational FAQ (e.g., "What projects do you have?" or "How does Devr.AI work?").
  • This helps trigger the specialized FAQ Handler only for relevant questions.

Step 2: Dynamic Web Search Tool

  • Use a web search API like:
  1. SerpAPI (Google/Bing wrapper),
  2. or DuckDuckGo Search API (open/free).
  • Fetch top 3–5 results focused on official sources.

Step 3: AI-Powered Synthesis

  • Feed the top search results (title, snippet, URL) into an LLM like OpenAI GPT or Gemini using a structured prompt.
  • Example prompt:

"Based on the following search results, answer this user question in a concise and helpful way: 'What projects does Devr.AI work on?'"

Step 4: Generate Final Response

  • Parse the LLM output to:
  1. Return a clear, user-friendly answer.
  2. Include a list of cited sources.

Step 5: Integration into the Main Bot or Frontend

  • Package this as a backend endpoint or a callable tool inside your chatbot/workflow agent.
  • Ensure it fails gracefully (e.g., no results or poor connectivity β†’ fallback message).

πŸ”§ Why Me? Although I’m new to contributing, I’m genuinely passionate about AI, developer tools, and meaningful open source work. I'm confident I can break this down into clean, maintainable code and deliver something the community will benefit from.

I’d love your feedback or go-ahead to get started!

@smokeyScraper

aditya29f70 avatar Jan 03 '26 09:01 aditya29f70

I have good knowledge about langChain and Ai-application ;; if you confirm then i would like to contribute on this issue.

aditya29f70 avatar Jan 03 '26 09:01 aditya29f70