https://github.com/chiragagg5k/scholar-map

AI-Powered Research Assistant using MindsDB Knowledge Bases

https://github.com/chiragagg5k/scholar-map

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.7%) to scientific vocabulary

Keywords

mindsdb research-tool
Last synced: 10 months ago · JSON representation

Repository

AI-Powered Research Assistant using MindsDB Knowledge Bases

Basic Info
  • Host: GitHub
  • Owner: ChiragAgg5k
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 140 KB
Statistics
  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
mindsdb research-tool
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

Scholar Map CLI 🧠

AI-Powered Research Assistant using MindsDB Knowledge Bases with Multi-Step AI Workflow

ScholarMind is a command-line interface that transforms how researchers discover and explore academic papers. Instead of traditional keyword searches, use natural language queries to find contextually relevant research papers through semantic search powered by MindsDB. The system now includes a multi-step AI workflow that automatically generates summaries for research papers using AI tables.

🚀 New Features: Multi-Step AI Workflow

🤖 AI-Powered Paper Summarization

  • Automatic Summary Generation: When papers are inserted, the system automatically generates AI-powered summaries using GPT-4
  • AI Table Integration: Uses MindsDB AI tables to create intelligent summaries from paper abstracts
  • Enhanced Search Results: View AI-generated summaries alongside search results
  • Standalone Summary Generation: Generate summaries for papers without inserting them into the knowledge base

🔗 Multi-Step Workflow

  1. Knowledge Base Creation: Sets up research papers knowledge base with semantic search
  2. AI Table Setup: Creates paper_summarizer_model for automatic summarization
  3. Paper Insertion: Automatically generates summaries during insertion
  4. Enhanced Search: Displays summaries in search results with summary indicators
  5. Summary Viewing: Dedicated interface to view detailed paper information with AI summaries

How to run

  1. Install uv package manager by following the instructions here

  2. Make sure you have docker installed and running. For more information, see here

  3. Self-host mindsdb by running: bash docker run --name mindsdb_container \ -p 47334:47334 -p 47335:47335 mindsdb/mindsdb

  4. Install the dependencies by running: bash uv sync

  5. Make sure to set the OPENAI_API_KEY environment variable. For more information, see here

  6. Run the app by running: bash uv run main.py

Usage

Main Menu Options

  • i or insert: Add new research papers with automatic AI summary generation
  • s or search: Search papers using semantic queries
  • a or ai: Access AI features (view summaries, generate summaries)
  • d or demo: Load sample papers with AI-generated summaries
  • j or job: Manage periodic paper insertion jobs
  • q or quit: Exit the application

AI Features Menu

  • s or summary: View AI-generated summaries for specific papers
  • g or generate: Generate AI summaries for papers without inserting them
  • b or back: Return to main menu

Enhanced Search Results

Search results now include a summary indicator column: - 📝: Paper has an AI-generated summary - : No summary available

Sample Data with AI Summaries

To start off, you can insert some sample papers by using the d or demo command. It will include sample papers with AI-generated summaries like:

bash ╭─────────────────────────────────────────────────────────────────────────────────── Sample Paper 1 ───────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Title: Attention Is All You Need: A Comprehensive Study of Transformer Architecture │ │ Authors: Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kai... │ │ Category: cs.LG │ │ Research Field: Natural Language Processing │ │ Citations: 45,230 │ │ Abstract: The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. The b... │ │ 🤖 AI Summary: This paper introduces the Transformer architecture, which uses attention mechanisms instead of recurrence or convolutions for sequence transduction. The model achieves superior performance on machine translation tasks while being more parallelizable and faster to train than previous approaches. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Enhanced Search Results with Summary Indicators

bash ┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓ ┃ Relevance ┃ Title ┃ Authors ┃ Field ┃ Category ┃ Summary ┃ ┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━┩ │ 0.810 │ Attention Is All You Need: A Comprehe... │ Vaswani, A., Shazeer, ... │ Natural Language ... │ cs.LG │ 📝 │ │ 0.536 │ BERT: Pre-training of Deep Bidirectio... │ Devlin, J., Chang, M.W... │ Natural Language ... │ cs.CL │ 📝 │ │ 0.434 │ ResNet: Deep Residual Learning for Im... │ He, K., Zhang, X., Ren... │ Computer Vision │ cs.CV │ 📝 │ └────────────┴──────────────────────────────────────────┴───────────────────────────┴──────────────────────┴────────────┴──────────┘

Testing the AI Workflow

Run the test script to verify the AI workflow functionality:

bash uv run test_ai_workflow.py

This will test: - AI table creation for summarization - Automatic summary generation during paper insertion - Enhanced search results with summary indicators - Summary viewing functionality

Technical Implementation

AI Table Creation

The system creates a MindsDB AI table for summarization:

```sql CREATE MODEL papersummarizermodel PREDICT summary USING engine = 'openaiengine', modelname = 'gpt-4o', apikey = 'youropenaiapikey', prompt_template = 'Generate a concise summary of the following research paper abstract. Focus on the key contributions, methodology, and findings. Keep the summary under 200 words and make it accessible to researchers in the field.

Abstract: {{abstract}}
Title: {{title}}
Authors: {{authors}}
Research Field: {{research_field}}

Summary:';

```

Multi-Step Workflow Process

  1. Setup Phase: Creates knowledge base and AI table simultaneously
  2. Insertion Phase: Generates summaries using AI table before inserting papers
  3. Storage Phase: Stores papers with summaries in the knowledge base
  4. Retrieval Phase: Displays summaries in search results and dedicated views

Checklist

🛠️ Build an app with KBs

  1. Your app executes CREATE KNOWLEDGE_BASE - here
  2. Your app ingests data using INSERT INTO knowledge_base - here
  3. Your app retrieves relevant data based on on semantic queries SELECT ... FROM ... WHERE content LIKE <query> - here
  4. Your app uses CREATE INDEX ON KNOWLEDGE_BASE - here

🛠️ Use metadata columns

  1. Define metadata_columns during ingestion and use WHERE clauses that combine semantic search with SQL attribute filtering on metadata_columns - here

🛠️ Integrate JOBS

Set up a 🔗 MindsDB JOB that periodically checks a data source and inserts new data into the KB (using LAST or similar logic) - here

Upload a video and write a nice README

  1. You upload a short video demo explaining the app & showcasing the KB interaction - here
  2. Your project has a README.md with clear setup instructions. - (done) ✅

Document the process and showcase your app

DevTo article - here

Give feedback and suggest features

Submitted the feedback form ✅

🛠️ Integreate CREATE Agent

Projects that integrate CREATE Agent will be rewarded with an additional 10 points. - here

🛠️ Evaluate the relevancy and accuracy of the documents returned by KB

Use EVALUATE KNOWLEDGE_BASE to evaluate the relevancy and accuracy of the documents and data returned by the knowledge base. - here

Bug-hunt & stress-testing

Stess-Testing report can be found in this google doc.

Owner

  • Name: Chirag Aggarwal
  • Login: ChiragAgg5k
  • Kind: user
  • Location: Noida , Uttar Pradesh , India
  • Company: Bennett University

CSE Undergrad | Student at Bennett University

GitHub Events

Total
  • Push event: 8
  • Create event: 1
Last Year
  • Push event: 8
  • Create event: 1

Issues and Pull Requests

Last synced: 11 months ago


Dependencies

pyproject.toml pypi
uv.lock pypi
  • scholar-map 0.1.0