CoolFace
Apppublic

fahmidhasan/plant-pathology-expert

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

PlantDoc ๐ŸŒฑ - Plant Pathology Expert

An AI-powered plant disease expert chatbot using Retrieval-Augmented Generation (RAG) with DeepSeek AI. Ask questions about plant pathology and get expert answers from comprehensive textbook knowledge.

๐Ÿš€ Features

  • โ€”๐Ÿค– AI-Powered: Uses DeepSeek AI via OpenRouter for intelligent responses
  • โ€”๐Ÿ“š Expert Knowledge: Based on comprehensive Plant Pathology textbook
  • โ€”๐Ÿ” Source Citations: Provides page references for all answers
  • โ€”๐Ÿ’ฌ Conversational: Maintains context across follow-up questions
  • โ€”๐ŸŒฟ Specialized: Focused on plant diseases, symptoms, and treatments
  • โ€”โšก Fast & Accurate: Quick responses with reliable information

๐Ÿ’ก How to Use

  1. 1.Ask Questions: Type your plant pathology questions in the chat
  2. 2.Get Expert Answers: Receive detailed responses with source citations
  3. 3.Follow Up: Ask related questions for deeper understanding

๐Ÿ”ฌ Example Questions

  • โ€”"What causes tomato blight disease?"
  • โ€”"How to identify fungal diseases in plants?"
  • โ€”"What are the symptoms of bacterial wilt?"
  • โ€”"Treatment options for powdery mildew?"
  • โ€”"How do viral diseases spread in plants?"

๐Ÿ› ๏ธ Technical Details

  • โ€”AI Model: DeepSeek Chat via OpenRouter
  • โ€”Knowledge Base: Plant Pathology Fifth Edition textbook
  • โ€”Vector Search: ChromaDB for semantic search
  • โ€”Embedding Model: Agricultural-specialized sentence transformer
  • โ€”Framework: Streamlit for web interface

๐Ÿ” Configuration

This Space requires an OpenRouter API key to function. The key should be set in the Space's repository secrets as OPENROUTER_API_KEY.

๐Ÿ“– About the Knowledge Base

The system is trained on "Plant Pathology Fifth Edition" - a comprehensive textbook covering:

  • โ€”Plant disease fundamentals
  • โ€”Pathogen biology and identification
  • โ€”Disease diagnosis and management
  • โ€”Integrated pest management
  • โ€”Resistance mechanisms
  • โ€”Environmental factors

๐Ÿ—๏ธ Architecture

The application uses a sophisticated RAG (Retrieval-Augmented Generation) pipeline:

  1. 1.Document Processing: PDF content is chunked and embedded
  2. 2.Vector Search: Semantic search finds relevant content
  3. 3.AI Generation: DeepSeek AI generates contextual responses
  4. 4.Source Attribution: Provides page references for transparency

๐Ÿ› ๏ธ Local Development

To run this locally:

bash
# Clone and install
git clone https://huggingface.co/spaces/fahmidhasan/plant-pathology-expert/
cd plant-pathology-expert
pip install -r requirements.txt

# Set up environment
echo "OPENROUTER_API_KEY=your-key-here" > .env

# Run the app
streamlit run app.py

๐Ÿ“Š System Information

  • โ€”Knowledge Base: 2,870 text chunks from 948 pages
  • โ€”Embedding Model: Agricultural-specialized sentence transformer
  • โ€”Vector Database: ChromaDB for efficient search
  • โ€”Response Time: ~2-5 seconds per query
  • โ€”Language Support: English

๐Ÿ”’ Privacy & Security

  • โ€”No Data Storage: Conversations are not stored permanently
  • โ€”Secure API: Uses OpenRouter for AI processing
  • โ€”Local Processing: Embeddings and search happen locally

๐Ÿ“š Use Cases

Perfect for:

  • โ€”Students: Learning about plant diseases
  • โ€”Farmers: Identifying crop problems
  • โ€”Researchers: Quick reference lookup
  • โ€”Extension Workers: Disease diagnosis support
  • โ€”Gardeners: Home plant care

๐Ÿค Contributing

This is an open-source project. Feel free to contribute improvements, report bugs, or suggest new features!

๐Ÿ“„ License

This project is open source. Please ensure compliance with content licensing when using with copyrighted materials.


Built with โค๏ธ using Streamlit, DeepSeek AI, and ChromaDB

  1. 1.The system will automatically adapt to your content domain

License

Software Code: MIT License (see LICENSE file)

Third-Party Content: Not included - users must provide their own PDF documents and ensure proper licensing compliance.