Skip to content

Commit

Permalink
Update llm_integration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benstear authored May 22, 2024
1 parent 47e8d81 commit c93bfc9
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions scripts/llm_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,35 @@
### The pipeline will consist of the following steps


First, aqcuire Petagraph and instantiate it on the cluster. The reformatting of the entire graph requires too much RAM to done on a local computer
1. First, aqcuire Petagraph and instantiate it on the cluster. The reformatting of the entire graph requires too much RAM to done on a local computer

2. Then, transform Petagraph by pushing relevant properties to the Concept nodes and then change the labels of any relevant nodes you need for your use case using Cypher. For example, if you want genes and phenotypes as part of your use case, you will need to set gene nodes to be type :Gene and phenotype nodes to be type :Phenotype.
```cypher
MATCH
```
3. (a) Create a subgraph (should contain only Concept nodes) and then (b) Export this as a dump and then (c) Create a new neo4j database using this dump.

3a. Create a subgraph
```cypher
MATCH
```

3b. Export subgraph as a dump
```cypher
MATCH
```

3c. Create a new neo4j database using this dump
```cypher
MATCH
```

4. Install Ollama, which will power our LLM application.

5. Start the Neo4j database and set constraints and indices via the `cypher-shell` or through a Python Neo4j API.
6. Execute the rest of the code in the llm-integration jupyter notebook to set up a Graph-RAG application using the subgraph.

.......



transform Petagraph by pushing relevant properties to the Concept nodes

0 comments on commit c93bfc9

Please sign in to comment.