doco-talk / code-struc.md
rahul7star's picture
Update code-struc.md
97388c3 verified

app/
β”œβ”€β”€ main.py                 # FastAPI entry
β”œβ”€β”€ gradio_ui.py            # White-label UI
β”œβ”€β”€ tenants/
β”‚   └── ohamlab.json        # Default tenant config
β”œβ”€β”€ documents/
β”‚   └── ohamlab/
β”‚       β”œβ”€β”€ general.md
β”‚       └── general-hi.md
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ llm.py              # Qwen logic
β”‚   β”œβ”€β”€ retriever.py        # Embeddings + search
β”‚   β”œβ”€β”€ tts.py              # Audio generation
β”‚   └── storage.py          # Document handling
β”œβ”€β”€ models/
β”‚   └── tenant.py           # Tenant schema
β”œβ”€β”€ requirements.txt

PDF / MD files
   ↓
Retriever (embeddings + similarity)
   ↓   ← THIS IS WHERE YOU ARE FAILING
Context text
   ↓
Qwen LLM
   ↓
Answer