Ask Question
💬 Your Question
🏷️ Filter by Tags
⚡ Search Method
📘 How To Guide (Standard Users)
This guide explains how to search the knowledge base and complete questionnaires using Bulk Answer. If you cannot access a feature, your role may not have permission—contact your administrator.
1) Ask Question (Search)
- Enter your question on the Ask Question tab.
- Optional filters:
- Tags: select one or more tags to limit search scope (matches ANY selected tag).
- Source: optionally select a source document to narrow results.
- Choose Search Method:
- Vector Search: fastest; best for most questions.
- LLM Search: uses AI to re-rank candidates; useful for complex phrasing.
- Multi-hop RAG: best for multi-part questions (e.g. “name, address and contact details”).
- Review the result:
- Confidence: higher is better; low confidence may mean the question needs rephrasing or the KB lacks coverage.
- Source Documents: shows where the answer came from.
- Multi-hop details (when used): expand “How this was answered” to see sub-questions and missing parts.
2) Bulk Answer (Recommended for questionnaires)
- Step 1: Upload Questionnaire (PDF/DOCX/TXT/XLSX).
- Step 2: Extract Questions: extracts questions from the uploaded file.
- Step 3: Choose Answer Mode:
- Vector → LLM → Multi-hop (default): fastest first, strongest fallback last.
- Vector only, LLM only, Multi-hop only: use for troubleshooting or specific needs.
- Filter by Tags (optional): if you choose tags, answers can be found from ANY selected tag.
- Run Bulk Answer: review the table (NO ANSWER rows are highlighted).
- Export to Word: exports results in a table format suitable for client submission.
Tips for better results
- Ask one thing at a time (unless using Multi-hop RAG).
- Use the same wording as historical questionnaires when possible.
- If you get “No Answer”: try removing tags, changing the phrasing, or switching to LLM / Multi-hop.
- If a Q&A looks correct but isn’t found: it may be pending/unapproved or missing tags—contact an admin.
🔍 Filters
📋 All Q&A Pairs
Upload a completed Due Diligence questionnaire (PDF, DOCX, or TXT) to automatically extract Q&A pairs.
📄 Existing Questionnaire Sources
Step 1: Upload File
Upload a questionnaire containing DD questions, extract all questions, apply optional tag filters, and generate answers in bulk.
Step 1: Upload Questionnaire
🗄️ Vector Database
Status of your unified vector database with tag-based categorization.
Checking...
🏷️ Tag Management
Manage tags for categorizing Q&A pairs.
🔑 API Keys Super Admin
Configure API keys for different AI providers.
🤖 Model Configuration Super Admin
⚙️ Agent Settings
Configure agent parameters for question answering and similarity matching.
These diagrams document how the application works. They serve as the source of truth for application flows.
1. Authentication Flow
2. Question Answering Flow (RAG with Tags)
3. Q&A Management Flow (Tag-Based Architecture)
Architecture Note: The system now uses a single unified Vector DB with tag-based categorization instead of separate Local/Global databases. Tags (Local, Global, Hybrid, Sharia, etc.) can be assigned to Q&A pairs for flexible categorization. Users can filter searches by tags. Only approved pairs are used for similarity searches.
4. API Key & Model Configuration Flow
5. Settings Management Flow
6. System Architecture Overview
PostgreSQL
Users, Roles, Settings)] VectorDB[(Unified Vector DB
pgvector
Q&A with Tags)] end subgraph ExternalServices[External Services] OpenAI[OpenAI API] Anthropic[Anthropic API] Google[Google AI API] end UI --> Auth UI --> Questions UI --> Answers UI --> Uploads UI --> Models UI --> Settings UI --> Users UI --> Admin Questions --> TagSuggester Questions --> RAG RAG --> Factory Factory --> OpenAI Factory --> Anthropic Factory --> Google Uploads --> Extractor Extractor --> Factory Auth --> AppDB Users --> AppDB Models --> AppDB Settings --> AppDB Answers --> VectorDB RAG --> VectorDB Uploads --> VectorDB Admin --> VectorDB
Architecture Note: The system uses a single unified Vector DB with tag-based categorization. Q&A pairs are stored with tags (Local, Global, ESG, etc.) for flexible filtering. The Application DB stores users, roles, permissions, settings, and model configs.
7. Upload Questionnaire Flow
Note: Q&A pairs are extracted, tagged by the user, and imported to the unified Vector DB with pending status. Admin approval is required before pairs appear in search results.
8. Complete User Journey
9. Data Flow: Question to Answer
approval_status = approved)] LLMSearch --> VectorDB VectorDB --> Results{Results Found?} Results -->|No| NoAnswer[No matching Q&A found] Results -->|Yes| Context[Build Context from Top Results] Context --> Config[Get Active Model Config] Config --> Key[Get API Key for Provider] Key --> Agent[Create LLM Agent] Agent --> Generate[Generate Answer with Context] Generate --> Conf[Calculate Confidence Score] Conf --> Check{Confidence OK?} Check -->|Yes| Return[Return Answer with Sources] Check -->|No| LowConf[Return low confidence warning] Return --> Display[Display Answer + Tags + Sources] Display --> UserAction{User clicks Add to KB?} UserAction -->|Yes| SelectTags[Select Tags for New Q&A] UserAction -->|No| End1([Done]) SelectTags --> AddKB[Add to Vector DB] AddKB --> End2([Added with Approved Status]) LowConf --> End3([Display Warning]) NoAnswer --> End3
Key Points: Users can optionally filter by tags and choose search method (Vector or LLM). Only approved Q&A pairs are searched. Answers include source document references. New Q&As added from answers are auto-approved.
Manage users, roles, and permissions.
➕ Create New User
👥 All Users
📝 Add Q&A to Knowledge Base
Manually add question-answer pairs to the vector database.
💡 Tips
- Use specific, clear questions for better retrieval
- Answers should be comprehensive but focused
- Always assign at least one relevant tag
- Auto-approved Q&A pairs are immediately searchable
- Pending Q&A pairs require approval before they appear in search results