How mudiambat13/assistant-foncier-rdc works
Assistant foncier RDC is a French-language legal Q&A product for Congolese land law. A user submits a question in the React interface; Flask validates the conversation, retrieves relevant official-text excerpts, combines them with the legal system prompt, and streams a response from a configured AI provider. The interface displays citations and stores conversations locally. The graph also shows the documented provider choices and optional Google grounding. Source excerpts establish the main backend calls; some frontend status and provider-selection wiring is not shown, so those links are omitted.
Main entry points: app.py Chat API · App.jsx Chat interface · providers.py Provider adapters · knowledge.py Text retrieval
Components 11
User interface
- React entry
frontend/src/main.jsx - Chat interface
frontend/src/App.jsx - Conversation storage
Chat backend
- Chat API
backend/app.py
Legal knowledge
- Text retrieval
backend/knowledge.py - Official legal texts
backend/knowledge - Legal instructions
backend/prompts.py
AI providers
- Provider adapters
backend/providers.py - Configured AI services
Other components
- Legal questioner
- Google search
Connections 11
- Legal questioner → Chat interface: asks question
frontend/src/App.jsx - React entry → Chat interface: renders
frontend/src/main.jsx - Chat interface → Conversation storage: reads and writes
frontend/src/App.jsx - Chat interface → Chat API: posts chat
frontend/src/App.jsx - Chat API → Chat interface: streams answer
frontend/src/App.jsx - Chat API → Text retrieval: searches and formats
backend/app.py - Chat API → Legal instructions: adds instructions
backend/app.py - Chat API → Provider adapters: selects and streams
backend/app.py - Text retrieval → Official legal texts: loads documents
README.md - Provider adapters → Configured AI services: streams completions
README.md - Provider adapters → Google search: optionally grounds
backend/providers.py