Spaces:
Runtime error
Runtime error
Create README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,55 @@
|
|
| 1 |
---
|
| 2 |
-
title: Nasa Bioscience Ai Lightweight
|
| 3 |
-
emoji: π
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: blue
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.48.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: mit
|
| 3 |
+
title: readme
|
| 4 |
+
sdk: gradio
|
| 5 |
+
emoji: π
|
| 6 |
+
colorFrom: gray
|
| 7 |
+
colorTo: pink
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# π NASA Bioscience AI Assistant (Lightweight)
|
| 11 |
+
|
| 12 |
+
A **lightweight AI assistant** specialized in NASA space biology research, optimized to stay within Hugging Face's 1GB storage limit while providing detailed explanations.
|
| 13 |
+
|
| 14 |
+
## β¨ Lightweight Features
|
| 15 |
+
|
| 16 |
+
- **π§ Optimized Model**: Uses DistilBERT instead of large DialoGPT
|
| 17 |
+
- **π Full Knowledge Base**: 5,148 NASA research chunks
|
| 18 |
+
- **π Advanced RAG**: FAISS vector search with semantic similarity
|
| 19 |
+
- **π Detailed Explanations**: Comprehensive responses with scientific context
|
| 20 |
+
- **π― Query Classification**: Automatic detection and adaptation
|
| 21 |
+
- **π Source Citations**: Research papers with confidence scores
|
| 22 |
+
- **πΎ Storage Optimized**: Under 1GB total size
|
| 23 |
+
|
| 24 |
+
## π Example Queries
|
| 25 |
+
|
| 26 |
+
- **"What is microgravity and how does it affect biological systems?"**
|
| 27 |
+
- **"How does space affect bone density and muscle mass?"**
|
| 28 |
+
- **"What are the comprehensive effects of space radiation?"**
|
| 29 |
+
- **"How do plants grow and respond in microgravity?"**
|
| 30 |
+
- **"What countermeasures exist for space-related health issues?"**
|
| 31 |
+
|
| 32 |
+
## π¬ How It Works
|
| 33 |
+
|
| 34 |
+
1. **Lightweight Model**: DistilBERT for summarization (much smaller than DialoGPT)
|
| 35 |
+
2. **RAG System**: Retrieves relevant research using FAISS vector search
|
| 36 |
+
3. **Intelligent Templates**: Provides structured, detailed explanations
|
| 37 |
+
4. **Multi-Source Integration**: Combines 8 research papers per query
|
| 38 |
+
5. **Scientific Accuracy**: Based on real NASA research data
|
| 39 |
+
|
| 40 |
+
## π Storage Optimization
|
| 41 |
+
|
| 42 |
+
- **Model Size**: ~250MB (DistilBERT vs 1.35GB DialoGPT)
|
| 43 |
+
- **RAG Index**: ~50MB (FAISS + chunks)
|
| 44 |
+
- **Total Size**: Under 400MB (well within 1GB limit)
|
| 45 |
+
- **Performance**: Maintains high-quality responses
|
| 46 |
+
|
| 47 |
+
## π‘ Usage
|
| 48 |
+
|
| 49 |
+
Simply type your question about space biology, and the AI will provide a **detailed, comprehensive answer** with:
|
| 50 |
+
- Scientific explanations and mechanisms
|
| 51 |
+
- Clinical implications and data
|
| 52 |
+
- Source citations from NASA research
|
| 53 |
+
- Confidence scores and research context
|
| 54 |
+
|
| 55 |
+
Perfect for researchers, students, and space enthusiasts! π
|