mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

[Mem0] Langchain model integration

Open valentimarco opened this issue 1 year ago • 5 comments

🚀 The feature

Would be great to have a langchain integration! Why? Is great to use official library/clients but at the same time I don't want to create 300 objects for different library for the same llm/embedder provider!

Langchain provide 3 simple methods (invoke for llm and embed_query or embed_documents for embedders) to interact with the model.

If likes, i would create a PR with a preview of what discuss!

Great work btw <3

Motivation, pitch

I want to integrate the mem0 library in a project where we use langchain (unfortunately XD). At the moment, the only way is to extract config.

valentimarco avatar Jul 20 '24 17:07 valentimarco