quarkiverse / quarkus-langchain4j

Quarkus Langchain4j extension
https://docs.quarkiverse.io/quarkus-langchain4j/dev/index.html
Apache License 2.0
120 stars 65 forks source link

:grey_question: How to RAG on Neo4J #542

Closed adriens closed 2 months ago

adriens commented 2 months ago

:grey_question: Context

From Python/LlamaIndex and Python/Langchain I could successfully interact with a Neo4J instance :

Now, I would like to use this on Quarkus for a corporate KG and I wonder how this could be achieved on the Quarkus stack.

:grey_question: Question

geoand commented 2 months ago

We don't yet have a Neo4j based embedding store, but it should not be hard to add one (especially since there is a Quarkiverse extension for Neo4j).

cc @jmartisk

adriens commented 2 months ago

We don't yet have a Neo4j based embedding store,

It would be partial embeddings, but also text2cypher as it should be able to use the schema to tranform the incoming question into a proper cypher query isn't it ?

geoand commented 2 months ago

That's a separate concern IMO

adriens commented 2 months ago

So here we should focus on the embedding, not the text2cypher : right ?

geoand commented 2 months ago

Indeed

adriens commented 2 months ago

Should I let this issue opened then ?

geoand commented 2 months ago

Yup

jmartisk commented 2 months ago

There's a neo4j embedding store in langchain4j upstream and it uses the same client as the quarkus-neo4j extension, so it should be possible to integrate here. Yeah I can look into it, unless somebody else is super eager to do this

adriens commented 2 months ago

That would be really awesome. I'll can provide you feedback while implemented as we are currently building a projetc on top of both QUarkus & Neo4J. :star_struck: :nerd_face:

jmartisk commented 2 months ago

Resolved via https://github.com/quarkiverse/quarkus-langchain4j/pull/548

adriens commented 2 months ago

Thanks a lot guys. I'll keep the community up-to-date. :information_source: We'll use this, it's still a work in progress, I'll embed this for a Call For Paper, which uses this extension

geoand commented 2 months ago

πŸ₯³

adriens commented 1 month ago