mahabub-unlocked/autonomous-research-assistant
<div align="center">
š§ Autonomous Research Assistant
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=20&pause=1000&color=667EEA¢er=true&vCenter=true&width=600&lines=Intelligent+AI+Research+Assistant;LangGraph+%7C+Groq+%7C+Streamlit;Web+Search+%7C+Wikipedia+%7C+PDF+Analysis;Bengali+%F0%9F%87%A7%F0%9F%87%A9+%7C+English+%F0%9F%87%AC%F0%9F%87%A7+Support" alt="Typing SVG" />
<br>
<br>
 
<br>
ą¦ą¦ą¦ą¦¾ intelligent AI research assistant যা ą¦Æą§ą¦ą§ą¦Øą§ বিষয়ৠreal-time web search, Wikipedia analysis, ą¦ą¦¬ą¦ document processing ą¦ą¦°ą§ ą¦¬ą¦æą¦øą§ą¦¤ą¦¾ą¦°ą¦æą¦¤ ą¦ą¦¤ą§ą¦¤ą¦° ą¦Ŗą§ą¦°ą¦¦ą¦¾ą¦Ø ą¦ą¦°ą§ ā LangGraph ą¦ą¦° ReAct agent framework ą¦¦ą¦æą¦Æą¦¼ą§ą„¤
</div>
šÆ Project Overview
Autonomous Research Assistant হল ą¦ą¦ą¦ą¦æ AI-powered research assistant যা ą¦¤ą¦æą¦Øą¦ą¦¾ powerful tool ą¦¬ą§ą¦Æą¦¬ą¦¹ą¦¾ą¦° ą¦ą¦°ą§ ā
Web Search ā DuckDuckGo দিয়ৠreal-time internet search Wikipedia Analysis ā ą¦Æą§ą¦ą§ą¦Øą§ বিষয়ৠWikipedia ą¦„ą§ą¦ą§ ą¦¬ą¦æą¦øą§ą¦¤ą¦¾ą¦°ą¦æą¦¤ ą¦¤ą¦„ą§ą¦Æ Document Processing ā PDF ঠTXT file upload ą¦ą¦°ą§ analyze ą¦ą¦°ą¦¾
š Live Demo
š [App Open ą¦ą¦°ą§](https://huggingface.co/spaces/mahabub-unlocked/QueryMind-AI)
šļø Architecture
User Query (Bengali / English)
ā
ā¼
āāāāāāāāāāāāāāāāāāāāā
ā ReAct Agent ā āā Tool selection decision
ā (LangGraph) ā
āāāāāāāāāā¬āāāāāāāāāāā
ā
āāāāāā“āāāāā
ā¼ ā¼ ā¼
āāāāāāāāāā āāāāāāāāāā āāāāāāāāāā
ā Web ā ā Wiki ā ā File ā
ā Search ā ā Search ā ā Loader ā
ā š ā ā š ā ā š ā
āāāāā¬āāāāā āāāāā¬āāāāā āāāāā¬āāāāā
āāāāāāāāāāāā“āāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāā
ā LLaMA 3.3 70B ā āā Response generate
ā (via Groq) ā
āāāāāāāāāāāāā¬āāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāā
ā Streamlit UI ā āā Streaming output
ā Chat Interface ā āā History + Export
āāāāāāāāāāāāāāāāāāāāāāāāā⨠Features
š ļø Tech Stack
š Project Structure
Autonomous Research Assistant/
ā
āāā š app.py # Streamlit UI & main application
āāā š¤ agent.py # LangGraph ReAct agent setup
āāā š§ tools.py # Custom LangChain tools
āāā š requirements.txt # Python dependencies
āāā š .env # API keys (local only)
āāā š« .gitignore # Git ignore rules
āāā š README.md # Project documentationš Getting Started
Prerequisites
Python 3.10+
Groq API Key ā groq.com (Free)Installation
1. Clone the repository
git clone https://github.com/mdmahabubalambishas/Autonomous Research Assistant.git
cd Autonomous Research Assistant2. Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Mac/Linux3. Install dependencies
pip install -r requirements.txt4. Set up environment variables
.env file বানাঠproject root ঠā
GROQ_API_KEY=your_groq_api_key_here5. Run the app
streamlit run app.pyOpen http://localhost:8501 in your browser.
š§Ŗ Example Queries
š Web Search
"LangGraph ą¦ą§ ą¦ą¦¬ą¦ ą¦ą§ą¦ą¦¾ą¦¬ą§ ą¦ą¦¾ą¦ ą¦ą¦°ą§?"
"২০২৫ সালৠAI ą¦ą¦° ą¦Øą¦¤ą§ą¦Ø developments ą¦ą§?"
"Latest news about OpenAI?"š Wikipedia Research
"Artificial Intelligence ą¦ą¦° ą¦ą¦¤ą¦æą¦¹ą¦¾ą¦ø ą¦¬ą¦æą¦øą§ą¦¤ą¦¾ą¦°ą¦æą¦¤ বলą§"
"Quantum Computing ą¦ą§ą¦ą¦¾ą¦¬ą§ ą¦ą¦¾ą¦ ą¦ą¦°ą§?"
"Machine Learning vs Deep Learning ą¦Ŗą¦¾ą¦°ą§ą¦„ą¦ą§ą¦Æ?"š Document Analysis
ą§§. Sidebar ঠPDF upload ą¦ą¦°ą§
ą§Ø. "ą¦ą¦ document ą¦ą¦° ą¦®ą§ą¦² বিষয় ą¦ą§?" ā ą¦ą¦æą¦ą§ą¦ą§ą¦ø ą¦ą¦°ą§
ą§©. "Summarize this document in Bengali"š How ReAct Agent Works
Step 1 ā Thought
Agent query analyze ą¦ą¦°ą§
ą¦ą§ą¦Ø tool ą¦¦ą¦°ą¦ą¦¾ą¦° ą¦øą§ą¦ą¦¾ decide ą¦ą¦°ą§
Step 2 ā Action
সঠিঠtool select ą¦ą¦°ą§
Web Search / Wikipedia / File Loader
Step 3 ā Observation
Tool ą¦ą¦° result ą¦¦ą§ą¦ą§
Answer sufficient ą¦ą¦æą¦Øą¦¾ check ą¦ą¦°ą§
Step 4 ā Final Answer
LLaMA 3.3 70B দিয়ৠresponse generate ą¦ą¦°ą§
Bengali বা English ঠstream ą¦ą¦°ą§ ą¦¦ą§ą¦Æą¦¼āļø Configuration
Model ą¦Ŗą¦°ą¦æą¦¬ą¦°ą§ą¦¤ą¦Ø (agent.py) ā
llm = ChatGroq(
model="llama-3.3-70b-versatile", # LLM model
temperature=0.2, # Creativity (0-1)
max_tokens=4096 # Response length
)Custom Tool ą¦Æą§ą¦ ą¦ą¦°ą¦¾ (tools.py) ā
@tool
def my_custom_tool(query: str) -> str:
"""Tool description."""
# Your logic here
return result
all_tools = [search_tool, wikipedia_search, my_custom_tool]š Performance
š” What I Learned
ā
LangGraph ReAct Agent
Multi-step reasoning
Intelligent tool selection
State management
ā
Tool Integration
DuckDuckGo web search
Wikipedia API
PDF/TXT file processing
ā
Streaming Response
Real-time output
Typing effect implementation
ā
Multilingual LLM
Bengali language support
Language detection
Response formatting
ā
Chat Management
Conversation history
PDF export
Copy functionalityš¤ Contributing
# Fork ą¦ą¦°ą§ ā Clone ą¦ą¦°ą§ ā Branch ą¦¤ą§ą¦°ą¦æ ą¦ą¦°ą§
git checkout -b feature/AmazingFeature
# Changes ą¦ą¦°ą§ ā Commit ą¦ą¦°ą§
git commit -m "Add AmazingFeature"
# Push ą¦ą¦°ą§ ā Pull Request ą¦ą§ą¦²ą§
git push origin feature/AmazingFeatureš License
This project is licensed under the MIT License.
šØāš» Author
<div align="center">
Md Mahabub Alam Bishal AI/ML Engineer | LLM & Generative AI Enthusiast
   
</div>
š Acknowledgements
- LangChain ā LLM framework
- LangGraph ā Agent orchestration
- Groq ā Fast LLM inference
- DuckDuckGo ā Privacy-first web search
- Wikipedia ā Knowledge base
- Streamlit ā UI framework
- Hugging Face ā Deployment platform
<div align="center">
ā ą¦ą¦ project ą¦ą¦¾ useful ą¦²ą¦¾ą¦ą¦²ą§ GitHub ঠStar দাą¦!
Made with ā¤ļø by Mahabub
Live Demo: huggingface.co/spaces/mahabub-unlocked/QueryMind-AI GitHub: github.com/mdmahabubalambishal/QueryMind-AI
</div>
