Ollama Graph Embedding Fails in Local LLM Setup
Description
Ollama Graph Embedding Fails in Local LLM Setup
Summary
The graph embedding process using local Ollama LLM is failing during the GraphRAG indexing step, specifically at the create_base_entity_graph stage.
Error
❌ create_base_entity_graph
None
Steps to Reproduce
- Initiate GraphRAG indexing process on a PDF document
- Observe the process fail at the
create_base_entity_graphstage
Current Behavior
- The indexing process completes the following steps:
-
create_base_text_units -
create_base_extracted_entities -
create_summarized_entities
-
- It fails at
create_base_entity_graphwith no error message, just returningNone
Expected Behavior
The create_base_entity_graph step should complete successfully, creating the entity graph for the indexed document.
Possible Causes
- Ollama LLM configuration issue for graph embedding
- Incompatibility between Ollama and the graph embedding process
- Resource constraints or timeout during the graph creation process
Next Steps
- Review Ollama LLM configuration for graph embedding tasks
- Check logs for any hidden error messages or warnings
- Verify Ollama's compatibility with the current graph embedding implementation
- Test the graph embedding process with smaller documents to isolate potential resource issues
- Implement more detailed error logging in the
create_base_entity_graphfunction
Impact
This issue is blocking the creation of entity graphs, which is crucial for advanced RAG capabilities. Resolving this will enhance our local LLM's ability to perform complex document analysis and retrieval tasks.
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Screenshots

Logs
No response
Browsers
No response
OS
No response
Additional information
No response
Marked to follow: error on no file found at embed output
i meet same problem. i just check the log of graph rag, it still looks like it's trying to connect to openai. and i have set related settings to ollama
i am using docker version
PS: i try clone it but suffer import issue, which always missing html2text (it is exist in my env)
Please check the latest version and instruction for setting up GraphRAG here https://github.com/Cinnamon/kotaemon#setup-graphrag.