https://github.com/chiragagg5k/scholar-map
AI-Powered Research Assistant using MindsDB Knowledge Bases
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
Repository
AI-Powered Research Assistant using MindsDB Knowledge Bases
Basic Info
Statistics
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
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
- Knowledge Base Creation: Sets up research papers knowledge base with semantic search
- AI Table Setup: Creates
paper_summarizer_modelfor automatic summarization - Paper Insertion: Automatically generates summaries during insertion
- Enhanced Search: Displays summaries in search results with summary indicators
- Summary Viewing: Dedicated interface to view detailed paper information with AI summaries
How to run
Install
uvpackage manager by following the instructions hereMake sure you have docker installed and running. For more information, see here
Self-host mindsdb by running:
bash docker run --name mindsdb_container \ -p 47334:47334 -p 47335:47335 mindsdb/mindsdbInstall the dependencies by running:
bash uv syncMake sure to set the
OPENAI_API_KEYenvironment variable. For more information, see hereRun the app by running:
bash uv run main.py
Usage
Main Menu Options
iorinsert: Add new research papers with automatic AI summary generationsorsearch: Search papers using semantic queriesaorai: Access AI features (view summaries, generate summaries)dordemo: Load sample papers with AI-generated summariesjorjob: Manage periodic paper insertion jobsqorquit: Exit the application
AI Features Menu
sorsummary: View AI-generated summaries for specific papersgorgenerate: Generate AI summaries for papers without inserting themborback: 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
- Setup Phase: Creates knowledge base and AI table simultaneously
- Insertion Phase: Generates summaries using AI table before inserting papers
- Storage Phase: Stores papers with summaries in the knowledge base
- Retrieval Phase: Displays summaries in search results and dedicated views
Checklist
🛠️ Build an app with KBs
- Your app executes
CREATE KNOWLEDGE_BASE- here ✅ - Your app ingests data using
INSERT INTO knowledge_base- here ✅ - Your app retrieves relevant data based on on semantic queries
SELECT...FROM...WHEREcontentLIKE<query>- here ✅ - Your app uses
CREATE INDEX ON KNOWLEDGE_BASE- here ✅
🛠️ Use metadata columns
- Define
metadata_columnsduring ingestion and use WHERE clauses that combine semantic search with SQL attribute filtering onmetadata_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
- You upload a short video demo explaining the app & showcasing the KB interaction - here ✅
- 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
- Twitter: ChiragAgg5k
- Repositories: 3
- Profile: https://github.com/ChiragAgg5k
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
- scholar-map 0.1.0