Skip to content

Conversation

bennoloeffler
Copy link
Contributor

Description

in libs/ktem/ktem/index/file/graph/lightrag_pipelines.py, line 236

def build_graphrag(working_dir, llm_func, embedding_func):
    graphrag_func = LightRAG(
        working_dir=working_dir,
        llm_model_func=llm_func,
        embedding_func=embedding_func,
    )

    # newer verisons of LightRAG needs to be initialized before using
    asyncio.run(graphrag_func.initialize_storages())
    asyncio.run(initialize_pipeline_status())

    return graphrag_func

I don't really know, which version of LightRag and which version of kotaemon are compatible and I did not find any hints regarding that. Please advice, if I missed something.
I assume, the docker needs to be updated to use a new version of LightRag, too - I don't know how to...

Type of change

  • New features (non-breaking change).
  • Bug fix (non-breaking change).
  • Breaking change (fix or feature that would cause existing functionality not to work as expected).

Checklist

  • [ x] I have performed a self-review of my code.
  • I have added thorough tests if it is a core feature.
  • There is a reference to the original bug report and related work.
  • I have commented on my code, particularly in hard-to-understand areas.
  • The feature is well documented.

@taprosoft taprosoft changed the title Fix: Error: 'history_messages' #702 fix: Error: 'history_messages' with LightRAG Apr 1, 2025
@taprosoft taprosoft changed the title fix: Error: 'history_messages' with LightRAG fix: error 'history_messages' with LightRAG latest version Apr 1, 2025
@taprosoft taprosoft merged commit 911b20c into Cinnamon:main Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants