Repository navigation
Known Issues and Limitations
PantheraNestah edited this page Nov 5, 2026
·
1 revision
Each item below was checked against the code. Items marked (fixable) are small code changes that have not been made yet.
| 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
|
- 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
descriptionfield and user queries go into prompts. Grounding rules are instructions, not a security boundary. - No streaming. A response arrives only when generation is complete.
- 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.
- 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).
-
Dead code:
app/services/embedder.py(loads a model on import and is not imported anywhere),get_db,QueryPayload,LearnResponseand the helpers inapp/core/exceptions.pyare unused. -
Requirements:
requirements.txtpins CUDA/Triton packages that need a GPU, packages the code does not use (for examplegoogle-generativeai, Jupyter,pipreqs), and omitspytest. - No license file has been added yet, and the repository has no continuous-integration configuration.
Documentation last verified against the code on 2026-11-05. Evaluation figures are historical, see Evaluation. Educational tool, not medical advice.
Use it
How it works
- Architecture
- Retrieval Pipeline
- LLM Layer
- Prompts and Lessons
- Grounding Verification
- Knowledge Base
- Data and Logging
Quality
Develop