Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Can support memgraph for graph indexing #9335

Closed
kingle-zhuang opened this issue Dec 6, 2023 · 2 comments
Closed

[Feature Request]: Can support memgraph for graph indexing #9335

kingle-zhuang opened this issue Dec 6, 2023 · 2 comments
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized

Comments

@kingle-zhuang
Copy link

Feature Description

memgraph is high performance then others, so maybe we can support it

Reason

high performance low cost, compatible with neo4j

Value of Feature

No response

@kingle-zhuang kingle-zhuang added enhancement New feature or request triage Issue needs to be triaged/prioritized labels Dec 6, 2023
Copy link

dosubot bot commented Dec 6, 2023

🤖

Hello @kingle-zhuang! Welcome to the LlamaIndex repository. I'm Dosu, a bot here to assist you with any queries, bugs, or contributions you'd like to make. While we're waiting for a human maintainer, feel free to ask me anything. Let's make your experience here as smooth as possible.

Thank you for your feature request. It's indeed possible to enhance LlamaIndex to support Memgraph for graph indexing. The current implementation of LlamaIndex uses a GraphStore object for storing the graph data, as seen in the graph_store property in the KnowledgeGraphIndex class:

@property
def graph_store(self) -> GraphStore:
    return self._graph_store

To integrate Memgraph, a new class (e.g., MemgraphStore) that implements the GraphStore interface and uses Memgraph for the underlying storage would need to be created. This new class should implement all the methods required by the GraphStore interface, such as upsert_triplet, get_rel_map, and others, using Memgraph's API.

Once the MemgraphStore class is implemented, an instance of it can be passed to the KnowledgeGraphIndex constructor via the graph_store parameter:

kg_index = KnowledgeGraphIndex(
    graph_store=MemgraphStore(),
    # other parameters...
)

This way, LlamaIndex would use Memgraph for storing and retrieving graph data. However, please note that this would require a good understanding of both LlamaIndex and Memgraph, as well as the ability to write Python code that interacts with Memgraph's API.

As for the current graph indexing solution used in LlamaIndex, it's the Knowledge Graph Index. This system is designed to handle large amounts of data efficiently by processing it in chunks. The cost aspect is not directly mentioned, but the system can be configured to balance between performance and resource usage. In terms of compatibility, the Knowledge Graph Index seems to be designed with flexibility in mind, suggesting that it can be integrated with various systems and configurations.

Please note that the actual performance, cost, and compatibility would depend on the specific implementation details and usage scenarios.

For more details, you can refer to the KnowledgeGraphIndex class in the LlamaIndex repository.

I hope this information is helpful. If you have any further questions or need more clarification, feel free to ask.

Best regards,
Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 6, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 13, 2024
@matea16
Copy link
Contributor

matea16 commented Oct 23, 2024

Hi @kingle-zhuang, just saw your comment here and wanted to let you know that Memgraph integration has recently been added to LlamaIndex.
There's also an usage example available in the docs. Are you working on something with Memgraph and Llama?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized
Projects
None yet
Development

No branches or pull requests

2 participants