Closed
Conversation
2 tasks
Collaborator
|
Thanks for sharing! The logic for checking and initializing Example function: def ensure_history_messages_initialized(pipeline_status):
history_messages_available = pipeline_status.get('history_messages', False)
if not history_messages_available:
pipeline_status['history_messages'] = ['BEL: initial history entry']Then, replace the repeated code with a call to this function: async with pipeline_status_lock:
pipeline_status["latest_message"] = log_message
ensure_history_messages_initialized(pipeline_status)
pipeline_status["history_messages"].append(log_message) |
3 tasks
Collaborator
|
The error is probably cause by missing initialize_pipeline_status. You should add the following line before you create LightRAG: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Using kotaemon with lightrag, I get this error message, when adding files to lightrag:
Indexing [1/1]: AMF-Imagebroschuere.pdf
=> Converting AMF-Imagebroschuere.pdf to text
=> Converted AMF-Imagebroschuere.pdf to text
=> [AMF-Imagebroschuere.pdf] Processed 28 chunks
=> Finished indexing AMF-Imagebroschuere.pdf
[GraphRAG] Creating/Updating index... This can take a long time.
[GraphRAG] Creating index: 0 / 14 documents.
Error: 'history_messages'
Related Issues
When
light_rag.insert_custom_chunks(doc, chunks)
is used, it seems to happen under specific circumstances.
Changes Made
Checklist
Additional Notes
It seems to NOT BE IDEAL, because it is not getting to the root. But I want to use it.
I may thank anybody who is more into it to fix it at the root.