SciPhi-AI / R2R

The all-in-one solution for RAG. Build, scale, and deploy state of the art Retrieval-Augmented Generation applications
https://r2r-docs.sciphi.ai/
MIT License
3.51k stars 263 forks source link

Knowledge Graph is empty #988

Closed sanzhar-rakhimkul closed 2 months ago

sanzhar-rakhimkul commented 2 months ago

Describe the bug When I upload file and try to create kg. After processing the file in container logs following error appers:

2024-08-27T09:10:36.447361443Z WARNING:neo4j.notifications:Received notification from DBMS server: {severity: WARNING} {code: Neo.ClientNotification.Statement.UnknownPropertyKeyWarning} {category: UNRECOGNIZED} {title: The provided property key is not in the database} {description: One of the property names in your query is not available in the database, make sure you didn't misspell it or that the label is available when you run this statement in your application (the missing property name is: name)} {position: line: 3, column: 86, offset: 107} for query: '\n MATCH (n1)-[r]->(n2)\n return n1.name AS subject, n1.description AS subject_description, n2.name AS object, n2.description AS object_description, type(r) AS relation, r.description AS relation_description\n SKIP 0\n LIMIT 100\n '

and output of r2r inspect-knowledge-graph:

Time taken: 0.34 seconds {'results': '\n== Graph Statistics ==\nNumber of nodes: 0\nNumber of edges: 0\nNumber of connected components: 0\n\n== Most Central Nodes =='}

To Reproduce Steps to reproduce the behavior:

  1. docker compose -f compose.yaml -f compose.neo4j.yaml -f compose.postgres.yaml --project-name r2r up -d
  2. upload file
  3. wait
  4. r2r inspect-knowledge-graph

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

shreyaspimpalgaonkar commented 2 months ago

Hey, could you check if your r2r version/docker containers are up to date? Also, it is recommended that you start your server using the following command.

r2r serve --docker --config-name=neo4j_kg

You should be able to do

r2r ingest-sample-file
r2r enrich-graph
r2r inspect-knowledge-graph

And finally, then try with your custom file

Let me know if this doesn't work. Thanks!

sanzhar-rakhimkul commented 2 months ago

The problem is I cannot start like that. I am doing it in air gapped servers. I am using a repository that caches other docker images. Then I need to change docker images. I tried as you said:

r2r ingest-sample-file
r2r inspect-knowledge-graph

I have the same error. I started from neo4j_kg config as you mentioned.

sanzhar-rakhimkul commented 2 months ago

@shreyaspimpalgaonkar