kingjulio8238 / Memary

Making Agents Reliable In Production.
https://www.memarylabs.com
MIT License
1.15k stars 82 forks source link

importing a knowledge graph #47

Closed rawwerks closed 3 weeks ago

rawwerks commented 3 weeks ago

apologies for putting this as an issue. i don't see a Discussions tab, and i don't see any other community forum for questions/discussion.

in the llamaindex webinar - the knowledge graph already had a lot of information about llamaindex. is there a way that a pre-existing neo4j KG can be imported into memary? (it seems to me that chatting with memary about llamaindex would be a pretty inefficient way of building that foundational KG.)

i suspect that my use case will be pretty common to memary users: i want to start with a KG (or better, multiple KGs) that i generated in a different way. a KG that represents something that is important context to the user interaction, but need not be "about the user". (for example, a KG that is about how to use llamaindex). then i only want the agent/user interaction to update the KG after starting from that foundational corpus/KG.

rajib76 commented 3 weeks ago

Were you able to find any logic in memary that is inserting into NEO4J, I only could see search from NEO4J. The actual memory module looked to me is creating local files

kingjulio8238 commented 3 weeks ago

@rawwerks Thanks for posting this.

We totally agree that memary will be more beneficial as a way to update a pre-existing corpus (for instance importing information of current inventory for a clothing company). This is why we are actively developing memaryParse so users can pre-fill their KG from any propriety data source.

In the meantime, we are open to PRs to integrate llamaParse. Agreed, they have done some amazing work which we look forward to extending!

kingjulio8238 commented 3 weeks ago

@rajib76 please see recent responses in #45 for details.

rawwerks commented 3 weeks ago

If I already have a neo4j KG, can I just start from that by putting the credentials into .env? @kingjulio8238

kingjulio8238 commented 3 weeks ago

If I already have a neo4j KG, can I just start from that by putting the credentials into .env? @kingjulio8238

Yes just fill in the corresponding information provided by Neo4j.