Skip to content

Known Issues and Limitations

PantheraNestah edited this page Nov 5, 2026 · 1 revision

Known Issues and Limitations

Each item below was checked against the code. Items marked (fixable) are small code changes that have not been made yet.

Bugs

Issue Effect Where
/query drops citations_present The route computes it, the response model has no such field, so clients never see it. It is stored in the log. (fixable) app/schemas/response.py QueryData
Keyword-only chunks have source="unknown" The BM25 path reads metadata key source, but the store holds source_document. Wrong citations source for those chunks. (fixable) app/services/retriever.py (BM25 index build)
alembic upgrade head fails on new databases The migrations assume older schemas. Use alembic stamp head alembic/versions/ (Data and Logging)
Evaluation summary prints a wrong hallucination target value Display bug in the "TARGETS vs ACTUALS" table (1 minus the rate). (fixable) evaluation/evaluate.py
Small-talk detection is a substring match "hi" matches inside words such as "which", and "help" inside "helpful", so some real questions skip retrieval. (fixable) app/services/pipeline.py
BM25 index is never refreshed Restart the server after changing the knowledge base app/services/retriever.py
Version mismatch APP_VERSION defaults to 1.0.0 but the project is v0.1.0-alpha app/core/config.py, VERSION

Behaviour to be aware of

  • Failures return HTTP 200. If the model call fails, the API returns a fallback body with a success status. Monitor the server log, not only status codes.
  • Grounding is advisory. The verifier uses a small NLI model plus a keyword fallback, so scores are noisy and sometimes optimistic (Grounding Verification).
  • Tables lose their numbers. Ingestion strips standalone integers, which damages the food-composition tables (Knowledge Base).
  • Prompt injection. The optional description field and user queries go into prompts. Grounding rules are instructions, not a security boundary.
  • No streaming. A response arrives only when generation is complete.

Security and privacy

  • No authentication, no rate limiting, CORS open to every origin.
  • Safety relies on prompt instructions. There is no separate safety classifier.
  • All queries and answers are stored in plaintext with no retention policy (Data and Logging).
  • This is an educational tool and not a medical device. It must not be used for diagnosis, treatment or clinical advice.

Scope

  • English only. Six source documents, 810 chunks.
  • The robot (NAOqi) bridge is not part of this repository.
  • Evaluation figures are historical and not comparable to the current models (Evaluation).

Housekeeping

  • Dead code: app/services/embedder.py (loads a model on import and is not imported anywhere), get_db, QueryPayload, LearnResponse and the helpers in app/core/exceptions.py are unused.
  • Requirements: requirements.txt pins CUDA/Triton packages that need a GPU, packages the code does not use (for example google-generativeai, Jupyter, pipreqs), and omits pytest.
  • No license file has been added yet, and the repository has no continuous-integration configuration.

Clone this wiki locally