Repository navigation
Troubleshooting
The spaCy English model is not installed in the environment you are running.
python -m spacy download en_core_web_smRun it with the same Python that runs Noema. Inside a virtual environment, activate it first. With
uv, use uv run python -m spacy download en_core_web_sm.
NoemaRetriever, NoemaLlamaIndexRetriever, Neo4jBackend, RDFBackend and coreference
resolution need optional packages. The error names the install command, for example
pip install noema-rag[langchain]. See the extras table in Installation.
Noema downloads models the first time they are used: the sentence-transformers embedding model, the tiktoken encoding, and any optional models such as the coreference or REBEL models. After that they are cached. On a machine without network access, run once with network access first, or copy the model caches over.
-
The knowledge base is empty. Check
len(kb)andkb.graph.relations. -
The ingested text produced no relations. The default parser needs a subject, verb and object with recognizable entities. Check what was extracted:
doc = noema.Document(text=text) entities = noema.extract_entities(doc) relations = noema.extract_relations(doc, entities)
-
Sentences use pronouns for the subject. Resolve coreferences first. See Advanced NLP.
Check context.truncated. If it is True, raise max_tokens. Otherwise raise top_k, and use
hops=2 for questions that join facts from different documents. See Retrieval.
The decoded text differs from the original. Compare result.decoded_text with your input. Decoding
is template-based, so scores below 1 are normal even when no fact is lost. Embedding similarity
also cannot detect reversed claims. See Round-Trip Validation.
The notation was not shorter than the text, or no facts were extracted. This happens with short, fact-sparse input. Compression helps most on fact-dense text.
Entity merging uses the similarity threshold, default 0.85. If distinct entities merge, raise it.
If the same entity stays split, lower it. Set it with KnowledgeBase(similarity_threshold=...).
Entities only merge within the same type, so an entity mislabeled by spaCy as a different type will
not merge with its other mentions.
Noema pins transformers>=4.40,<5.0, because version 5 breaks fastcoref model loading. Reinstall
within the pin.
You are importing an older installed copy of Noema. Check which one with:
python -c "import noema; print(noema.__file__)"Reinstall from your current source (uv sync or pip install -e .) so that path points to your
working copy.
Noema requires Python 3.13 or newer. Check with python --version.
Open an issue with the Noema version, Python version, the full error, and a short example that reproduces it.