Nikhil Pravin Pise commited on
Commit
9f32f16
·
1 Parent(s): 9699bea

Fix HF deployment: add langchain-text-splitters, langchain-huggingface, simplify env

Browse files
huggingface/.env.example ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ===========================================================================
2
+ # MediGuard AI — HuggingFace Spaces Environment Variables
3
+ # ===========================================================================
4
+ # MINIMAL config for HuggingFace Spaces deployment.
5
+ # Only the LLM API key is required — everything else has sensible defaults.
6
+ # ===========================================================================
7
+
8
+ # --- LLM Provider (choose ONE) ---
9
+ # Option 1: Groq (RECOMMENDED - fast, free)
10
+ GROQ_API_KEY=your_groq_api_key_here
11
+
12
+ # Option 2: Google Gemini (alternative free option)
13
+ # GOOGLE_API_KEY=your_google_api_key_here
14
+
15
+ # --- Provider Selection (auto-detected from keys) ---
16
+ LLM_PROVIDER=groq
17
+
18
+ # --- Embedding Provider (must match vector store) ---
19
+ # The bundled vector store uses HuggingFace embeddings (384 dim)
20
+ # DO NOT CHANGE THIS unless you rebuild the vector store!
21
+ EMBEDDING_PROVIDER=huggingface
huggingface/README.md CHANGED
@@ -1,14 +1,12 @@
1
  ---
2
- title: MediGuard AI
3
  emoji: 🏥
4
  colorFrom: blue
5
- colorTo: cyan
6
  sdk: docker
7
  pinned: true
8
  license: mit
9
  app_port: 7860
10
- models:
11
- - meta-llama/Llama-3.3-70B-Versatile
12
  tags:
13
  - medical
14
  - biomarker
 
1
  ---
2
+ title: Agentic RagBot
3
  emoji: 🏥
4
  colorFrom: blue
5
+ colorTo: indigo
6
  sdk: docker
7
  pinned: true
8
  license: mit
9
  app_port: 7860
 
 
10
  tags:
11
  - medical
12
  - biomarker
huggingface/requirements.txt CHANGED
@@ -11,6 +11,8 @@ gradio>=5.0.0
11
  # --- LangChain Core ---
12
  langchain>=0.3.0
13
  langchain-community>=0.3.0
 
 
14
  langgraph>=0.2.0
15
 
16
  # --- Cloud LLM Providers (FREE tiers) ---
@@ -20,8 +22,9 @@ langchain-google-genai>=2.0.0
20
  # --- Vector Store ---
21
  faiss-cpu>=1.8.0
22
 
23
- # --- Embeddings ---
24
  sentence-transformers>=3.0.0
 
25
 
26
  # --- Document Processing ---
27
  pypdf>=4.0.0
@@ -35,4 +38,5 @@ httpx>=0.27.0
35
 
36
  # --- Utilities ---
37
  python-dotenv>=1.0.0
 
38
  numpy<2.0.0
 
11
  # --- LangChain Core ---
12
  langchain>=0.3.0
13
  langchain-community>=0.3.0
14
+ langchain-core>=0.3.0
15
+ langchain-text-splitters>=0.3.0
16
  langgraph>=0.2.0
17
 
18
  # --- Cloud LLM Providers (FREE tiers) ---
 
22
  # --- Vector Store ---
23
  faiss-cpu>=1.8.0
24
 
25
+ # --- Embeddings (local - no API key needed) ---
26
  sentence-transformers>=3.0.0
27
+ langchain-huggingface>=0.1.0
28
 
29
  # --- Document Processing ---
30
  pypdf>=4.0.0
 
38
 
39
  # --- Utilities ---
40
  python-dotenv>=1.0.0
41
+ tenacity>=8.0.0
42
  numpy<2.0.0