rahul7star commited on
Commit
6c0bffd
Β·
verified Β·
1 Parent(s): 3fb74c8

Update code-struc.md

Browse files
Files changed (1) hide show
  1. code-struc.md +17 -11
code-struc.md CHANGED
@@ -1,16 +1,22 @@
1
  ```
2
 
3
- β”œβ”€β”€ app.py # Gradio app (UI + logic)
4
- β”œβ”€β”€ pipeline.py # Core QA + TTS pipeline
5
- β”œβ”€β”€ cache.py # In-memory + disk cache
6
- β”œβ”€β”€ docs/
7
- β”‚ β”œβ”€β”€ general-en.md # English knowledge base
8
- β”‚ β”œβ”€β”€ general-hi.md # Hindi knowledge base
9
- β”‚ β”œβ”€β”€ architecture.md
10
- β”‚ β”œβ”€β”€ monetization.md
11
- β”‚ β”œβ”€β”€ b2b-plan.md
12
- β”‚ └── future.md
 
 
 
 
 
 
13
  β”œβ”€β”€ requirements.txt
14
- └── README.md
15
 
16
  ```
 
1
  ```
2
 
3
+ app/
4
+ β”œβ”€β”€ main.py # FastAPI entry
5
+ β”œβ”€β”€ gradio_ui.py # White-label UI
6
+ β”œβ”€β”€ tenants/
7
+ β”‚ └── ohamlab.json # Default tenant config
8
+ β”œβ”€β”€ documents/
9
+ β”‚ └── ohamlab/
10
+ β”‚ β”œβ”€β”€ general.md
11
+ β”‚ └── general-hi.md
12
+ β”œβ”€β”€ services/
13
+ β”‚ β”œβ”€β”€ llm.py # Qwen logic
14
+ β”‚ β”œβ”€β”€ retriever.py # Embeddings + search
15
+ β”‚ β”œβ”€β”€ tts.py # Audio generation
16
+ β”‚ └── storage.py # Document handling
17
+ β”œβ”€β”€ models/
18
+ β”‚ └── tenant.py # Tenant schema
19
  β”œβ”€β”€ requirements.txt
20
+
21
 
22
  ```