Back to projects

Enterprise-Knowledge-Copilot

PythonFastAPIGitHubNext.jsSupabaseONNX

A knowledge copilot over company documents. People ask a question, get an answer with the passage it came from, and see only the documents their role may read. Administrators see where the documents fall short and can close the gap.

Features

  • What a visitor can do Open the sample workspace from the home page without an account: one click signs in as a read-only guest over a public handbook slice. Ask a question and open the citation under any claim to see the passage, document, section and licence. Ask something the documents do not cover: the answer is a refusal with the closest sources, and the question is queued for an administrator. Sign in with a role account to see the library and, as an administrator, the unanswered queue, answer quality, performance and activity log.
  • What you can ask expenses, receipts and when to use a company credit card. Onboarding, leave notice, laptops and company values. Incidents, post mortems, on call duties and change freezes. Code review, test coverage and handling confidential material in a merge request. Production access, credential rotation, access reviews and vendor access. Reporting a vulnerability and the security severity matrix.
  • Limits The API runs on a free 512 MB instance: a larger cross-encoder does not fit (402 MB RSS before a restart), so ranking uses TinyBERT. The free instance sleeps after 15 idle minutes; the ten-minute keep-warm workflow hides most of it, and the first answer after a cold start can still take a minute. Free model quotas throttle. A refused answer caused by a provider outage says so in the admin detail instead of pretending the documents lack the answer. Generation and refusal, not retrieval, are the current weak point: retrieval finds the gold passage at rank 1 for most wrong refusals, while citation precision is 0.240 dev / 0.265 test. The 84-question set is small; the numbers move by a few points between runs of the same configuration. The per-question evidence is retained in docs/reports/eval_dev.json and docs/reports/eval_test.json. The free model quotas, cold starts and corpus scope are measured limits, not hidden behaviour; the reports name the run behind each number.