-
Notifications
You must be signed in to change notification settings - Fork 831
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
How to use the neo4j database and vector index with imported turtle files for GenAI? #85
Comments
Can you share how your imported the turtle-file? (code) And what your graph model in neo4j looks like (screenshot) ? You'll also have to create a vector index and index certain text properties of your graph to make the Vector + Graph work. |
Sure, the codes are
|
There’s more missing. |
It would be useful to get the graph config settings too. Also, could you share the |
I am using the file here, https://brickschema.org/ttl/gtc_brick.ttl. Graph config is default.
Nothing more. I din not find details about vector index for RAG from readme , so I only pressed the import button in http://localhost:8502/ |
How to go through these steps? |
This is exactly what I am trying to test this weekend. instead of using the ns10, I find it easy to use RDFLib-neo4j package to push ttl data to neo4j. I am with you on the same question, how to create vector index for those imported nodes and relationships. Let me know if you have figured it out. :) |
When I imported a turtle model into the neo4j database and started asking questions regarding the file, I did not get the answers that I want, even asking directly of describing a URI, it could not. In fact, the answers are worse than feeding the texts of the turtle file directly to LLM.
Model import is through n10s. Cypher queries on neo4j works fine. Cypher queries can also work at http://localhost:8505. Any other questions other than queries cannot return logical answers from the bot. Before GenAI, I also tried Ollama with Langchain to read it as text, it worked fine except the model cannot understand the relationships in the semantic web, which is why I turned to GenAI. The idea of RAG is exactly the way I want to guide LLM for domain knowledge deduction.
Maybe I am opening it in a wrong way, the turtle file is from Brick Schema.
The text was updated successfully, but these errors were encountered: