Spaces:
Sleeping
Sleeping
Create setup.sh
Browse files
setup.sh
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Create necessary directories
|
| 4 |
+
mkdir -p medical_rag/vector_store
|
| 5 |
+
|
| 6 |
+
# The vector store files should already be uploaded
|
| 7 |
+
# Check if they exist
|
| 8 |
+
if [ ! -f "medical_rag/vector_store/medical_faiss.index" ]; then
|
| 9 |
+
echo "Warning: FAISS index file not found!"
|
| 10 |
+
fi
|
| 11 |
+
|
| 12 |
+
if [ ! -f "medical_rag/vector_store/vector_metadata.pkl" ]; then
|
| 13 |
+
echo "Warning: Vector metadata file not found!"
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
# Set up environment
|
| 17 |
+
pip install -r requirements.txt
|