Questions regarding neo4j

Hi, I have three questions to ask.
------------------------------------------------------------------------

  1. Is it possible to import set of documents(pdf,doc,csv..) into neo4j ?
    ------------------------------------------------------------------------
    If yes, then does it provides the nodes and relation automatically once the document has been imported?
    If not, Then how can i load set of documents(pdf,doc,csv) as an input in neo4j so that i can form a relation?
    ---------------------------------------------
  2. How do i export a database to a CSV file?
    -------------------------------------------
    Let's say that, we have movie DBMS in neo4j by default
    I want to export it to CSV file, How do i do that?
    I dont see any option to export it.

---------------------------------------------------------
3) Let's assume that there is a bunch of documents, i want to find relevant documents for a given query using knowledge base graph in neo4j.
How to do this?

Hello,

1. Usually, you don't store documents directly into Neo4j, those go into an object storage like local disk, S3 or whatever. However, you can use a Natural Language Processing (NLP) tool for Named Entity Extraction (NER) and Entity Relation Extraction. Once you have these entities and relations between them, you save them into a graph database

See for instance this talk from the last NODES conference, showing how to build a knowledge graph from a bunch of pdf documents: https://www.youtube.com/watch?v=m0EpQSz1cNc&list=PL9Hl4pk2FsvWPcphew_GbLjCWvMpmh4mV&index=23

2. Graphs have inherently different structure than a table, so it depends on what you want to extract. But you can always write a Cypher query that will return "columns" and then save this result to csv. For this you can use either the Neo4j Browser UI or any of the Neo4j language drivers. Or you can use APOC procedures (https://neo4j.com/labs/apoc/4.1/export/csv/#export-database-csv).

3. There are different methods, depending on the type of questions you are allowing. It goes from simple logic (if/else) to the state of the art AI. You may want to watch this other talk from Nodes, where the speaker shows a very nice English to Cypher translator using GPT-3:

https://www.youtube.com/watch?v=CHcNy5gEtLg&list=PL9Hl4pk2FsvWPcphew_GbLjCWvMpmh4mV&index=60