Skip to content

[Feat] Add "Dive Deeper" Feature to Documentation Pages (AI Search + GFG Link)Β #150

@Krish-3010

Description

@Krish-3010

Proposed Feature

Enhance every topic documentation page by adding a "Still Have Doubt? Dive Deeper" section at the bottom of the content. This section will provide two buttons:

  1. πŸ” AI Search – Ask an AI assistant to explain the topic differently
  2. πŸ“š GeeksforGeeks Link – Open a relevant GFG article about the same topic

Problem it solves

Currently, when students finish reading a documentation page (e.g., "C Programming", "Data Structures", "Operating Systems") but still have doubts or want to understand the concept from a different perspective, they must:

  • Leave the openCSE platform
  • Manually search Google or GeeksforGeeks
  • Potentially land on low-quality or irrelevant resources

This breaks the learning experience and causes frustration.

What this contribution will add

For Each Documentation Page (e.g., /docs/semester-1/c-programming)

1. AI Search Button

Functionality:

  • Opens a small modal or sidebar chat
  • Pre-filled context: "Explain [Current Topic Name] in simple terms with examples"
  • User can type follow-up questions
  • Uses a free AI API (options):
    • OpenAI GPT-3.5 (requires API key – can be user-provided or project-provided)
    • Google Gemini API (has a generous free tier)
    • Hugging Face Free Models (no key needed for some)
    • Local LLM via Ollama (privacy-focused, runs locally)

Fallback if no API key: Show a message with pre-written suggested Google search queries.

Example AI prompt template:
You are a friendly CS tutor. The student just read the documentation about "[TOPIC_NAME]" but still has doubts. Explain it differently using:

  • One real-world analogy
  • One simple code example (if applicable)
  • One common misconception about this topic
    Keep it under 150 words.

2. GeeksforGeeks (GFG) Link Button

Functionality:

  • Directly opens a relevant GFG article in a new tab
  • GFG URL pattern: https://www.geeksforgeeks.org/search/?q=[TOPIC_NAME]
  • Or link to specific GFG tutorial page (can be curated or auto-generated)

Example mappings:

Topic GFG Link
C Programming https://www.geeksforgeeks.org/c-programming-language/
Data Structures using C https://www.geeksforgeeks.org/data-structures/
OOPs with Java https://www.geeksforgeeks.org/object-oriented-programming-oops-concept-in-java/
Operating Systems https://www.geeksforgeeks.org/operating-systems/

Why this is valuable

  1. Keeps users on platform – No need to leave openCSE for basic clarifications
  2. Reduces learning friction – Instant access to alternative explanations
  3. Two learning modes – AI for interactive Q&A, GFG for structured reading
  4. Beginner-friendly – Perfect for students who need multiple explanations to grasp a concept
  5. Scalable – Works for all 50+ topics across 8 semesters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions